rubocop-kata 0.1.2 → 0.2.0
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 +6 -0
- data/README.md +1 -1
- data/config/default.yml +9 -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: 2aecb4f5acadb8c0a79107ec7eda1e8555464a1f7c00c0fc18d8148238b55eb4
|
|
4
|
+
data.tar.gz: cfe52159c9def4a8217a40cde0534aa4d3d68d7ba457800734716b563606442b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8dfbdb1a01717c78669d1f4efc9606bd3796778ea1dc7039c6d2b4c76e45066229f1fcec400973879a011f9092425ad2403f35430d0929c3df966eb5d42e4b64
|
|
7
|
+
data.tar.gz: 2dbace3f591f7920204c62f8ec94c0153fc91f96f381df1ea73891b93631bdbb0d96782321758bcea984eed0415164334d541c8f4ac64ca1763e490e60820318
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.0] - 2026-08-10
|
|
4
|
+
|
|
5
|
+
- Kata cops now run globally instead of only in `lib/**` — code in `app/`, `Rakefile`, etc. is now covered.
|
|
6
|
+
- `Kata/NoComments` excludes specs and gemspecs by default.
|
|
7
|
+
- `Kata/IoDiscipline` excludes specs, `bin/`, `exe/`, `Rakefile`, and gemspecs by default — bare `puts` in scripts and entrypoints stays legal.
|
|
8
|
+
|
|
3
9
|
## [0.1.2] - 2026-08-10
|
|
4
10
|
|
|
5
11
|
- `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."
|
data/lib/rubocop/kata/version.rb
CHANGED