X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/01a506a254cf53700c201d40b4287e5aae02af2c..0f9e28711cfc3fa2ba3c56608abebc4cff4c21b8:/.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'