|
1 | | -disabled_rules: |
2 | | - - line_length |
3 | | - - trailing_comma |
4 | | - - redundant_discardable_let |
5 | | - - identifier_name # Allow short variable names (i, x, y, etc.) |
6 | | - - large_tuple # Allow tuples with more than 2 members |
7 | | - - optional_data_string_conversion # False positive with String(decoding:as:) |
8 | | - - for_where # False positives when for loops have complex logic, not just filtering |
9 | | - - todo # Allow TODO comments for tracking future work |
10 | | - - type_body_length # Don't enforce maximum type body length |
11 | | - - nesting # Allow nested types for hierarchical APIs |
12 | | - - type_name # Allow flexible test suite naming (lowercase, special chars, etc.) |
13 | | - - cyclomatic_complexity # Allow complex inline logic over helper extraction |
14 | | - - implicit_optional_initialization # Allow explicit = nil initialization |
15 | | - - function_body_length # Allow longer inline functions |
16 | | - - file_length # Allow longer files |
| 1 | +# SwiftLint configuration |
| 2 | +# Inherits from the shared parent configuration in swift-standards |
17 | 3 |
|
18 | | -opt_in_rules: |
19 | | - - explicit_init |
20 | | - - closure_spacing |
21 | | - - empty_count |
22 | | - - empty_string |
23 | | - - fatal_error_message |
24 | | - - first_where |
25 | | - - joined_default_parameter |
26 | | - - operator_usage_whitespace |
27 | | - - overridden_super_call |
| 4 | +parent_config: https://raw.githubusercontent.com/swift-standards/swift-standards/main/.swiftlint.yml |
28 | 5 |
|
29 | | -included: |
30 | | - - Sources |
31 | | - - Tests |
32 | | - |
33 | | -excluded: |
34 | | - - .build |
35 | | - - Carthage |
36 | | - - Pods |
37 | | - - fastlane |
38 | | - |
39 | | -# Function parameter count (kept as a reasonable limit) |
40 | | -function_parameter_count: |
41 | | - warning: 6 |
42 | | - error: 8 |
| 6 | +# Package-specific overrides (if needed) |
0 commit comments