AllCops: Exclude: - 'gloo.gemspec' - 'Gemfile' - 'Rakefile' - 'bin/**/*' - 'test/**/*' # -------------- Layout -------------- # Layout/SpaceInsideParens: EnforcedStyle: space Layout/EmptyLinesAroundClassBody: EnforcedStyle: empty_lines Layout/SpaceAroundMethodCallOperator: Enabled: true Layout/SpaceInsideArrayLiteralBrackets: EnforcedStyle: space Layout/SpaceInsideReferenceBrackets: Enabled: true EnforcedStyle: space # -------------- Style -------------- # Style/RescueStandardError: EnforcedStyle: implicit Style/HashSyntax: EnforcedStyle: no_mixed_keys Style/ExponentialNotation: Enabled: true Style/HashEachMethods: Enabled: true Style/HashTransformKeys: Enabled: true Style/HashTransformValues: Enabled: true Style/RedundantReturn: Enabled: false Style/FrozenStringLiteralComment: Enabled: false Style/GlobalVars: Enabled: false Style/Documentation: Enabled: false Style/RedundantSelf: Enabled: false Style/IfUnlessModifier: Enabled: false Style/ClassEqualityComparison: Enabled: false Style/ArgumentsForwarding: # (new in 1.1) Enabled: true Style/CollectionCompact: # (new in 1.2) Enabled: true Style/DocumentDynamicEvalDefinition: # (new in 1.1) Enabled: true Style/NegatedIfElseCondition: # (new in 1.2) Enabled: true Style/SwapValues: # (new in 1.1) Enabled: true Style/OptionalBooleanParameter: Enabled: false Style/CaseLikeIf: Enabled: false # -------------- Naming -------------- # Naming/PredicateName: Enabled: true Naming/AccessorMethodName: Enabled: false # -------------- Metrics -------------- # Metrics/MethodLength: Max: 17 # Default is 10 Enabled: true Metrics/CyclomaticComplexity: Max: 11 # Default is 6 Naming/MethodParameterName: MinNameLength: 2 # Default value is 3 Metrics/PerceivedComplexity: Max: 11 # default value is 7 Metrics/ClassLength: Max: 157 # default is 100 Metrics/AbcSize: Max: 39 # default is 15 # -------------- Lint -------------- # Lint/RaiseException: Enabled: true Lint/StructNewOverride: Enabled: true Lint/NonDeterministicRequireOrder: Enabled: false Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1) Enabled: true Lint/EmptyBlock: # (new in 1.1) Enabled: true Lint/NoReturnInBeginEndBlocks: # (new in 1.2) Enabled: true Lint/ToEnumArguments: # (new in 1.1) Enabled: true Lint/UnmodifiedReduceAccumulator: # (new in 1.1) Enabled: true Lint/MissingSuper: Enabled: false # -------------- Security -------------- # Security/Eval: Enabled: true