rubocop-erb 0.8.1 → 0.8.2
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/Gemfile.lock +1 -1
- data/README.md +0 -4
- data/config/default.yml +13 -0
- data/lib/rubocop/erb/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: 5a1fb8900d7235a3e4295b7fce3f5e40f2be3d3949dd31ef395790bd128d2700
|
|
4
|
+
data.tar.gz: 5d249cc4cada1a0c58120607326c0809058c94d1878b3972f1f97a01f818c408
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b098dc93af51a2376b62ffbb50d98a462da989744ed4a13b0fa7ee687fab6a625bc732ca92295c9de701a2ec4c38c91783d4692960a3634d391f37f681159be7
|
|
7
|
+
data.tar.gz: 2f7cc16977d9b9b477972e1bdef3355673f0883a70038cc2343959dc83f48ec5b867c7c0509699cee3e123fe9b12975133b719ab1b4a73d59cb442b6db80e9e4
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -28,9 +28,6 @@ plugins:
|
|
|
28
28
|
- rubocop-erb
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
> [!NOTE]
|
|
32
|
-
> The plugin system is supported in RuboCop 1.72+. In earlier versions, use `require` instead of `plugins`.
|
|
33
|
-
|
|
34
31
|
Now you can use RuboCop also for ERB templates.
|
|
35
32
|
|
|
36
33
|
```
|
|
@@ -74,4 +71,3 @@ See [#15](https://github.com/r7kamura/rubocop-erb/issues/15) for more details.
|
|
|
74
71
|
|
|
75
72
|
- https://github.com/r7kamura/rubocop-haml
|
|
76
73
|
- https://github.com/r7kamura/rubocop-slim
|
|
77
|
-
- https://github.com/r7kamura/rubocop-markdown
|
data/config/default.yml
CHANGED
|
@@ -36,6 +36,12 @@ Layout/ElseAlignment:
|
|
|
36
36
|
Exclude:
|
|
37
37
|
- '**/*.erb'
|
|
38
38
|
|
|
39
|
+
# Blank lines in the HTML between ERB tags are kept in the extracted Ruby,
|
|
40
|
+
# so this cop reports blank lines that belong to the HTML.
|
|
41
|
+
Layout/EmptyLines:
|
|
42
|
+
Exclude:
|
|
43
|
+
- '**/*.erb'
|
|
44
|
+
|
|
39
45
|
Layout/EmptyLinesAroundBlockBody:
|
|
40
46
|
Exclude:
|
|
41
47
|
- '**/*.erb'
|
|
@@ -113,6 +119,13 @@ Layout/MultilineAssignmentLayout:
|
|
|
113
119
|
Exclude:
|
|
114
120
|
- '**/*.erb'
|
|
115
121
|
|
|
122
|
+
# The HTML between ERB tags is dropped, so a block whose body is written on
|
|
123
|
+
# the same line as its opening tag looks like a block body on the `do` line,
|
|
124
|
+
# and autocorrect inserts a line break into the ERB tag.
|
|
125
|
+
Layout/MultilineBlockLayout:
|
|
126
|
+
Exclude:
|
|
127
|
+
- '**/*.erb'
|
|
128
|
+
|
|
116
129
|
Layout/MultilineHashBraceLayout:
|
|
117
130
|
Exclude:
|
|
118
131
|
- '**/*.erb'
|
data/lib/rubocop/erb/version.rb
CHANGED