Adopt the rules-swift pin-and-codify strategy in snapshot mode (third_party/rules-swift @97dc70f + sha256), add codified gates, a conformance audit ledger, and .github/workflows/rules-swift.yml (corpus-pin integrity required, full gate report mode). Remove the docs/rules mirror it supersedes (repo-specific files kept under docs/). Style and leak gates exclude the vendored corpus.
32 lines
537 B
YAML
32 lines
537 B
YAML
# SwiftLint configuration. https://github.com/realm/SwiftLint
|
|
# A starting point; tune to your project, but keep it committed and run it with
|
|
# --strict so warnings cannot accumulate.
|
|
|
|
disabled_rules:
|
|
- todo
|
|
|
|
opt_in_rules:
|
|
- empty_count
|
|
- explicit_init
|
|
- first_where
|
|
- force_unwrapping
|
|
- sorted_first_last
|
|
- unused_import
|
|
|
|
line_length:
|
|
warning: 180
|
|
error: 220
|
|
ignores_comments: true
|
|
ignores_urls: true
|
|
|
|
identifier_name:
|
|
min_length: 2
|
|
|
|
type_name:
|
|
min_length: 2
|
|
|
|
excluded:
|
|
- .build
|
|
- Packages/.build
|
|
- .git
|