Skip to content
Snippets Groups Projects
Commit 39ab9316 authored by Darius Schneider's avatar Darius Schneider
Browse files

Update rubocop-for-gem.yml

parent 47c81080
Branches
No related tags found
No related merge requests found
...@@ -82,6 +82,17 @@ Metrics/PerceivedComplexity: ...@@ -82,6 +82,17 @@ Metrics/PerceivedComplexity:
# END Metrics # END Metrics
# BEGIN Minitest
# seems kind of buggy, when a custom message is given, this is flagged
Minitest/AssertWithExpectedArgument:
Enabled: false
# allow more assertions than default, but also not too many
Minitest/MultipleAssertions:
Max: 8 # default: 3
# END Minitest
# BEGIN Naming # BEGIN Naming
# the default gem module must be named like the gem, so allow dashes # the default gem module must be named like the gem, so allow dashes
Naming/FileName: Naming/FileName:
...@@ -89,6 +100,37 @@ Naming/FileName: ...@@ -89,6 +100,37 @@ Naming/FileName:
# END Naming # END Naming
# BEGIN Rails
# file paths should be built with arguments instead of a single string
Rails/ApplicationController:
Exclude: ['app/controllers/api/**/*', 'app/controllers/a_p_i/**/*'] # exclude API namespace, but not others (convention)
# exclude migrations since non-ApplicationRecord behavior might be desired
Rails/ApplicationRecord:
Exclude: ['db/migrate/*']
# ensure paths are built using a filesystem agnostic way, i.e. arguments instead of a single string
Rails/FilePath:
EnforcedStyle: arguments # default: slashes
# no reason not to use an established Rails feature if developers see fit
Rails/HasAndBelongsToMany:
Enabled: false
# prevent puts, but exclude test, config, db since Rails Logger may not have been loaded
Rails/Output:
Exclude: ['test/**/*', 'config/**/*', 'db/**/*']
# allow usage of methods that skip validations; we trust developers know what they are doing
Rails/SkipsModelValidations:
Enabled: false
# allow usage of three-state boolean columns, it may be an STI table
Rails/ThreeStateBooleanColumn:
Enabled: false
# END Rails
# BEGIN Style # BEGIN Style
# allow compact style for gems that contain app directory for rails integration # allow compact style for gems that contain app directory for rails integration
Style/ClassAndModuleChildren: Style/ClassAndModuleChildren:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment