Skip to content

Commit 4f60708

Browse files
committed
Update SwiftLint rules
1 parent ec41337 commit 4f60708

1 file changed

Lines changed: 36 additions & 16 deletions

File tree

.swiftlint.yml

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,41 @@
1-
# rule identifiers to exclude from running
2-
disabled_rules:
3-
- line_length
4-
5-
# some rules are only opt-in
61
opt_in_rules:
7-
# Find all the available rules by running:
8-
# swiftlint rules
9-
2+
- anyobject_protocol
3+
- closure_spacing
4+
- contains_over_first_not_nil
5+
- convenience_type
6+
- empty_count
7+
- empty_string
8+
- empty_xctest_method
9+
- explicit_init
10+
- fallthrough
11+
- fatal_error_message
12+
- file_name
13+
- first_where
14+
- force_unwrapping
15+
- implicit_return
16+
- let_var_whitespace
17+
- literal_expression_end_indentation
18+
- operator_usage_whitespace
19+
- overridden_super_call
20+
- override_in_extension
21+
- private_action
22+
- private_outlet
23+
- prohibited_super_call
24+
- single_test_class
25+
- sorted_imports
26+
- toggle_bool
27+
- unused_import
28+
- unused_private_declaration
1029

11-
# paths to include during linting. `--path` is ignored if present.
1230
included:
13-
1431

15-
# paths to ignore during linting. Takes precedence over `included`.
16-
excluded:
17-
18-
19-
# configurable rules can be customized from this configuration file
20-
# binary rules can set their severity level
2132
force_cast: warning
33+
34+
identifier_name:
35+
min_length: 2
36+
37+
line_length: 160
38+
39+
disabled_rules:
40+
- nesting
41+
- custom_rules

0 commit comments

Comments
 (0)