issues
search
rubocop
/
rubocop-rails
A RuboCop extension focused on enforcing Rails best practices and coding conventions.
https://docs.rubocop.org/rubocop-rails
MIT License
821
stars
263
forks
source link
issues
Newest
Newest
Most commented
Recently updated
Oldest
Least commented
Least recently updated
Fix an incorrect autocorrect for `Rails/SelectMap` when `select` has no receiver and method chains are used
#1390
masato-bkn
opened
1 hour ago
0
The suggestions of the FilePath cop cause a TypeError if %w is used to specify the path
#1389
cyclingzealot
opened
2 days ago
0
Modify `Rails/Pluck` to ignore `map/collect` when used inside blocks to prevent potential N+1 queries
#1388
masato-bkn
closed
1 day ago
1
New cop for extracting complex callbacks code into separate methods
#1387
fatkodima
opened
1 week ago
0
Add rule to prevent bad `rescue` usage inside a transaction
#1386
deanylev
opened
1 week ago
1
Make `Lint/UselessAccessModifier` aware of `ActiveSupport::Concern`
#1385
Earlopain
opened
2 weeks ago
0
Add auto-correction for Rails/HasManyOrHasOneDependent to be the Rails default (nil)
#1384
jdufresne
opened
3 weeks ago
0
Introduce `AllCops: MigratedSchemaVersion` config
#1383
koic
opened
3 weeks ago
1
Fix false negatives for `Rails/RedundantActiveRecordAllMethod` when using `POSSIBLE_ENUMERABLE_BLOCK_METHODS` in a block
#1382
masato-bkn
closed
1 month ago
1
auto-gen-conf breaks default exclude in Rails/ApplicationRecord cop
#1381
Aqualon
closed
1 month ago
3
Add new `Rails/IndexNames` cop
#1380
corsonknowles
opened
1 month ago
5
`Rails/SaveBang` does not detect implict return when there are multiple lines in the method
#1379
maser
opened
1 month ago
0
[Fix #1377] Fix an error for `Rails/EnumSyntax`
#1378
koic
closed
1 month ago
0
Rails/EnumSyntax crash when the 3rd argument is not kwargs
#1377
Tietew
closed
1 month ago
0
Cop idea: Rails/Env
#1376
cdudas17
opened
1 month ago
0
Add new `Rails/Env` cop
#1375
cdudas17
opened
1 month ago
7
Change `Rails/EnvLocal` to handle negated conditions
#1374
fatkodima
closed
1 month ago
0
Error occurred while Rails/UniqueValidationWithoutIndex
#1372
edipofederle
closed
2 months ago
4
Add new `Rails/ActiveRecordCalculation` cop
#1371
fatkodima
opened
2 months ago
0
Change `Rails/SelectMap` to handle safe navigation operators
#1370
fatkodima
closed
2 months ago
0
Fix test cases for `*` and `**` arguments in `Rails/SaveBang`
#1369
masato-bkn
closed
2 months ago
0
[Fix #1203] Insert the target rails version into docs
#1368
Earlopain
closed
2 months ago
0
Fix `Rails/TimeZone` should not report offense on `String#to_time` with timezone specifier
#1367
armandmgt
closed
1 month ago
2
[Fix #727] Disable `Rails/TransactionExitStatement` on Rails >= 7.2
#1366
Earlopain
closed
2 months ago
0
False positive for `Rails/HelperInstanceVariable` when using block-level disabling of `Rails` department
#1365
pdobb
closed
2 months ago
4
Make `Rails/EagerEvaluationLogMessage` enabled by default
#1364
Uaitt
closed
2 months ago
2
[Fix #1362] Fix false positives for `Rails/EnumSyntax`
#1363
koic
closed
2 months ago
0
`Rails/EnumSyntax` autocorrection causes deprecation warning on Ruby 2.7
#1362
r7kamura
closed
2 months ago
0
Fix `Rails/CompactBlank` to avoid reporting offense for `filter` in Ruby versions below 2.6
#1361
masato-bkn
closed
2 months ago
1
False Positive for Rails/ActionControllerFlashBeforeRender when flash is called in different method
#1360
ildarkayumov
closed
2 months ago
3
Support `filter` in `Rails/CompactBlank`
#1359
masato-bkn
closed
2 months ago
1
Cop idea: Disallow `params.require.permit` and `params.require` in favor of `params.expect` for rails 8.0
#1358
Earlopain
opened
2 months ago
0
Add missing tests for `Rails/CompactBlank` when receiver is a hash
#1357
masato-bkn
closed
2 months ago
0
DuplicateAssociation is not (yet?) safe correctable.
#1356
nroose
opened
2 months ago
5
`Rails/EagerEvaluationLogMessage` should always report an offense when not passed a block
#1355
Uaitt
closed
1 month ago
3
`Rails/EagerEvaluationLogMessage` not reporting offenses
#1354
Uaitt
closed
2 months ago
1
Broken documentation for `Rails/ArelStar`
#1353
Earlopain
opened
2 months ago
0
Fix example in `Rails/PluralizationGrammar`
#1352
masato-bkn
closed
2 months ago
1
Rails/EnumSyntax cop raises error when inspecting enum declaration in Rails model
#1351
dev-satoshi
closed
2 months ago
2
Change `Rails/EnumSyntax` to autocorrect underscored options
#1350
fatkodima
closed
2 months ago
1
Change `Rails/ApplicationRecord` to ignore migrations
#1349
fatkodima
closed
2 months ago
5
[Fix #1343] False negatives for `Rails/EnumSyntax`
#1348
Earlopain
closed
2 months ago
3
[Fix #1345] Improve offense message for `Rails/RootPathnameMethods`
#1347
Earlopain
closed
3 months ago
1
`.reject { |_key, value| value.blank? }` mistakenly replaced by `.compact_blank`
#1346
dorianmariecom
closed
3 months ago
2
Confusing message for `Rails/RootPathnameMethods` in `Dir[]`
#1345
Tietew
closed
3 months ago
4
Revert #1311 - false negatives for `Rails/ActionControllerFlashBeforeRender`
#1344
Earlopain
closed
2 months ago
1
`Rails/EnumSyntax` fails to detect non-literal mapping Hashes
#1343
wenley
closed
2 months ago
0
`Rails/ApplicationModel` should ignore `db/migrate/**`
#1342
searls
closed
2 months ago
2
[Fix #1340] Fix a false positive for `Rails/WhereEquals` when qualifying the database name
#1341
Earlopain
closed
3 months ago
1
`Rails/WhereEquals` cop report offenses with not equivalent auto correction code for database name contained where query since 2.26.0
#1340
r-plus
closed
3 months ago
0
Next