diff --git a/.rubocop-cocoapods.yml b/.rubocop-cocoapods.yml new file mode 100644 index 000000000..ea57d89e1 --- /dev/null +++ b/.rubocop-cocoapods.yml @@ -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/** + diff --git a/.rubocop.yml b/.rubocop.yml index 89535ba86..0cccaf4f3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,70 +1,14 @@ -AllCops: - Include: - - Rakefile - Exclude: - - lib/cocoapods-core/vendor/** - - spec/fixtures/** - -inherit_from: rubocop-todo.yml - -#- 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 +inherit_from: + - rubocop-todo.yml + - .rubocop-cocoapods.yml +#- Core ----------------------------------------------------------------------- -#- CocoaPods specs -----------------------------------------------------------# - -# Allow for `should.match /regexp/`. -AmbiguousRegexpLiteral: - Exclude: - - spec/** - -# Allow `object.should == object` syntax. -Void: - Exclude: - - spec/** - -ClassAndModuleChildren: +AllCops: Exclude: - - spec/** - -#- Core ----------------------------------------------------------------------- + - spec/fixtures/** + - lib/cocoapods-core/vendor/** FileName: Exclude: - lib/cocoapods-core.rb - -UselessComparison: - Exclude: - - spec/** -