-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from CocoaPods/rubocop-fixes
Use RuboCop config from cocoapods-core .rubocop.yml file
- Loading branch information
Showing
14 changed files
with
173 additions
and
134 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,61 @@ | ||
AllCops: | ||
Include: | ||
- Rakefile | ||
Exclude: | ||
- spec/fixtures/** | ||
|
||
#- CocoaPods -----------------------------------------------------------------# | ||
|
||
# We adopted raise instead of fail. | ||
SignalException: | ||
EnforcedStyle: only_raise | ||
|
||
# They are idiomatic | ||
AssignmentInCondition: | ||
Enabled: false | ||
|
||
# Allow backticks | ||
AsciiComments: | ||
Enabled: false | ||
|
||
# Indentation clarifies logic branches in implementations | ||
IfUnlessModifier: | ||
Enabled: false | ||
|
||
# No enforced convention here. | ||
SingleLineBlockParams: | ||
Enabled: false | ||
|
||
# We only add the comment when needed. | ||
Encoding: | ||
Enabled: false | ||
|
||
#- CocoaPods support for Ruby 1.8.7 ------------------------------------------# | ||
|
||
HashSyntax: | ||
EnforcedStyle: hash_rockets | ||
|
||
Lambda: | ||
Enabled: false | ||
|
||
|
||
#- CocoaPods specs -----------------------------------------------------------# | ||
|
||
# Allow for `should.match /regexp/`. | ||
AmbiguousRegexpLiteral: | ||
Exclude: | ||
- spec/** | ||
|
||
# Allow `object.should == object` syntax. | ||
Void: | ||
Exclude: | ||
- spec/** | ||
|
||
ClassAndModuleChildren: | ||
Exclude: | ||
- spec/** | ||
|
||
UselessComparison: | ||
Exclude: | ||
- spec/** | ||
|
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,51 +1,4 @@ | ||
HashSyntax: | ||
EnforcedStyle: hash_rockets | ||
|
||
StringLiterals: | ||
Enabled: false | ||
EnforcedStyle: double_quotes | ||
|
||
SignalException: | ||
EnforcedStyle: only_raise | ||
|
||
ConstantName: | ||
Enabled: false | ||
|
||
IfUnlessModifier: | ||
Enabled: false | ||
|
||
EmptyLinesAroundBody: | ||
Enabled: false | ||
|
||
AsciiComments: | ||
Enabled: false | ||
|
||
Proc: | ||
Enabled: false | ||
|
||
BracesAroundHashParameters: | ||
Enabled: false | ||
|
||
Encoding: | ||
Enabled: false | ||
|
||
TrailingComma: | ||
EnforcedStyleForMultiline: comma | ||
|
||
FileName: | ||
Enabled: false | ||
|
||
#------------------------------------------------------------------------------ | ||
# Needs fixing | ||
#------------------------------------------------------------------------------ | ||
|
||
ClassLength: | ||
Max: 200 | ||
|
||
MethodLength: | ||
Max: 18 | ||
|
||
LineLength: | ||
Enabled: false | ||
inherit_from: | ||
- .rubocop-cocoapods.yml | ||
|
||
|
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.