X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/29aac6e14964d612ee6a06998ae61bc8923f5946..434035eb5a372a255b6c167d6c2e5a3164248c8b:/.rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml index 1ae01086a..d9fcce7c6 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,11 +1,13 @@ inherit_from: .rubocop_todo.yml require: + - rubocop-minitest - rubocop-performance - rubocop-rails AllCops: TargetRubyVersion: 2.5 + NewCops: enable Exclude: - 'vendor/**/*' @@ -29,6 +31,9 @@ Metrics/ClassLength: Exclude: - 'test/**/*' +Metrics/ModuleLength: + Max: 150 + Naming/FileName: Exclude: - 'script/deliver-message' @@ -58,9 +63,6 @@ Rails/SkipsModelValidations: - 'db/migrate/*.rb' - 'app/controllers/users_controller.rb' -Style/BracesAroundHashParameters: - EnforcedStyle: context_dependent - Style/Documentation: Enabled: false @@ -73,12 +75,21 @@ Style/IfInsideElse: Style/GuardClause: Enabled: false +Style/HashEachMethods: + Enabled: true + Style/HashSyntax: EnforcedStyle: hash_rockets Exclude: - 'lib/tasks/testing.rake' - 'config/initializers/wrap_parameters.rb' +Style/HashTransformKeys: + Enabled: true + +Style/HashTransformValues: + Enabled: true + Style/MixinUsage: Exclude: - 'bin/setup'