diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 66b49ef25..b8b258661 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -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": [] diff --git a/.swiftlint.yml b/.swiftlint.yml new file mode 100644 index 000000000..e447ccb0c --- /dev/null +++ b/.swiftlint.yml @@ -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/ + +