Skip to content

Instantly share code, notes, and snippets.

@barrettclark
Created January 30, 2018 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barrettclark/7e6465eb22decc61c08884700b9832a1 to your computer and use it in GitHub Desktop.
Save barrettclark/7e6465eb22decc61c08884700b9832a1 to your computer and use it in GitHub Desktop.
AllCops:
DisabledByDefault: true
TargetRubyVersion: 2.4
Bundler/DuplicatedGem:
Enabled: true
Bundler/OrderedGems:
Enabled: true
Gemspec/OrderedDependencies:
Enabled: true
TreatCommentsAsGroupSeparators: true
Include:
- '**/*.gemspec'
Layout/AccessModifierIndentation:
Enabled: true
Layout/BlockEndNewline:
Enabled: true
Layout/CaseIndentation:
Enabled: true
Layout/EmptyLineBetweenDefs:
Enabled: true
Layout/EndOfLine:
Enabled: true
EnforcedStyle: lf
Layout/IndentHeredoc:
Enabled: true
Layout/IndentationConsistency:
Enabled: true
EnforcedStyle: normal
Layout/IndentationWidth:
Enabled: true
Width: 2
Layout/InitialIndentation:
Enabled: true
Layout/MultilineMethodCallIndentation:
Enabled: true
Layout/MultilineOperationIndentation:
Enabled: true
Layout/SpaceAfterColon:
Enabled: true
Layout/SpaceAfterComma:
Enabled: true
Layout/SpaceAfterMethodName:
Enabled: true
Layout/SpaceAfterNot:
Enabled: true
Layout/SpaceAfterSemicolon:
Enabled: true
Layout/SpaceAroundBlockParameters:
Enabled: true
Layout/SpaceAroundEqualsInParameterDefault:
Enabled: true
Layout/SpaceAroundOperators:
Enabled: true
Layout/SpaceInsideArrayPercentLiteral:
Enabled: true
Layout/SpaceInsideBrackets:
Enabled: true
Layout/SpaceInsideParens:
Enabled: true
Layout/SpaceInsideRangeLiteral:
Enabled: true
Layout/Tab:
Enabled: true
Layout/TrailingBlankLines:
Enabled: true
Layout/TrailingWhitespace:
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
Lint/LiteralAsCondition:
Enabled: true
Lint/LiteralInInterpolation:
Enabled: true
Lint/Loop:
Enabled: true
Lint/NextWithoutAccumulator:
Enabled: true
Lint/RandOne:
Enabled: true
Lint/RedundantWithIndex:
Enabled: true
Lint/RedundantWithObject:
Enabled: true
Lint/RegexpAsCondition:
Enabled: true
Lint/RequireParentheses:
Enabled: true
Lint/RescueException:
Enabled: true
Lint/RescueType:
Enabled: true
Lint/RescueWithoutErrorClass:
Enabled: true
Lint/StringConversionInInterpolation:
Enabled: true
Lint/UnderscorePrefixedVariableName:
Enabled: true
Lint/UnneededDisable:
Enabled: true
Lint/UnneededRequireStatement:
Enabled: true
Lint/UnneededSplatExpansion:
Enabled: true
Lint/UnreachableCode:
Enabled: true
Lint/UnusedBlockArgument:
Enabled: true
Lint/UnusedMethodArgument:
Enabled: true
Lint/UselessComparison:
Enabled: true
Lint/UselessSetterCall:
Enabled: true
Lint/Void:
Enabled: true
Metrics/AbcSize:
Enabled: true
Max: 20
Metrics/BlockLength:
Enabled: false
Metrics/BlockNesting:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: true
Metrics/LineLength:
Enabled: true
Max: 120
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: true
Naming/AsciiIdentifiers:
Enabled: true
Naming/ClassAndModuleCamelCase:
Enabled: true
Naming/ConstantName:
Enabled: true
Naming/FileName:
Enabled: true
Naming/MethodName:
Enabled: true
Naming/PredicateName:
Enabled: true
MethodDefinitionMacros:
- define_method
- define_singleton_method
Naming/VariableName:
Enabled: true
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/AndOr:
Enabled: true
Style/ArrayJoin:
Enabled: true
Style/BeginBlock:
Enabled: true
Style/BlockComments:
Enabled: true
Style/BlockDelimiters:
Enabled: true
Style/CaseEquality:
Enabled: true
Style/CharacterLiteral:
Enabled: true
Style/ClassMethods:
Enabled: true
Style/ClassVars:
Enabled: true
Style/DateTime:
Enabled: true
Style/DefWithParentheses:
Enabled: true
Style/EndBlock:
Enabled: true
Style/FlipFlop:
Enabled: true
Style/For:
Enabled: true
Style/FrozenStringLiteralComment:
Enabled: true
Style/GuardClause:
Enabled: true
Style/HashSyntax:
Enabled: true
EnforcedStyle: ruby19
Style/LambdaCall:
Enabled: true
Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/MethodCallWithoutArgsParentheses:
Enabled: true
Style/MethodDefParentheses:
Enabled: true
Style/MixinUsage:
Enabled: true
Style/MultilineIfThen:
Enabled: true
Style/MultilineTernaryOperator:
Enabled: true
Style/NegatedIf:
Enabled: true
Style/NegatedWhile:
Enabled: true
Style/NestedTernaryOperator:
Enabled: true
Style/NilComparison:
Enabled: true
Style/Not:
Enabled: true
Style/NumericLiteralPrefix:
Enabled: true
Style/NumericLiterals:
Enabled: true
Style/OneLineConditional:
Enabled: true
Style/ParenthesesAroundCondition:
Enabled: true
Style/PerlBackrefs:
Enabled: true
Style/RedundantReturn:
Enabled: true
Style/RedundantSelf:
Enabled: true
Style/PerlBackrefs:
Enabled: true
Style/SpecialGlobalVars:
Enabled: true
Style/StabbyLambdaParentheses:
Enabled: true
Style/StderrPuts:
StyleGuide: '#warn'
Enabled: true
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
Style/UnlessElse:
Enabled: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment