Skip to content

Commit

Permalink
added .swiftlint to project
Browse files Browse the repository at this point in the history
  • Loading branch information
unnamedd committed Jul 15, 2017
1 parent 6aec6cb commit b152566
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
disabled_rules:
- line_length
- cyclomatic_complexity
- force_unwrapping
- force_cast
- identifier_name
- statement_position
- nesting

opt_in_rules:
- closure_spacing
- closure_end_indentation
- explicit_init
- switch_case_on_newline
- redundant_nil_coalescing
- prohibited_super_call
- overridden_super_call
- nimble_operator

file_length:
warning: 800
error: 1200

function_body_length:
warning: 500
error: 1200

type_body_length:
warning: 500
error: 1200

trailing_whitespace:
ignores_empty_lines: true
ignores_comments: true

vertical_whitespace:
max_empty_lines: 2

identifier_name:
excluded:
- id
- up

excluded:
- Carthage

0 comments on commit b152566

Please sign in to comment.