src/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
3 / 3
100.0%
Branches:
-
-%
Functions:
1 / 1
100.0%

formatter/format-config.spice
Line Branch Exec Source
1 // Copyright (c) 2021-2026 ChilliBits. All rights reserved.
2
3 // Limits of the values, that the manifest can set
4 public const long MIN_INDENT_WIDTH = 1l;
5 public const long MAX_INDENT_WIDTH = 16l;
6 public const long MAX_MAX_BLANK_LINES = 16l;
7
8 /**
9 * Configuration of the source formatter. It can be adjusted in the [format] table of the manifest (spice.toml)
10 */
11 45 public type FormatConfig struct {
12 45 public unsigned long indentWidth = 4l // Number of spaces per indentation level
13 45 public unsigned long maxBlankLines = 1l // Maximum number of blank lines in a row
14 }
15