-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f1f928
commit e2837ac
Showing
16 changed files
with
212 additions
and
83 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,81 @@ | ||
# options | ||
--swiftversion 5.6 | ||
--self remove # redundantSelf | ||
--importgrouping testable-bottom # sortedImports | ||
--commas always # trailingCommas | ||
--trimwhitespace always # trailingSpace | ||
--indent 4 #indent | ||
--ifdef no-indent #indent | ||
--indentstrings true #indent | ||
--wraparguments before-first # wrapArguments | ||
--wrapparameters before-first # wrapArguments | ||
--wrapcollections before-first # wrapArguments | ||
--wrapconditions before-first # wrapArguments | ||
--wrapreturntype if-multiline #wrapArguments | ||
--closingparen balanced # wrapArguments | ||
--wraptypealiases before-first # wrapArguments | ||
--funcattributes prev-line # wrapAttributes | ||
--typeattributes prev-line # wrapAttributes | ||
--wrapternary before-operators # wrap | ||
--structthreshold 20 # organizeDeclarations | ||
--enumthreshold 20 # organizeDeclarations | ||
--organizetypes class,struct,enum,extension,actor # organizeDeclarations | ||
--markcategories false #organizeDeclarations | ||
--extensionacl on-declarations # extensionAccessControl | ||
--patternlet inline # hoistPatternLet | ||
--redundanttype inferred # redundantType | ||
--typeblanklines preserve # blankLinesAtStartOfScope, blankLinesAtEndOfScope | ||
--emptybraces no-space # emptyBraces | ||
--maxwidth 120 # wrap | ||
|
||
# rules | ||
--rules andOperator | ||
--rules anyObjectProtocol | ||
--rules blankLinesAtEndOfScope | ||
--rules blankLinesAtStartOfScope | ||
--rules blankLinesBetweenScopes | ||
--rules blockComments | ||
--rules braces | ||
--rules consecutiveSpaces | ||
--rules duplicateImports | ||
--rules emptyBraces | ||
--rules enumNamespaces | ||
--rules extensionAccessControl | ||
--rules hoistPatternLet | ||
--rules indent | ||
--rules markTypes | ||
--rules organizeDeclarations | ||
--rules redundantClosure | ||
--rules redundantFileprivate | ||
--rules redundantGet | ||
--rules redundantInit | ||
--rules redundantLet | ||
--rules redundantParens | ||
--rules redundantPattern | ||
--rules redundantRawValues | ||
--rules redundantReturn | ||
--rules redundantSelf | ||
--rules redundantType | ||
--rules redundantVoidReturnType | ||
--rules sortDeclarations | ||
--rules sortedImports | ||
--rules spaceAroundBraces | ||
--rules spaceAroundComments | ||
--rules spaceAroundParens | ||
--rules spaceInsideBraces | ||
--rules spaceInsideBrackets | ||
--rules spaceInsideComments | ||
--rules spaceInsideParens | ||
--rules strongifiedSelf | ||
--rules todos | ||
--rules trailingCommas | ||
--rules trailingSpace | ||
--rules typeSugar | ||
--rules unusedArguments | ||
--rules wrap | ||
--rules wrapArguments | ||
--rules wrapAttributes | ||
--rules wrapConditionalBodies | ||
--rules wrapEnumCases | ||
--rules wrapMultilineStatementBraces | ||
--rules wrapSwitchCases |
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,32 @@ | ||
only_rules: | ||
- colon | ||
- fatal_error_message | ||
- implicitly_unwrapped_optional | ||
- legacy_cggeometry_functions | ||
- legacy_constant | ||
- legacy_constructor | ||
- legacy_nsgeometry_functions | ||
- operator_usage_whitespace | ||
- return_arrow_whitespace | ||
- trailing_newline | ||
- unused_optional_binding | ||
- vertical_whitespace | ||
- void_return | ||
- custom_rules | ||
|
||
excluded: | ||
- Carthage | ||
- Pods | ||
- ./**/.build | ||
|
||
colon: | ||
apply_to_dictionaries: false | ||
|
||
indentation: 2 | ||
|
||
custom_rules: | ||
no_objcMembers: | ||
name: "@objcMembers" | ||
regex: "@objcMembers" | ||
message: "Explicitly use @objc on each member you want to expose to Objective-C" | ||
severity: 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
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
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.