AllCops: TargetRubyVersion: 2.4 Include: - '**/*.gemspec' - '**/*.podspec' - '**/*.jbuilder' - '**/*.rake' - '**/Gemfile' - '**/Rakefile' - '**/Capfile' - '**/Guardfile' - '**/Podfile' - '**/Thorfile' - '**/Vagrantfile' - '**/*.rb' Exclude: - 'Capfile' - 'tmp/**/*' - 'log/**/*' - 'db/**/*' - 'vendor/**/*' - 'stubs/**/*' - 'bin/**/*' - 'node_modules/**/*' - 'features/step_definitions/*' - 'config/deploy.rb' - 'config/deploy/**/*.rb' # Checks formatting of special comments CommentAnnotation: Keywords: - TODO - FIXME - OPTIMIZE - HACK - REVIEW ######################################## # Style Cops Style/Documentation: Enabled: false Style/RegexpLiteral: Enabled: false Style/RaiseArgs: Enabled: false Style/DoubleNegation: Enabled: false Style/SignalException: EnforcedStyle: semantic Style/ClassAndModuleChildren: Enabled: false Style/TrivialAccessors: Enabled: false Style/NumericLiterals: Enabled: false Style/EmptyMethod: Enabled: false Style/MixinUsage: Enabled: false Style/AndOr: Enabled: false Style/FrozenStringLiteralComment: EnforcedStyle: always # String#format is private now Style/FormatString: Enabled: false Style/Alias: EnforcedStyle: prefer_alias_method ######################################## # Layout Cops Layout/LineLength: Max: 110 Exclude: - 'app/views/**/*' Layout/ParameterAlignment: EnforcedStyle: with_fixed_indentation Layout/ArgumentAlignment: EnforcedStyle: with_fixed_indentation Layout/AssignmentIndentation: Enabled: false Layout/EmptyLinesAroundBlockBody: Enabled: false Layout/MultilineMethodCallIndentation: EnforcedStyle: indented IndentationWidth: 4 Layout/CaseIndentation: Enabled: false Layout/ElseAlignment: Enabled: false Layout/EndAlignment: EnforcedStyleAlignWith: variable ######################################## # Naming Cops Naming/FileName: Enabled: false ######################################## # Security Cops Security/Eval: Enabled: true ######################################## # Lint Cops Lint/AssignmentInCondition: Enabled: false ######################################## # Metrics Cops Metrics/MethodLength: CountComments: false # count full line comments? Max: 20 Metrics/ClassLength: Max: 120 Metrics/AbcSize: Max: 20 Metrics/BlockLength: Enabled: true Exclude: - spec/**/* ######################################## # Bundler Cops Bundler/OrderedGems: Enabled: false