-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SwiftLint & Spring Cleaning (#10)
- Loading branch information
Showing
42 changed files
with
462 additions
and
777 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
included: | ||
- Source | ||
- Tests | ||
- Resources | ||
|
||
excluded: | ||
# basically only excluded because of file_length requirement | ||
- "Resources/Generated Types" | ||
|
||
disabled_rules: | ||
- file_header | ||
|
||
opt_in_rules: # some rules are only opt-in | ||
- attributes | ||
- closure_spacing | ||
- contains_over_first_not_nil | ||
- empty_count | ||
- explicit_init | ||
- extension_access_modifier | ||
- fatal_error_message | ||
- file_header | ||
- force_unwrapping | ||
- implicit_return | ||
- implicitly_unwrapped_optional | ||
- literal_expression_end_indentation | ||
- multiline_arguments | ||
- multiline_parameters | ||
- number_separator | ||
- object_literal | ||
- operator_usage_whitespace | ||
- overridden_super_call | ||
- prohibited_super_call | ||
- redundant_nil_coalescing | ||
- sorted_imports | ||
- trailing_closure | ||
- unneeded_parentheses_in_closure_argument | ||
- vertical_parameter_alignment_on_call | ||
|
||
# Make certain rules give out an error | ||
force_cast: error | ||
force_try: error | ||
force_unwrapping: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
osx_image: xcode9 | ||
language: objective-c | ||
before_install: | ||
- brew tap yonaskolb/mint https://github.com/yonaskolb/mint.git | ||
- brew install mint | ||
script: | ||
- mint run realm/swiftlint@0.23.1 | ||
- swift build | ||
- swift test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.