X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/420a7289a0b08eee091f6650c2e83166df3fbe69..40809825e8ff920cbce685360b7dce8296a29399:/.rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml index b33f9046c..18bf69b9b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,7 +1,13 @@ inherit_from: .rubocop_todo.yml +require: + - rubocop-performance + - rubocop-rails + AllCops: - TargetRubyVersion: 2.3 + TargetRubyVersion: 2.5 + Exclude: + - 'vendor/**/*' Rails: Enabled: true @@ -15,6 +21,14 @@ Lint/PercentStringArray: - 'app/controllers/application_controller.rb' - 'app/controllers/site_controller.rb' +Metrics/BlockLength: + Exclude: + - 'config/routes.rb' + +Metrics/ClassLength: + Exclude: + - 'test/**/*' + Naming/FileName: Exclude: - 'script/deliver-message' @@ -24,9 +38,6 @@ Naming/FileName: Naming/UncommunicativeMethodParamName: Enabled: false -Rails/ApplicationRecord: - Enabled: false - Rails/CreateTableWithTimestamps: Enabled: false