require: - rubocop-performance - rubocop-rspec AllCops: TargetRubyVersion: 2.4 DisplayCopNames: true DisplayStyleGuide: true Exclude: - 'bin/*' - 'suika.gemspec' - 'Rakefile' - 'Gemfile' Layout/EmptyLineAfterGuardClause: Enabled: false Layout/EmptyLinesAroundAttributeAccessor: Enabled: true Layout/LineLength: Max: 145 IgnoredPatterns: ['(\A|\s)#'] Layout/SpaceAroundMethodCallOperator: Enabled: true Lint/DeprecatedOpenSSLConstant: Enabled: true Lint/MixedRegexpCaptureTypes: Enabled: true Lint/RaiseException: Enabled: true Lint/StructNewOverride: Enabled: true Metrics/ModuleLength: Max: 200 Metrics/ClassLength: Max: 200 Metrics/MethodLength: Max: 50 Metrics/AbcSize: Max: 60 Metrics/CyclomaticComplexity: Max: 16 Metrics/PerceivedComplexity: Max: 16 Metrics/BlockLength: Max: 40 Exclude: - 'spec/**/*' Metrics/ParameterLists: Max: 12 Naming/MethodParameterName: Enabled: false Naming/ConstantName: Enabled: false Security/MarshalLoad: Enabled: false Style/AsciiComments: Enabled: false Style/Documentation: Enabled: false Style/ExponentialNotation: Enabled: true Style/HashEachMethods: Enabled: true Style/HashTransformKeys: Enabled: true Style/HashTransformValues: Enabled: true Style/RedundantRegexpCharacterClass: Enabled: true Style/RedundantRegexpEscape: Enabled: true Style/SlicingWithRange: Enabled: true Style/FormatStringToken: Enabled: false Style/NumericLiterals: Enabled: false RSpec/MultipleExpectations: Enabled: false RSpec/ExampleLength: Max: 40 RSpec/InstanceVariable: Enabled: false RSpec/LeakyConstantDeclaration: Enabled: false