Skip to content

Commit d44acd6

Browse files
committed
Update SwiftLint configuration
1 parent 63e0aff commit d44acd6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.swiftlint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# Configuration for SwiftLint (https://github.com/realm/SwiftLint)
22

33
excluded:
4+
- .bundle
45
- Carthage
56
- fastlane
7+
68
opt_in_rules:
79
- array_init
810
- attributes
911
- closure_end_indentation
1012
- closure_spacing
13+
- collection_alignment
1114
- conditional_returns_on_newline
1215
- contains_over_first_not_nil
1316
- convenience_type
@@ -27,11 +30,13 @@ opt_in_rules:
2730
- implicit_return
2831
- implicitly_unwrapped_optional
2932
- joined_default_parameter
33+
- legacy_random
3034
- let_var_whitespace
3135
- literal_expression_end_indentation
3236
- lower_acl_than_parent
3337
- modifier_order
3438
- multiline_function_chains
39+
- multiline_literal_brackets
3540
- operator_usage_whitespace
3641
- overridden_super_call
3742
- override_in_extension
@@ -43,11 +48,16 @@ opt_in_rules:
4348
- redundant_type_annotation
4449
- single_test_class
4550
- sorted_first_last
51+
- static_operator
4652
- switch_case_on_newline
53+
- toggle_bool
4754
- unavailable_function
4855
- untyped_error_in_catch
56+
- unused_import
57+
- unused_private_declaration
4958
- vertical_parameter_alignment_on_call
5059
- yoda_condition
60+
5161
disabled_rules:
5262
- identifier_name
5363
- line_length
@@ -59,6 +69,14 @@ cyclomatic_complexity:
5969
function_body_length:
6070
warning: 50
6171

72+
line_length:
73+
ignores_function_declarations: true
74+
ignores_interpolated_strings: true
75+
76+
nesting:
77+
type_level:
78+
warning: 2
79+
6280
trailing_comma:
6381
mandatory_comma: true
6482

0 commit comments

Comments
 (0)