Commit 398eaae
authored
Enable Style/RedundantSelf RuboCop cop (#144)
Enables the `Style/RedundantSelf` cop in `RuboCop` configuration and
removes redundant self references in `UswdsFormBuilder#initialize`.
This cop helps maintain cleaner, more idiomatic Ruby code by flagging
unnecessary uses of `self.` In Ruby, explicit self is only required when
calling setter methods or disambiguating in specific contexts. Removing
redundant self references reduces visual noise and aligns with Ruby
community style conventions.
**References:**
https://docs.rubocop.org/rubocop/cops_style.html#styleredundantself
https://rubystyle.guide/#no-self-unless-required1 parent a793c29 commit 398eaae
File tree
2 files changed
+4
-2
lines changed- template/{{app_name}}
- app/helpers
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments