Skip to content

Commit fbf3191

Browse files
Mark Pospeselmpospese
authored andcommitted
[CM-604] Configure swiftlint and jazzy
1 parent 2999a68 commit fbf3191

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.jazzy.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
author: 'Y Media Labs'
2+
author_url: https://yml.co
3+
min_acl: public
4+
hide_documentation_coverage: false
5+
theme: fullwidth
6+
output: ./docs
7+
documentation: ./*.md
8+
swift_build_tool: xcodebuild
9+
module: YMatterType
10+
xcodebuild_arguments:
11+
- -scheme
12+
- YMatterType
13+
- -sdk
14+
- iphonesimulator
15+
- -destination
16+
- 'platform=iOS Simulator,name=iPhone 13'

.swiftlint.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# By default, SwiftLint uses a set of sensible default rules you can adjust:
2+
disabled_rules: # rule identifiers turned on by default to exclude from running
3+
4+
- multiple_closures_with_trailing_closure
5+
6+
opt_in_rules: # some rules are turned off by default, so you need to opt-in
7+
- anyobject_protocol
8+
- contains_over_first_not_nil
9+
- empty_count
10+
- first_where
11+
- force_unwrapping
12+
- multiline_arguments
13+
- multiline_arguments_brackets
14+
- multiline_function_chains
15+
- multiline_literal_brackets
16+
- multiline_parameters
17+
- multiline_parameters_brackets
18+
- operator_whitespace
19+
- prohibited_interface_builder
20+
- unneeded_parentheses_in_closure_argument
21+
- unused_import
22+
- vertical_whitespace_closing_braces
23+
- vertical_whitespace_opening_braces
24+
25+
excluded: # paths to ignore during linting. Takes precedence over `included`.
26+
- Pods
27+
- docs
28+
- .build
29+
30+
# configurable rules can be customized from this configuration file
31+
# binary rules can set their severity level
32+
33+
cyclomatic_complexity:
34+
ignores_case_statements: true
35+
36+
identifier_name:
37+
min_length: 1
38+
39+
trailing_whitespace:
40+
ignores_empty_lines: true
41+
42+
function_parameter_count:
43+
warning: 6

0 commit comments

Comments
 (0)