forked from mozilla-mobile/firefox-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
57 lines (54 loc) · 1.36 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
disabled_rules: # rule identifiers to exclude from running
- legacy_constructor
- variable_name
- legacy_cggeometry_functions
- legacy_constant
- todo
- trailing_newline
- empty_count
- force_cast
- type_name
- function_body_length
- missing_docs
- conditional_binding_cascade
- valid_docs
- cyclomatic_complexity
- type_body_length
- function_parameter_count
- force_try
- control_statement
- trailing_whitespace
- leading_whitespace
- operator_whitespace
- file_length
- mark
opt_in_rules: # some rules are only opt-in
- closing_brace
- opening_brace
- return_arrow_whitespace
- trailing_semicolon
- statement_position
# Find all the available rules by running:
# swiftlint rules
included: # paths to include during linting. `--path` is ignored if present.
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- Source/ExcludedFolder
- Source/ExcludedFile.swift
- ThirdParty
- FxA
- FxAClient
- build
# configurable rules can be customized from this configuration file
# binary rules can set their severity level
trailing_semicolon: error
empty_count: error
closing_brace: error
opening_brace: error
return_arrow_whitespace: error
statement_position: error
colon: error
comma: error
line_length: 1000
reporter: "json" # reporter type (xcode, json, csv, checkstyle)