feat(rubocop): use rubocop-github
This commit is contained in:
+4
-4
@@ -1,5 +1,5 @@
|
|||||||
|
inherit_gem:
|
||||||
inherit_from:
|
rubocop-github:
|
||||||
- ./config/rubocop/default.yml
|
- config/default.yml
|
||||||
- ./config/rubocop/rails.yml
|
- config/rails.yml
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ group :development, :mysql do
|
|||||||
gem 'travis-lint'
|
gem 'travis-lint'
|
||||||
gem 'better_errors'
|
gem 'better_errors'
|
||||||
gem 'binding_of_caller'
|
gem 'binding_of_caller'
|
||||||
gem 'rubocop'
|
gem "rubocop-github"
|
||||||
end
|
end
|
||||||
|
|
||||||
gem 'simplecov', :require => false, :group => :test
|
gem 'simplecov', :require => false, :group => :test
|
||||||
|
|||||||
+3
-1
@@ -267,6 +267,8 @@ GEM
|
|||||||
rainbow (>= 2.2.2, < 3.0)
|
rainbow (>= 2.2.2, < 3.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (~> 1.0, >= 1.0.1)
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
||||||
|
rubocop-github (0.6.0)
|
||||||
|
rubocop (~> 0.51)
|
||||||
ruby-prof (0.16.2)
|
ruby-prof (0.16.2)
|
||||||
ruby-progressbar (1.9.0)
|
ruby-progressbar (1.9.0)
|
||||||
ruby_dep (1.5.0)
|
ruby_dep (1.5.0)
|
||||||
@@ -358,7 +360,7 @@ DEPENDENCIES
|
|||||||
rb-fsevent
|
rb-fsevent
|
||||||
responders
|
responders
|
||||||
rspec-rails
|
rspec-rails
|
||||||
rubocop
|
rubocop-github
|
||||||
ruby-prof
|
ruby-prof
|
||||||
sass-rails
|
sass-rails
|
||||||
simplecov
|
simplecov
|
||||||
|
|||||||
@@ -1,314 +0,0 @@
|
|||||||
AllCops:
|
|
||||||
DisabledByDefault: true
|
|
||||||
|
|
||||||
Bundler/DuplicatedGem:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Bundler/OrderedGems:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/BlockAlignment:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/CircularArgumentReference:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/ConditionPosition:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/Debugger:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/DefEndAlignment:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/DeprecatedClassMethods:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/DuplicateMethods:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/DuplicatedKey:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/EachWithObjectArgument:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/ElseLayout:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/EmptyEnsure:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/EndInMethod:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/EmptyInterpolation:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/EndAlignment:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Lint/EnsureReturn:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/FloatOutOfRange:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/FormatParameterMismatch:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/HashSyntax:
|
|
||||||
Enabled: true
|
|
||||||
EnforcedStyle: ruby19
|
|
||||||
|
|
||||||
Lint/LiteralInInterpolation:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/Loop:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/NextWithoutAccumulator:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/RandOne:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/RequireParentheses:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/RescueException:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/StringConversionInInterpolation:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/UnderscorePrefixedVariableName:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/UnneededDisable:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/UnneededSplatExpansion:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/UnreachableCode:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/UselessComparison:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/UselessSetterCall:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Lint/Void:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Metrics/AbcSize:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Metrics/BlockLength:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Metrics/BlockNesting:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Metrics/ClassLength:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Metrics/CyclomaticComplexity:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Metrics/LineLength:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Metrics/MethodLength:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Metrics/ModuleLength:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Metrics/ParameterLists:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Metrics/PerceivedComplexity:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Performance/CaseWhenSplat:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Performance/Count:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/Detect:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/DoubleStartEndWith:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/EndWith:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/FlatMap:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/HashEachMethods:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/LstripRstrip:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/RangeInclude:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Performance/RedundantMatch:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Performance/RedundantMerge:
|
|
||||||
Enabled: true
|
|
||||||
MaxKeyValuePairs: 1
|
|
||||||
|
|
||||||
Performance/RedundantSortBy:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/ReverseEach:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/Sample:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/Size:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Performance/StartWith:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Security/Eval:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/ArrayJoin:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/AsciiIdentifiers:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/BeginBlock:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/BlockComments:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/BlockEndNewline:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/CaseEquality:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/CharacterLiteral:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/ClassAndModuleCamelCase:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/ClassMethods:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/Copyright:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Style/DefWithParentheses:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/EndBlock:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/EndOfLine:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/FileName:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/FlipFlop:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/For:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/FrozenStringLiteralComment:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/InitialIndentation:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/LambdaCall:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/MethodCallWithoutArgsParentheses:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/MethodDefParentheses:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/MethodName:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/MultilineIfThen:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/NilComparison:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/Not:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/OneLineConditional:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/SpaceAfterMethodName:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/SpaceAfterColon:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/SpaceAfterComma:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/SpaceAfterNot:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/SpaceAfterSemicolon:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/SpaceAroundBlockParameters:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/SpaceAroundEqualsInParameterDefault:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/SpaceInsideArrayPercentLiteral:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/SpaceInsideBrackets:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/SpaceInsideParens:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/SpaceInsideRangeLiteral:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/StabbyLambdaParentheses:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Style/StringLiterals:
|
|
||||||
Enabled: true
|
|
||||||
EnforcedStyle: double_quotes
|
|
||||||
|
|
||||||
Layout/Tab:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/TrailingBlankLines:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Layout/TrailingWhitespace:
|
|
||||||
Enabled: true
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
Rails:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Rails/FindEach:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Rails/OutputSafety:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Rails/PluralizationGrammar:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Rails/RequestReferer:
|
|
||||||
Enabled: true
|
|
||||||
EnforcedStyle: referrer
|
|
||||||
|
|
||||||
Rails/ScopeArgs:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
Rails/UniqBeforePluck:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
# Exclude Rails ERB files from incompatible cops
|
|
||||||
|
|
||||||
Lint/BlockAlignment:
|
|
||||||
Exclude:
|
|
||||||
- 'app/views/**/*.erb'
|
|
||||||
|
|
||||||
Style/For:
|
|
||||||
Exclude:
|
|
||||||
- 'app/views/**/*.erb'
|
|
||||||
|
|
||||||
Style/OneLineConditional:
|
|
||||||
Exclude:
|
|
||||||
- 'app/views/**/*.erb'
|
|
||||||
|
|
||||||
Style/Semicolon:
|
|
||||||
Exclude:
|
|
||||||
- 'app/views/**/*.erb'
|
|
||||||
|
|
||||||
Layout/SpaceInsideParens:
|
|
||||||
Exclude:
|
|
||||||
- 'app/views/**/*.erb'
|
|
||||||
|
|
||||||
Style/StringLiterals:
|
|
||||||
Exclude:
|
|
||||||
- 'app/views/**/*.erb'
|
|
||||||
|
|
||||||
Layout/TrailingBlankLines:
|
|
||||||
Exclude:
|
|
||||||
- 'app/views/**/*.erb'
|
|
||||||
|
|
||||||
Layout/TrailingWhitespace:
|
|
||||||
Exclude:
|
|
||||||
- 'app/views/**/*.erb'
|
|
||||||
Reference in New Issue
Block a user