rubocop-kata 0.1.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/config/default.yml +61 -6
- data/lib/rubocop/kata/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bcd62857c9bdf3a905dd8031fdcfb6d36e635c20ebfa703073fe87289df9adb1
|
|
4
|
+
data.tar.gz: 9310dba88f9afad1c7cf22e7d323073a42a01aaeb17c853119416dfb88dc0f96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92af6db1491c46282a225b217a51e5644f2327eac59358d3b523ccd8fc5c7e3e2b7e75d97b89de3341dce9b69cb9ca2443a10211e646af1d9e7b33589eb7bd15
|
|
7
|
+
data.tar.gz: c36fa8cab9119c7a36a38df8bc7af5ab5ee194bd73b6b193beb7b3a06dd2195e462019b6ce534850a39f4406efe0e50c7a5daa55b4d5bbdc61d8bbc4f3717e3a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.1] - 2026-08-13
|
|
4
|
+
|
|
5
|
+
- `Style/MethodCallWithArgsParentheses` disabled, overriding rubocop-elegant.
|
|
6
|
+
- Disabled nine core `Layout/*` cops that autocorrect-loop against `Elegant/PairedBrackets` and `Elegant/NoEmptyLines*`.
|
|
7
|
+
- `AutoCorrect: false` on `Elegant/NoRedundantVariable`, `Style/StaticClass`, and `Lint/NumberConversion` — their correctors rewrite code incorrectly.
|
|
8
|
+
- `Style/RequireOrder` disabled — alphabetizing requires breaks load-order-dependent boot.
|
|
9
|
+
|
|
10
|
+
## [0.2.0] - 2026-08-10
|
|
11
|
+
|
|
12
|
+
- Kata cops now run globally instead of only in `lib/**` — code in `app/`, `Rakefile`, etc. is now covered.
|
|
13
|
+
- `Kata/NoComments` excludes specs and gemspecs by default.
|
|
14
|
+
- `Kata/IoDiscipline` excludes specs, `bin/`, `exe/`, `Rakefile`, and gemspecs by default — bare `puts` in scripts and entrypoints stays legal.
|
|
15
|
+
|
|
3
16
|
## [0.1.2] - 2026-08-10
|
|
4
17
|
|
|
5
18
|
- `Kata/IoDiscipline` is on by default for `lib/**` — library code never prints without a receiver.
|
data/README.md
CHANGED
|
@@ -45,7 +45,7 @@ That's it. The plugin loads the bundled extensions and the shared defaults, so y
|
|
|
45
45
|
| --- | --- | --- |
|
|
46
46
|
| `Kata/AgentNoun` | on | Classes named for what they are, not `-er`/`-or` doers. Allow exceptions via `AllowedNames`. |
|
|
47
47
|
| `Kata/NoComments` | on | No prose comments; say it in the code. Magic comments, linter directives, and licence headers survive. Autocorrects. |
|
|
48
|
-
| `Kata/IoDiscipline` | on | No bare `puts`/`warn`/`pp`/`p`
|
|
48
|
+
| `Kata/IoDiscipline` | on | No bare `puts`/`warn`/`pp`/`p` outside specs/scripts; write through an injected `@io` or an explicit receiver. |
|
|
49
49
|
| `Kata/ProsePlacement` | off | Sentence-length strings belong in the presentation layer. Enable with an `Include`/`Exclude` matching your layering. |
|
|
50
50
|
|
|
51
51
|
## The defaults
|
data/config/default.yml
CHANGED
|
@@ -14,8 +14,6 @@ Kata/AgentNoun:
|
|
|
14
14
|
Description: "Name classes for the thing they are, not the work they do."
|
|
15
15
|
Enabled: true
|
|
16
16
|
VersionAdded: "0.1"
|
|
17
|
-
Include:
|
|
18
|
-
- "lib/**/*"
|
|
19
17
|
AllowedNames:
|
|
20
18
|
- Error
|
|
21
19
|
|
|
@@ -23,15 +21,20 @@ Kata/NoComments:
|
|
|
23
21
|
Description: "Say it in the code; keep only comments the machine or the law reads."
|
|
24
22
|
Enabled: true
|
|
25
23
|
VersionAdded: "0.1"
|
|
26
|
-
|
|
27
|
-
- "
|
|
24
|
+
Exclude:
|
|
25
|
+
- "spec/**/*"
|
|
26
|
+
- "*.gemspec"
|
|
28
27
|
|
|
29
28
|
Kata/IoDiscipline:
|
|
30
29
|
Description: "Write through an injected io, not bare puts/warn/pp/p."
|
|
31
30
|
Enabled: true
|
|
32
31
|
VersionAdded: "0.1"
|
|
33
|
-
|
|
34
|
-
- "
|
|
32
|
+
Exclude:
|
|
33
|
+
- "spec/**/*"
|
|
34
|
+
- "bin/**/*"
|
|
35
|
+
- "exe/**/*"
|
|
36
|
+
- "Rakefile"
|
|
37
|
+
- "*.gemspec"
|
|
35
38
|
|
|
36
39
|
Kata/ProsePlacement:
|
|
37
40
|
Description: "Keep sentence-length strings in the presentation layer."
|
|
@@ -107,6 +110,58 @@ Elegant/NoEmptyLinesInMethods:
|
|
|
107
110
|
Elegant/NoComments:
|
|
108
111
|
Enabled: false
|
|
109
112
|
|
|
113
|
+
Style/MethodCallWithArgsParentheses:
|
|
114
|
+
Enabled: false
|
|
115
|
+
|
|
116
|
+
# --- Core layout cops that autocorrect-loop against Elegant/PairedBrackets
|
|
117
|
+
# and Elegant/NoEmptyLines*; the Elegant cops win.
|
|
118
|
+
Layout/BlockAlignment:
|
|
119
|
+
Enabled: false
|
|
120
|
+
|
|
121
|
+
Layout/MultilineBlockLayout:
|
|
122
|
+
Enabled: false
|
|
123
|
+
|
|
124
|
+
Layout/ClosingParenthesisIndentation:
|
|
125
|
+
Enabled: false
|
|
126
|
+
|
|
127
|
+
Layout/FirstArgumentIndentation:
|
|
128
|
+
Enabled: false
|
|
129
|
+
|
|
130
|
+
Layout/MultilineMethodCallBraceLayout:
|
|
131
|
+
Enabled: false
|
|
132
|
+
|
|
133
|
+
Layout/MultilineArrayBraceLayout:
|
|
134
|
+
Enabled: false
|
|
135
|
+
|
|
136
|
+
Layout/MultilineHashBraceLayout:
|
|
137
|
+
Enabled: false
|
|
138
|
+
|
|
139
|
+
Layout/EmptyLinesAroundAccessModifier:
|
|
140
|
+
Enabled: false
|
|
141
|
+
|
|
142
|
+
Layout/EmptyLinesAfterModuleInclusion:
|
|
143
|
+
Enabled: false
|
|
144
|
+
|
|
145
|
+
# --- Correctors known to rewrite code incorrectly; report only.
|
|
146
|
+
# Inlines a variable past side effects (ivar resets, later statements) and
|
|
147
|
+
# corrupts Ruby 3.1 keyword shorthand.
|
|
148
|
+
Elegant/NoRedundantVariable:
|
|
149
|
+
AutoCorrect: false
|
|
150
|
+
|
|
151
|
+
# Rewrites reopened classes into modules, clashing with the primary
|
|
152
|
+
# class definition at boot.
|
|
153
|
+
Style/StaticClass:
|
|
154
|
+
AutoCorrect: false
|
|
155
|
+
|
|
156
|
+
# Turns lenient `.to_i` into strict Integer(x, 10), which raises on
|
|
157
|
+
# nils/Integers call sites legitimately receive.
|
|
158
|
+
Lint/NumberConversion:
|
|
159
|
+
AutoCorrect: false
|
|
160
|
+
|
|
161
|
+
# Alphabetizing requires breaks load-order-dependent boot sequences.
|
|
162
|
+
Style/RequireOrder:
|
|
163
|
+
Enabled: false
|
|
164
|
+
|
|
110
165
|
ThreadSafety/DirChdir:
|
|
111
166
|
Exclude:
|
|
112
167
|
- "spec/**/*"
|
data/lib/rubocop/kata/version.rb
CHANGED