Commit 33f519c
committed
Enforce frozen_string_literal and add performance cops
Every file in this project already uses `# frozen_string_literal: true`
but the linter never enforced it, so new files could silently omit the
comment. Enable the Style/FrozenStringLiteralComment cop via standardrb's
extend_config mechanism to make the existing convention a hard rule.
Also add rubocop-performance to catch common performance anti-patterns
like inefficient string operations and unnecessary object allocations.
Made-with: Cursor1 parent e7eaea5 commit 33f519c
3 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments