inherit_from: - .custom_simplycop.yml - .simplycop_security.yml - .simplycop_metaprogramming.yml AllCops: TargetRubyVersion: 2.5 Exclude: - 'db/schema.rb' - 'vendor/**/*' # Cop names are not displayed in offense messages by default. Change behavior # by overriding DisplayCopNames, or by giving the -D/--display-cop-names # option. DisplayCopNames: true # Style guide URLs are not displayed in offense messages by default. Change # behavior by overriding DisplayStyleGuide, or by giving the # -S/--display-style-guide option. DisplayStyleGuide: true UseCache: true MaxFilesInCache: 5000 ExtraDetails: true # Adapted from: https://github.com/simplybusiness/how-we-roll/blob/master/development/RUBYSTYLEGUIDE.markdown Gemspec/DateAssignment: Enabled: true Layout/EmptyLineAfterMultilineCondition: Enabled: true Layout/FirstArrayElementLineBreak: Enabled: true Layout/FirstMethodArgumentLineBreak: Enabled: true Layout/FirstHashElementLineBreak: Enabled: true Layout/HeredocArgumentClosingParenthesis: Enabled: true Layout/SpaceBeforeBrackets: Enabled: true Lint/AmbiguousAssignment: Enabled: true Lint/AmbiguousBlockAssociation: Exclude: - spec/**/* Lint/DeprecatedConstants: Enabled: true Lint/DuplicateBranch: Enabled: true Lint/DuplicateRegexpCharacterClassElement: Enabled: true Lint/EmptyBlock: Enabled: true Lint/EmptyClass: Enabled: true Lint/HeredocMethodCallPosition: Enabled: true Lint/LambdaWithoutLiteralBlock: Enabled: true Lint/NoReturnInBeginEndBlocks: Enabled: true Lint/NumberedParameterAssignment: Enabled: true Lint/OrAssignmentToConstant: Enabled: true Lint/RedundantDirGlobSort: Enabled: true Lint/SymbolConversion: Enabled: true Lint/ToEnumArguments: Enabled: true Lint/TripleQuotes: Enabled: true Lint/UnexpectedBlockArity: Enabled: true Lint/UnmodifiedReduceAccumulator: Enabled: true Metrics/BlockLength: Exclude: - spec/**/*.rb Metrics/ClassLength: Max: 512 ###### COPS REVIEWED ABOVE THIS LINE ###### Style/AccessorGrouping: Enabled: true Style/Alias: Enabled: false Style/ArgumentsForwarding: Enabled: true Style/ArrayCoercion: Enabled: true Style/BisectedAttrAccessor: Enabled: true Style/CaseLikeIf: Enabled: true Style/CollectionCompact: Enabled: true Style/ColonMethodCall: Enabled: true Severity: warning Style/CombinableLoops: Enabled: true Style/ConditionalAssignment: Enabled: true Style/DocumentDynamicEvalDefinition: Enabled: false Style/Documentation: Enabled: false Style/EndlessMethod: Enabled: true Style/ExplicitBlockArgument: Enabled: true Style/ExponentialNotation: Enabled: false Style/For: Enabled: true Style/FormatString: Enabled: false Style/FormatStringToken: Enabled: false Style/FrozenStringLiteralComment: Enabled: false Style/GlobalStdStream: Enabled: true Style/GuardClause: Enabled: false Style/HashAsLastArrayItem: Enabled: true Style/HashConversion: Enabled: true Style/HashEachMethods: Enabled: false Style/HashExcept: Enabled: true Style/HashLikeCase: Enabled: false Style/HashTransformKeys: Enabled: true Style/HashTransformValues: Enabled: true Style/IfInsideElse: Enabled: true Style/IfWithBooleanLiteralBranches: Enabled: true Style/KeywordParametersOrder: Enabled: true Style/LambdaCall: Enabled: true Style/MethodDefParentheses: Enabled: true Style/MultilineTernaryOperator: Enabled: true Style/MutableConstant: Enabled: false Style/NegatedIfElseCondition: Enabled: true Style/NestedModifier: Enabled: true Style/NestedParenthesizedCalls: Enabled: true Style/NestedTernaryOperator: Enabled: true Style/NilLambda: Enabled: true Style/NumericPredicate: Enabled: false Style/OptionalArguments: Enabled: true Style/OptionalBooleanParameter: Enabled: true Style/ParenthesesAroundCondition: Enabled: true Style/RedundantArgument: Enabled: true Style/RedundantAssignment: Enabled: true Style/RedundantBegin: Enabled: true Style/RedundantException: Enabled: true Style/RedundantFetchBlock: Enabled: true Style/RedundantFileExtensionInRequire: Enabled: true Style/RedundantInterpolation: Enabled: false Style/RedundantParentheses: Enabled: true Style/RedundantRegexpCharacterClass: Enabled: true Style/RedundantRegexpEscape: Enabled: true Style/RedundantReturn: Enabled: true Severity: warning Style/RedundantSelfAssignment: Enabled: true Style/SelfAssignment: Enabled: true Style/SingleArgumentDig: Enabled: true Style/SlicingWithRange: Enabled: false Style/SoleNestedConditional: Enabled: true Style/SpecialGlobalVars: Enabled: true Severity: warning Style/StringChars: Enabled: true Style/StringConcatenation: Enabled: true Style/StringLiterals: Enabled: false Style/SwapValues: Enabled: true Style/SymbolArray: EnforcedStyle: brackets Style/UnlessElse: Enabled: true Style/WordArray: EnforcedStyle: brackets Style/ZeroLengthPredicate: Enabled: true