Add missing default configuration to Rubocop

This commit is contained in:
gregoirenovel 2018-03-06 11:50:50 +01:00
parent 24120ddc8c
commit 536226d01e

View file

@ -8,9 +8,21 @@ AllCops:
Bundler/DuplicatedGem: Bundler/DuplicatedGem:
Enabled: true Enabled: true
Bundler/InsecureProtocolSource:
Enabled: true
Bundler/OrderedGems: Bundler/OrderedGems:
Enabled: false Enabled: false
Gemspec/DuplicatedAssignment:
Enabled: true
Gemspec/OrderedDependencies:
Enabled: true
Gemspec/RequiredRubyVersion:
Enabled: true
Layout/AccessModifierIndentation: Layout/AccessModifierIndentation:
Enabled: true Enabled: true
@ -34,6 +46,9 @@ Layout/CaseIndentation:
Enabled: true Enabled: true
EnforcedStyle: end EnforcedStyle: end
Layout/ClassStructure:
Enabled: false
Layout/ClosingParenthesisIndentation: Layout/ClosingParenthesisIndentation:
Enabled: true Enabled: true
@ -52,6 +67,9 @@ Layout/DotPosition:
Layout/ElseAlignment: Layout/ElseAlignment:
Enabled: true Enabled: true
Layout/EmptyComment:
Enabled: true
Layout/EmptyLineAfterMagicComment: Layout/EmptyLineAfterMagicComment:
Enabled: true Enabled: true
@ -64,6 +82,9 @@ Layout/EmptyLines:
Layout/EmptyLinesAroundAccessModifier: Layout/EmptyLinesAroundAccessModifier:
Enabled: true Enabled: true
Layout/EmptyLinesAroundArguments:
Enabled: true
Layout/EmptyLinesAroundBeginBody: Layout/EmptyLinesAroundBeginBody:
Enabled: true Enabled: true
@ -261,6 +282,12 @@ Lint/AmbiguousRegexpLiteral:
Lint/AssignmentInCondition: Lint/AssignmentInCondition:
Enabled: false Enabled: false
Lint/BigDecimalNew:
Enabled: true
Lint/BooleanSymbol:
Enabled: true
Lint/CircularArgumentReference: Lint/CircularArgumentReference:
Enabled: false Enabled: false
@ -321,6 +348,9 @@ Lint/IneffectiveAccessModifier:
Lint/InheritException: Lint/InheritException:
Enabled: false Enabled: false
Lint/InterpolationCheck:
Enabled: true
Lint/LiteralAsCondition: Lint/LiteralAsCondition:
Enabled: false Enabled: false
@ -330,18 +360,30 @@ Lint/LiteralInInterpolation:
Lint/Loop: Lint/Loop:
Enabled: false Enabled: false
Lint/MissingCopEnableDirective:
Enabled: true
Lint/MultipleCompare: Lint/MultipleCompare:
Enabled: false Enabled: false
Lint/NestedMethodDefinition: Lint/NestedMethodDefinition:
Enabled: false Enabled: false
Lint/NestedPercentLiteral:
Enabled: true
Lint/NextWithoutAccumulator: Lint/NextWithoutAccumulator:
Enabled: false Enabled: false
Lint/NonLocalExitFromIterator: Lint/NonLocalExitFromIterator:
Enabled: false Enabled: false
Lint/NumberConversion:
Enabled: false
Lint/OrderedMagicComments:
Enabled: true
Lint/ParenthesesAsGroupedExpression: Lint/ParenthesesAsGroupedExpression:
Enabled: false Enabled: false
@ -354,6 +396,15 @@ Lint/PercentSymbolArray:
Lint/RandOne: Lint/RandOne:
Enabled: false Enabled: false
Lint/RedundantWithIndex:
Enabled: true
Lint/RedundantWithObject:
Enabled: true
Lint/RegexpAsCondition:
Enabled: true
Lint/RequireParentheses: Lint/RequireParentheses:
Enabled: false Enabled: false
@ -372,6 +423,9 @@ Lint/SafeNavigationChain:
Lint/ScriptPermission: Lint/ScriptPermission:
Enabled: false Enabled: false
Lint/ShadowedArgument:
Enabled: true
Lint/ShadowedException: Lint/ShadowedException:
Enabled: false Enabled: false
@ -393,6 +447,12 @@ Lint/UnifiedInteger:
Lint/UnneededCopDisableDirective: Lint/UnneededCopDisableDirective:
Enabled: false Enabled: false
Lint/UnneededCopEnableDirective:
Enabled: true
Lint/UnneededRequireStatement:
Enabled: true
Lint/UnneededSplatExpansion: Lint/UnneededSplatExpansion:
Enabled: false Enabled: false
@ -477,6 +537,9 @@ Naming/ConstantName:
Naming/FileName: Naming/FileName:
Enabled: false Enabled: false
Naming/HeredocDelimiterCase:
Enabled: true
Naming/HeredocDelimiterNaming: Naming/HeredocDelimiterNaming:
Enabled: false Enabled: false
@ -489,6 +552,9 @@ Naming/MethodName:
Naming/PredicateName: Naming/PredicateName:
Enabled: false Enabled: false
Naming/UncommunicativeBlockParamName:
Enabled: true
Naming/UncommunicativeMethodParamName: Naming/UncommunicativeMethodParamName:
Enabled: false Enabled: false
@ -567,9 +633,18 @@ Performance/StringReplacement:
Performance/TimesMap: Performance/TimesMap:
Enabled: true Enabled: true
Performance/UnfreezeString:
Enabled: true
Performance/UriDefaultParser:
Enabled: true
Rails/ActionFilter: Rails/ActionFilter:
Enabled: false Enabled: false
Rails/ActiveRecordAliases:
Enabled: true
Rails/ActiveSupportAliases: Rails/ActiveSupportAliases:
Enabled: false Enabled: false
@ -651,6 +726,9 @@ Rails/Present:
Rails/ReadWriteAttribute: Rails/ReadWriteAttribute:
Enabled: false Enabled: false
Rails/RedundantReceiverInWithOptions:
Enabled: true
Rails/RelativeDateConstant: Rails/RelativeDateConstant:
Enabled: false Enabled: false
@ -699,6 +777,9 @@ Security/JSONLoad:
Security/MarshalLoad: Security/MarshalLoad:
Enabled: false Enabled: false
Security/Open:
Enabled: true
Security/YAMLLoad: Security/YAMLLoad:
Enabled: false Enabled: false
@ -759,6 +840,9 @@ Style/CollectionMethods:
Style/ColonMethodCall: Style/ColonMethodCall:
Enabled: false Enabled: false
Style/ColonMethodDefinition:
Enabled: true
Style/CommandLiteral: Style/CommandLiteral:
Enabled: false Enabled: false
@ -780,6 +864,9 @@ Style/DateTime:
Style/DefWithParentheses: Style/DefWithParentheses:
Enabled: false Enabled: false
Style/Dir:
Enabled: true
Style/Documentation: Style/Documentation:
Enabled: false Enabled: false
@ -795,12 +882,21 @@ Style/EachForSimpleLoop:
Style/EachWithObject: Style/EachWithObject:
Enabled: false Enabled: false
Style/EmptyBlockParameter:
Enabled: true
Style/EmptyCaseCondition: Style/EmptyCaseCondition:
Enabled: false Enabled: false
Style/EmptyElse: Style/EmptyElse:
Enabled: false Enabled: false
Style/EmptyLambdaParameter:
Enabled: true
Style/EmptyLineAfterGuardClause:
Enabled: false
Style/EmptyLiteral: Style/EmptyLiteral:
Enabled: false Enabled: false
@ -819,6 +915,9 @@ Style/EvalWithLocation:
Style/EvenOdd: Style/EvenOdd:
Enabled: false Enabled: false
Style/ExpandPathArguments:
Enabled: true
Style/FlipFlop: Style/FlipFlop:
Enabled: false Enabled: false
@ -843,9 +942,6 @@ Style/GuardClause:
Style/HashSyntax: Style/HashSyntax:
Enabled: false Enabled: false
Style/HeredocDelimiterNaming:
Enabled: false
Style/IdenticalConditionalBranches: Style/IdenticalConditionalBranches:
Enabled: false Enabled: false
@ -897,6 +993,9 @@ Style/MethodDefParentheses:
Style/MethodMissing: Style/MethodMissing:
Enabled: false Enabled: false
Style/MinMax:
Enabled: true
Style/MissingElse: Style/MissingElse:
Enabled: false Enabled: false
@ -978,6 +1077,9 @@ Style/OptionalArguments:
Style/ParallelAssignment: Style/ParallelAssignment:
Enabled: false Enabled: false
Style/OrAssignment:
Enabled: true
Style/ParenthesesAroundCondition: Style/ParenthesesAroundCondition:
Enabled: false Enabled: false
@ -1005,6 +1107,9 @@ Style/RandomWithOffset:
Style/RedundantBegin: Style/RedundantBegin:
Enabled: false Enabled: false
Style/RedundantConditional:
Enabled: true
Style/RedundantException: Style/RedundantException:
Enabled: false Enabled: false
@ -1029,6 +1134,9 @@ Style/RescueModifier:
Style/RescueStandardError: Style/RescueStandardError:
Enabled: false Enabled: false
Style/ReturnNil:
Enabled: false
Style/SafeNavigation: Style/SafeNavigation:
Enabled: false Enabled: false
@ -1056,6 +1164,12 @@ Style/SpecialGlobalVars:
Style/StabbyLambdaParentheses: Style/StabbyLambdaParentheses:
Enabled: false Enabled: false
Style/StderrPuts:
Enabled: true
Style/StringHashKeys:
Enabled: false
Style/StringLiterals: Style/StringLiterals:
Enabled: false Enabled: false
@ -1080,6 +1194,15 @@ Style/SymbolProc:
Style/TernaryParentheses: Style/TernaryParentheses:
Enabled: false Enabled: false
Style/TrailingBodyOnClass:
Enabled: true
Style/TrailingBodyOnMethodDefinition:
Enabled: true
Style/TrailingBodyOnModule:
Enabled: true
Style/TrailingCommaInArguments: Style/TrailingCommaInArguments:
Enabled: false Enabled: false
@ -1089,6 +1212,9 @@ Style/TrailingCommaInArrayLiteral:
Style/TrailingCommaInHashLiteral: Style/TrailingCommaInHashLiteral:
Enabled: false Enabled: false
Style/TrailingMethodEndStatement:
Enabled: true
Style/TrailingUnderscoreVariable: Style/TrailingUnderscoreVariable:
Enabled: false Enabled: false