-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.swiftlint.yml
30 lines (30 loc) · 1.32 KB
/
.swiftlint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#disabled_rules: # rule identifiers to exclude from running
# - colon
# - comma
# - control_statement
#opt_in_rules: # some rules are only opt-in
# - empty_count
# Find all the available rules by running:
# swiftlint rules
whitelist_rules:
- comma
- custom_rules
# - attributes, closing_brace, closure_end_indentation, closure_parameter_position, closure_spacing, colon, comma, control_statement, cyclomatic_complexity, empty_count
# DONT: conditional_returns_on_newline
custom_rules:
brace_on_new_line: # rule identifier
name: "Brace on new line" # rule name. optional.
regex: "(class|struct|enum|protocol|extension)[ :][^\n]*\{"
message: "Opening braces for classes, structs, protocols, enums and extensions must be on a new line" # violation message. optional.
severity: error # violation severity. optional.
func_brace_on_new_line:
name: "Func brace on new line" # rule name. optional.
regex: "(func|init)[ \!\?\(][^\n]*\{(?![^\n]*\})"
message: "Opening braces for functions and methods must be on a new line" # violation message. optional.
severity: error # violation severity. optional.
included: # paths to include during linting. `--path` is ignored if present.
- teferi
- teferiTests
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- teferi/Generated