Commit c3791b5
committed
Add rubocop-rspec_rails gem and enable HTTP status name consistency
Adds the rubocop-rspec_rails gem to provide Rails-specific RSpec linting.
Enables the RSpecRails/HttpStatusNameConsistency cop to enforce using
:unprocessable_content instead of the deprecated :unprocessable_entity
for HTTP 422 status codes.
Sets NewCops to disabled to prevent automatic enablement of new cops in
future gem updates, allowing us to evaluate and enable them deliberately.1 parent bdd839a commit c3791b5
3 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
449 | 453 | | |
450 | 454 | | |
451 | 455 | | |
| |||
558 | 562 | | |
559 | 563 | | |
560 | 564 | | |
| 565 | + | |
561 | 566 | | |
562 | 567 | | |
563 | 568 | | |
| |||
0 commit comments