Skip to content

Commit

Permalink
Adding new SwiftLint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
FabrizioBrancati committed Aug 5, 2018
1 parent 5c46d90 commit 4e5ab91
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .swiftlint.yml
Expand Up @@ -3,6 +3,7 @@ included:
- Tests

opt_in_rules:
- anyobject_protocol
- array_init
- attributes
- closure_end_indentation
Expand All @@ -27,6 +28,7 @@ opt_in_rules:
- literal_expression_end_indentation
- lower_acl_than_parent
- mark
- missing_docs
- modifier_order
- multiline_arguments
- multiline_function_chains
Expand Down Expand Up @@ -145,12 +147,6 @@ custom_rules:
regex: '\(\S+\?\.\S+\)!'
message: "Don't use ? first to force unwrap later – directly unwrap within the parantheses."
severity: warning
missing_docs:
included: ".*.swift"
name: "Missing Docs"
regex: '\n *(?!\/\/\/)(\/\/)?[^\n\/]*\n *(?:@\S+ )*(?!override)(?:public|open)'
message: "Types, properties and methods with public or open access level should be documented."
severity: warning
redundant_parentheses:
included: ".*.swift"
name: "Redundant Parentheses"
Expand Down

0 comments on commit 4e5ab91

Please sign in to comment.