- Changed rubocop file layout.
- Added ToDo cops.
This commit is contained in:
parent
4f6b7c1860
commit
4e7037f820
1 changed files with 92 additions and 12 deletions
104
.rubocop.yml
104
.rubocop.yml
|
@ -1,3 +1,9 @@
|
||||||
|
# Default enabled cops
|
||||||
|
# https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
|
||||||
|
|
||||||
|
# TODO:
|
||||||
|
# https://github.com/bbatsov/rubocop#includingexcluding-files
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
RunRailsCops: true
|
RunRailsCops: true
|
||||||
Exclude:
|
Exclude:
|
||||||
|
@ -6,13 +12,6 @@ AllCops:
|
||||||
- 'bin/spring'
|
- 'bin/spring'
|
||||||
- 'db/schema.rb'
|
- 'db/schema.rb'
|
||||||
|
|
||||||
# Default enabled
|
|
||||||
# https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
|
|
||||||
|
|
||||||
# TODO:
|
|
||||||
# https://github.com/bbatsov/rubocop#includingexcluding-files
|
|
||||||
|
|
||||||
|
|
||||||
Metrics/LineLength:
|
Metrics/LineLength:
|
||||||
Description: 'Limit lines to 80 characters.'
|
Description: 'Limit lines to 80 characters.'
|
||||||
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
|
||||||
|
@ -136,7 +135,6 @@ Style/SelfAssignment:
|
||||||
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# [Corrected] Redundant curly braces around a hash parameter.
|
|
||||||
Style/BracesAroundHashParameters:
|
Style/BracesAroundHashParameters:
|
||||||
Description: 'Enforce braces style around hash parameters.'
|
Description: 'Enforce braces style around hash parameters.'
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
@ -146,10 +144,7 @@ Rails/FindEach:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Style/Documentation:
|
Style/Documentation:
|
||||||
Description: 'Document classes and non-namespace modules.'
|
Description: 'Document classes and non-namespace modules.'
|
||||||
|
@ -207,3 +202,88 @@ Metrics/AbcSize:
|
||||||
A calculated magnitude based on number of assignments,
|
A calculated magnitude based on number of assignments,
|
||||||
branches, and conditions.
|
branches, and conditions.
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
Style/RedundantSelf:
|
||||||
|
Enabled: false
|
||||||
|
Style/Next:
|
||||||
|
Enabled: false
|
||||||
|
Rails/Output:
|
||||||
|
Enabled: false
|
||||||
|
Lint/UselessAccessModifier:
|
||||||
|
Enabled: false
|
||||||
|
Style/CommentIndentation:
|
||||||
|
Enabled: false
|
||||||
|
Metrics/CyclomaticComplexity:
|
||||||
|
Enabled: false
|
||||||
|
Style/ClassAndModuleChildren:
|
||||||
|
Enabled: false
|
||||||
|
Lint/StringConversionInInterpolation:
|
||||||
|
Enabled: false
|
||||||
|
Metrics/PerceivedComplexity:
|
||||||
|
Enabled: false
|
||||||
|
Style/FileName:
|
||||||
|
Enabled: false
|
||||||
|
Style/GlobalVars:
|
||||||
|
Enabled: false
|
||||||
|
Rails/TimeZone:
|
||||||
|
Enabled: false
|
||||||
|
Rails/TimeZone:
|
||||||
|
Enabled: false
|
||||||
|
Metrics/BlockNesting:
|
||||||
|
Enabled: false
|
||||||
|
Lint/RescueException:
|
||||||
|
Enabled: false
|
||||||
|
Style/EachWithObject:
|
||||||
|
Enabled: false
|
||||||
|
Style/PredicateName:
|
||||||
|
Enabled: false
|
||||||
|
Style/ClassVars:
|
||||||
|
Enabled: false
|
||||||
|
Lint/LiteralInCondition:
|
||||||
|
Enabled: false
|
||||||
|
Style/PredicateName:
|
||||||
|
Enabled: false
|
||||||
|
Style/SpaceBeforeComment:
|
||||||
|
Enabled: false
|
||||||
|
Lint/UselessAssignment:
|
||||||
|
Enabled: false
|
||||||
|
Lint/NonLocalExitFromIterator:
|
||||||
|
Enabled: false
|
||||||
|
Style/ColonMethodCall:
|
||||||
|
Enabled: false
|
||||||
|
Rails/Date:
|
||||||
|
Enabled: false
|
||||||
|
Style/VariableName:
|
||||||
|
Enabled: false
|
||||||
|
Lint/UnreachableCode:
|
||||||
|
Enabled: false
|
||||||
|
Lint/ShadowingOuterLocalVariable:
|
||||||
|
Enabled: false
|
||||||
|
Style/InfiniteLoop:
|
||||||
|
Enabled: false
|
||||||
|
Lint/AmbiguousRegexpLiteral:
|
||||||
|
Enabled: false
|
||||||
|
Rails/Validation:
|
||||||
|
Enabled: false
|
||||||
|
Style/MultilineOperationIndentation:
|
||||||
|
Enabled: false
|
||||||
|
Style/OneLineConditional:
|
||||||
|
Enabled: false
|
||||||
|
Style/ClassMethods:
|
||||||
|
Enabled: false
|
||||||
|
Lint/Eval:
|
||||||
|
Enabled: false
|
||||||
|
Rails/HasAndBelongsToMany:
|
||||||
|
Enabled: false
|
||||||
|
Style/MethodName:
|
||||||
|
Enabled: false
|
||||||
|
Style/ModuleFunction:
|
||||||
|
Enabled: false
|
||||||
|
Style/AccessModifierIndentation:
|
||||||
|
Enabled: false
|
||||||
|
Lint/Loop:
|
||||||
|
Enabled: false
|
||||||
|
Style/For:
|
||||||
|
Enabled: false
|
||||||
|
Style/WhileUntilDo:
|
||||||
|
Enabled: false
|
||||||
|
|
Loading…
Reference in a new issue