Skip to content

Commit

Permalink
Merge pull request sgr-ksmt#16 from sgr-ksmt/add_swiftlint
Browse files Browse the repository at this point in the history
Add Swiftlint, Hound
  • Loading branch information
sgr-ksmt committed Mar 9, 2016
2 parents bb2da79 + 0b2e159 commit d7856a1
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
swift:
config_file: .swiftlint.yml
48 changes: 48 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# rules
#- colon
#- control_statement
#- file_length
#- force_cast
#- function_body_length
#- leading_whitespace
#- line_length
#- nesting
#- operator_whitespace
#- return_arrow_whitespace
#- todo
#- trailing_newline
#- variable_name_max_length
#- variable_name_min_length
#- type_body_length
#- variable_name


disabled_rules:
- trailing_whitespace
- type_name
- force_cast
- variable_name
- trailing_newline


line_length: 200

excluded:
- Pods
- Carthage

type_body_length:
- 300 # warning
- 500 # error

variable_name_min_length:
- 3 # warning
- 0 # error

variable_name_max_length:
- 60 # warning
- 80 # error

function_body_length:
- 100 # warning
- 200 # error

0 comments on commit d7856a1

Please sign in to comment.