rubocop/rubocop-rails
A RuboCop extension focused on enforcing Rails best practices and coding conventions.
RubyMIT
Issues
- 0
Cop idea: Disallow `params.require.permit` and `params.require` in favor of `params.expect` for rails 8.0
#1358 opened by Earlopain - 0
Add auto-correction for Rails/HasManyOrHasOneDependent to be the Rails default (nil)
#1384 opened by jdufresne - 3
- 0
Rails/EnumSyntax crash when the 3rd argument is not kwargs
#1377 opened by Tietew - 0
`Rails/SaveBang` does not detect implict return when there are multiple lines in the method
#1379 opened by maser - 3
`Rails/EagerEvaluationLogMessage` should always report an offense when not passed a block
#1355 opened by Uaitt - 0
Cop idea: Rails/Env
#1376 opened by cdudas17 - 5
A Rails 7.1+ cop to suggest using normalizes
#1305 opened by Darhazer - 4
Error occurred while Rails/UniqueValidationWithoutIndex
#1372 opened by edipofederle - 3
WhereRange doesn't suggest corrections for <= comparisons
#1312 opened by vrodic - 5
DuplicateAssociation is not (yet?) safe correctable.
#1356 opened by nroose - 4
False positive for `Rails/HelperInstanceVariable` when using block-level disabling of `Rails` department
#1365 opened by pdobb - 3
False Positive for Rails/ActionControllerFlashBeforeRender when flash is called in different method
#1360 opened by ildarkayumov - 0
- 7
False positive in `Rails/ActionControllerFlashBeforeRender` when using multiple flashes + conditions
#1269 opened by jamescook - 2
`Rails/ApplicationModel` should ignore `db/migrate/**`
#1342 opened by searls - 2
Rails/EnumSyntax cop raises error when inspecting enum declaration in Rails model
#1351 opened by dev-satoshi - 1
`Rails/EagerEvaluationLogMessage` not reporting offenses
#1354 opened by Uaitt - 0
Broken documentation for `Rails/ArelStar`
#1353 opened by Earlopain - 0
`Rails/EnumSyntax` fails to detect non-literal mapping Hashes
#1343 opened by wenley - 4
- 2
`.reject { |_key, value| value.blank? }` mistakenly replaced by `.compact_blank`
#1346 opened by dorianmariecom - 0
`Rails/WhereEquals` cop report offenses with not equivalent auto correction code for database name contained where query since 2.26.0
#1340 opened by r-plus - 3
- 2
- 0
- 1
- 4
- 1
Rails/FindEach alerts on Capybara::Result.find
#1318 opened by raybaxter - 0
A few bugs/problems in IndexWith
#1315 opened by zverok - 2
Style/InvertibleUnlessCondition for include/exclude
#1301 opened by peaky76 - 0
Enhancement idea: make `Rails/CompactBlank` aware of `select(&:present?)`
#1308 opened by vlad-pisanov - 0
IgnoredSkipActionFilterOption doesn't catch a problem when there are multiple positional arguments
#1303 opened by maxim - 3
- 0
- 0
- 10
`Rails/Exit` cop not catching all uses of `exit`?
#1274 opened by nestor-custodio - 7
- 0
`Rails/WhereRange` output the error if using ternary operator.
#1281 opened by r-plus - 1
Autocorrect with `Rails/WhereRange` does not work correctly if a space is after the placeholder
#1282 opened by atolix - 0
Add change_column_null from BulkChangeTable
#1280 opened by fkmy - 1
- 0
- 1
- 0
False positive for `Rails/SkipsModelValidations` on safe navigated String#insert
#1278 opened by brkn - 0
- 0
`Rails/Validation` for `validates_size_of` causes `Unknown validator: 'SizeValidator'` error
#1270 opened by theblang - 3
An error occurred while Rails/DeprecatedActiveModelErrorsMethods cop was inspecting
#1268 opened by amagasu - 0
- 0
Rubocop significantly slower on Rails 7.1
#1260 opened by lukasfroehlich1