Enable Rubocop HTTP status rules (#23717)
This commit is contained in:
parent
bd1d57c230
commit
aef0051fd0
32 changed files with 77 additions and 242 deletions
|
@ -88,6 +88,9 @@ Metrics/ModuleLength:
|
|||
Metrics/PerceivedComplexity:
|
||||
Max: 16 # RuboCop default 8
|
||||
|
||||
Rails/HttpStatus:
|
||||
EnforcedStyle: numeric
|
||||
|
||||
Rails/Exit:
|
||||
Exclude:
|
||||
- 'lib/mastodon/*_cli.rb'
|
||||
|
@ -97,6 +100,9 @@ Rails/Exit:
|
|||
RSpec/NotToNot:
|
||||
EnforcedStyle: to_not
|
||||
|
||||
RSpec/Rails/HttpStatus:
|
||||
EnforcedStyle: numeric
|
||||
|
||||
Style/HashSyntax:
|
||||
EnforcedStyle: ruby19_no_mixed_keys
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue