Commit 87caae7
committed
chore: update RuboCop configuration for Rails idioms
Configure RuboCop with pragmatic settings for Rails development:
Exclusions added:
- Allow larger service classes for complex business logic
- Allow larger controller classes with multiple actions
- Exclude services and controllers from strict Metrics cops
Cops disabled:
- Naming/PredicateMethod (import_*, create_* are not predicates)
- Naming/PredicatePrefix (has_*, is_* are Rails idioms)
Metrics adjusted:
- Services and Controllers excluded from MethodLength/AbcSize/ClassLength
- Focus on real issues, not Rails patterns
This reduces false positives and aligns with Rails best practices.1 parent a029151 commit 87caae7
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| |||
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
68 | 79 | | |
69 | 80 | | |
70 | 81 | | |
| |||
0 commit comments