Add SwiftLint config file.

This commit is contained in:
Brent Simmons committed 2025-12-31 11:14:10 -08:00
1 parent 78f39ebc6f
commit adaf07d0f6
2 files changed
+41 -1

No files matched your search

+2 -1
View File
@@ -67,7 +67,8 @@
"Bash(do)",
"Bash(echo:*)",
"Bash(done)",
"Bash(# Show files touched by state restoration related commits echo \"\"=== Files changed in state restoration commits ===\"\" for commit in 04e98a47d 89b31858c d788af388 1d49b9328 236943f82 38d6b11c5 3be027699 16c66513c 1ef2aa162 6ce3bdadc 1954f5b65 55b7da75d 20b3bda94 4bf57afc1 e0074d70b 616b9deeb f6bca9ee8 ea6eedb86 380617920 d68106ac0 d30c62757 813f0706b 2ea00619c; do git diff-tree --no-commit-id --name-only -r \"\"$commit\"\" done)"
"Bash(# Show files touched by state restoration related commits echo \"\"=== Files changed in state restoration commits ===\"\" for commit in 04e98a47d 89b31858c d788af388 1d49b9328 236943f82 38d6b11c5 3be027699 16c66513c 1ef2aa162 6ce3bdadc 1954f5b65 55b7da75d 20b3bda94 4bf57afc1 e0074d70b 616b9deeb f6bca9ee8 ea6eedb86 380617920 d68106ac0 d30c62757 813f0706b 2ea00619c; do git diff-tree --no-commit-id --name-only -r \"\"$commit\"\" done)",
"Bash(swiftlint version:*)"
],
"deny": [],
"ask": []
+39
View File
@@ -0,0 +1,39 @@
identifier_name:
min_length: 1
max_length: 50
allowed_symbols: "_"
# line_length:
# warning: 200
# error: 300
# ignores_comments: true
# ignores_urls: true
large_tuple:
warning: 3
error: 4
disabled_rules:
- todo
- for_where
- file_length
- force_cast
- force_try
- cyclomatic_complexity
- generic_type_name
- function_body_length
- type_body_length
- function_parameter_count
- line_length
- operator_whitespace
- nesting
excluded:
- Modules/Secrets/Sources/Secrets/SecretKey.swift
- Modules/Account/Tests/
- Modules/Account/Sources/Account/Feedly/
- Widget/Resources/Localized.swift
- Shared/Extensions/NSAttributedString+NetNewsWire.swift
- buildscripts/