diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-06-15 14:35:36 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-06-16 14:47:30 +0200 |
| commit | 657aa83a5ca24dc35572c040df64a0abb85e8612 (patch) | |
| tree | fe0b6fd425d8cad9dc6a28ada4ad8600e42b367e /.swiftlint.yml | |
Initial extraction from Norganize
Diffstat (limited to '.swiftlint.yml')
| -rw-r--r-- | .swiftlint.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.swiftlint.yml b/.swiftlint.yml new file mode 100644 index 0000000..51b479a --- /dev/null +++ b/.swiftlint.yml @@ -0,0 +1,36 @@ +# SwiftLint configuration for NorgKit. +# Tuned to the existing style rather than forcing churn: the parsers use short, +# conventional cursor names (i, j, lo, hi, c, s, m) and the recogniser functions +# are intentionally long, flat state machines. + +included: + - Sources + - Tests + - Benchmarks + +identifier_name: + # Allow short loop/cursor names that read clearly in tight parsing loops. + min_length: + warning: 1 + error: 1 + +line_length: + warning: 120 + error: 160 + ignores_comments: true + ignores_urls: true + +function_body_length: + warning: 80 + error: 120 + +cyclomatic_complexity: + warning: 15 + error: 25 + +disabled_rules: + # "TODO" appears in doc comments describing Norg's TODO-status syntax. + - todo + # Trailing commas are used selectively (e.g. the modifier tables); leave the + # choice to the author rather than enforcing one way. + - trailing_comma |