.rubocop.yml in percy-cli-1.2.9 vs .rubocop.yml in percy-cli-1.3.0
- old
+ new
@@ -1,113 +1,10 @@
-require: rubocop-rspec
-inherit_from: .rubocop_todo.yml
+inherit_gem:
+ percy-style:
+ - default.yml
+
AllCops:
- Include:
- - Rakefile
- - lib/**/*.rake
- Exclude:
- - 'vendor/**/*'
- - '*.gemspec'
+ TargetRubyVersion: 2.1
-Layout/AlignParameters:
- EnforcedStyle: with_fixed_indentation
-
-Layout/CaseIndentation:
- EnforcedStyle: end
-
-Layout/IndentArray:
- EnforcedStyle: consistent
-
-Layout/MultilineMethodCallIndentation:
- EnforcedStyle: indented
-
-Layout/MultilineOperationIndentation:
- EnforcedStyle: indented
-
-Layout/SpaceInsideHashLiteralBraces:
- EnforcedStyle: no_space
-
-Lint/EndAlignment:
- EnforcedStyleAlignWith: variable
-
-Lint/RescueException:
+Style/GlobalVars:
Exclude:
- - 'lib/tasks/*.rake'
-
-Metrics/AbcSize:
- Max: 100
-
-Metrics/LineLength:
- Max: 100
-
-Metrics/MethodLength:
- Max: 80
-
-Style/Documentation:
- Enabled: false
-
-Metrics/ClassLength:
- Enabled: false
-
-Metrics/ModuleLength:
- Enabled: false
-
-Metrics/ParameterLists:
- Enabled: false
-
-Metrics/BlockLength:
- Enabled: false
-
-Style/DoubleNegation:
- Enabled: false
-
-Style/FileName:
- Exclude: ['Gemfile', 'Guardfile']
-
-Style/FormatStringToken:
- EnforcedStyle: template
-
-# Disable Style/NumericLiterals so numbers don't need underscores
-Style/NumericLiterals:
- Enabled: false
-
-Style/NumericPredicate:
- EnforcedStyle: comparison
-
-Style/RedundantBegin:
- Enabled: false
-
-Style/RegexpLiteral:
- EnforcedStyle: slashes
- AllowInnerSlashes: true
- Exclude:
- - 'Guardfile'
-
-Style/SymbolArray:
- EnforcedStyle: brackets
-
-Style/TrailingCommaInArguments:
- EnforcedStyleForMultiline: consistent_comma
-
-Style/TrailingCommaInLiteral:
- EnforcedStyleForMultiline: consistent_comma
-
-RSpec/DescribedClass:
- EnforcedStyle: explicit
-
-RSpec/ExampleLength:
- Max: 15
-
-RSpec/HookArgument:
- EnforcedStyle: each
-
-RSpec/ImplicitExpect:
- EnforcedStyle: should
-
-RSpec/MessageSpies:
- EnforcedStyle: receive
-
-RSpec/NotToNot:
- EnforcedStyle: to_not
-
-RSpec/VerifiedDoubles:
- Enabled: false
+ - 'lib/percy/cli.rb'