mostly android
This commit is contained in:
99
iOS/.swiftlint.yml
Normal file
99
iOS/.swiftlint.yml
Normal file
@@ -0,0 +1,99 @@
|
||||
# SwiftLint configuration for Kordant iOS
|
||||
# NASA Standards: Enforce quality, readability, consistency
|
||||
|
||||
included:
|
||||
- iOS/Kordant
|
||||
- iOS/KordantTests
|
||||
- iOS/KordantUITests
|
||||
|
||||
excluded:
|
||||
- iOS/Kordant.xcodeproj
|
||||
- iOS/Kordant/.swiftpm
|
||||
|
||||
# Rule severity
|
||||
opt_in_rules:
|
||||
- closure_body_length
|
||||
- closure_end_indentation
|
||||
- closure_spacing
|
||||
- collection_alignment
|
||||
- contains_over_filter_count
|
||||
- contains_over_filter_is_empty
|
||||
- contains_over_first_not_equal
|
||||
- contains_over_range_nil_comparison
|
||||
- discouraged_object_literal
|
||||
- empty_count
|
||||
- fatal_error_message
|
||||
- file_header
|
||||
- force_unwrapping
|
||||
- implicitly_unwrapped_optional
|
||||
- large_tuple
|
||||
- last_enum_element_closing_brace
|
||||
- legacy_multiple
|
||||
- legacy_random
|
||||
- literal_expression_end_indentation
|
||||
- modifier_order
|
||||
- multiline_arguments
|
||||
- multiline_arguments_brackets
|
||||
- multiline_function_chains
|
||||
- multiline_literal_brackets
|
||||
- multiline_parameters
|
||||
- multiline_parameters_brackets
|
||||
- nslocalizedstring_key
|
||||
- operator_usage_whitespace
|
||||
- overridden_super_call
|
||||
- prohibited_enum_element
|
||||
- prohibited_interface_builder
|
||||
- prohibited_super_call
|
||||
- quick_look_alert
|
||||
- redundant_nil_coalescing
|
||||
- sorted_first_last
|
||||
- toggle_all_bool
|
||||
- trailing_closure
|
||||
- unneeded_parentheses_in_closure_argument
|
||||
- vertical_parameter_alignment_on_call
|
||||
- vertical_whitespace_closing_braces
|
||||
- vertical_whitespace_opening_braces
|
||||
- yoda_condition
|
||||
|
||||
disabled_rules:
|
||||
- todo
|
||||
|
||||
# Warning/Error thresholds
|
||||
line_length:
|
||||
warning: 120
|
||||
error: 200
|
||||
|
||||
file_length:
|
||||
warning: 500
|
||||
error: 1000
|
||||
|
||||
type_body_length:
|
||||
warning: 300
|
||||
error: 500
|
||||
|
||||
function_body_length:
|
||||
warning: 50
|
||||
error: 100
|
||||
|
||||
closure_body_length:
|
||||
warning: 20
|
||||
error: 50
|
||||
|
||||
type_name:
|
||||
min_length: 2
|
||||
max_length:
|
||||
warning: 40
|
||||
error: 60
|
||||
allowed_symbols: ["_"]
|
||||
|
||||
identifier_name:
|
||||
min_length: 1
|
||||
excluded:
|
||||
- i
|
||||
- id
|
||||
- x
|
||||
- y
|
||||
- width
|
||||
- height
|
||||
|
||||
reporter: "xcode"
|
||||
Reference in New Issue
Block a user