erbcop 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +49 -45
- data/README.md +18 -0
- data/default.yml +3 -0
- data/erbcop.gemspec +1 -0
- data/lib/erbcop/version.rb +1 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01c9b66dfefcd1b6e76b765adaea5fb4f1499e174fbe0b7babf6196aa1f39192
|
4
|
+
data.tar.gz: e3f82eaff489cb3bfb83083aa266fc4fad53f34f131d8e893c48a8627e739367
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05c20214f00312c7c150605514c5bde2f4f32b0862c0ae1cf9b2c23807b4a4efe9dd2eff2e7f971394a6163b4efef57023d036e9d6597a8ce673a43c716e6459
|
7
|
+
data.tar.gz: c63a88a72547c32f9d8aa8950a80dd8a692cf86b7ea9d8d2f98ecde7a6945682566b47fed29f72eb84339839f3cb4f6fe7a3f3c2b27aef48e8a248f72a7b14b6
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,95 +1,99 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
erbcop (0.
|
4
|
+
erbcop (0.5.0)
|
5
5
|
better_html
|
6
|
+
rubocop (>= 1.49)
|
6
7
|
templatecop
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: https://rubygems.org/
|
10
11
|
specs:
|
11
|
-
actionview (7.0.
|
12
|
-
activesupport (= 7.0.
|
12
|
+
actionview (7.0.4.3)
|
13
|
+
activesupport (= 7.0.4.3)
|
13
14
|
builder (~> 3.1)
|
14
15
|
erubi (~> 1.4)
|
15
16
|
rails-dom-testing (~> 2.0)
|
16
17
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
17
|
-
activesupport (7.0.
|
18
|
+
activesupport (7.0.4.3)
|
18
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
20
|
i18n (>= 1.6, < 2)
|
20
21
|
minitest (>= 5.1)
|
21
22
|
tzinfo (~> 2.0)
|
22
23
|
ast (2.4.2)
|
23
|
-
better_html (
|
24
|
-
actionview (>=
|
25
|
-
activesupport (>=
|
24
|
+
better_html (2.0.1)
|
25
|
+
actionview (>= 6.0)
|
26
|
+
activesupport (>= 6.0)
|
26
27
|
ast (~> 2.0)
|
27
28
|
erubi (~> 1.4)
|
28
|
-
html_tokenizer (~> 0.0.6)
|
29
29
|
parser (>= 2.4)
|
30
30
|
smart_properties
|
31
31
|
builder (3.2.4)
|
32
|
-
concurrent-ruby (1.
|
32
|
+
concurrent-ruby (1.2.2)
|
33
33
|
crass (1.0.6)
|
34
34
|
diff-lcs (1.5.0)
|
35
|
-
erubi (1.
|
36
|
-
|
37
|
-
i18n (1.8.11)
|
35
|
+
erubi (1.12.0)
|
36
|
+
i18n (1.12.0)
|
38
37
|
concurrent-ruby (~> 1.0)
|
39
|
-
|
38
|
+
json (2.6.3)
|
39
|
+
loofah (2.20.0)
|
40
40
|
crass (~> 1.0.2)
|
41
41
|
nokogiri (>= 1.5.9)
|
42
|
-
minitest (5.
|
43
|
-
nokogiri (1.
|
42
|
+
minitest (5.18.0)
|
43
|
+
nokogiri (1.14.3-x86_64-linux)
|
44
44
|
racc (~> 1.4)
|
45
|
-
parallel (1.
|
46
|
-
parser (3.
|
45
|
+
parallel (1.22.1)
|
46
|
+
parser (3.2.2.0)
|
47
47
|
ast (~> 2.4.1)
|
48
|
-
racc (1.6.
|
48
|
+
racc (1.6.2)
|
49
49
|
rails-dom-testing (2.0.3)
|
50
50
|
activesupport (>= 4.2.0)
|
51
51
|
nokogiri (>= 1.6)
|
52
|
-
rails-html-sanitizer (1.
|
53
|
-
loofah (~> 2.
|
52
|
+
rails-html-sanitizer (1.5.0)
|
53
|
+
loofah (~> 2.19, >= 2.19.1)
|
54
54
|
rainbow (3.1.1)
|
55
55
|
rake (13.0.6)
|
56
|
-
regexp_parser (2.
|
56
|
+
regexp_parser (2.7.0)
|
57
57
|
rexml (3.2.5)
|
58
|
-
rspec (3.
|
59
|
-
rspec-core (~> 3.
|
60
|
-
rspec-expectations (~> 3.
|
61
|
-
rspec-mocks (~> 3.
|
62
|
-
rspec-core (3.
|
63
|
-
rspec-support (~> 3.
|
64
|
-
rspec-expectations (3.
|
58
|
+
rspec (3.12.0)
|
59
|
+
rspec-core (~> 3.12.0)
|
60
|
+
rspec-expectations (~> 3.12.0)
|
61
|
+
rspec-mocks (~> 3.12.0)
|
62
|
+
rspec-core (3.12.1)
|
63
|
+
rspec-support (~> 3.12.0)
|
64
|
+
rspec-expectations (3.12.2)
|
65
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
66
|
-
rspec-support (~> 3.
|
67
|
-
rspec-mocks (3.
|
66
|
+
rspec-support (~> 3.12.0)
|
67
|
+
rspec-mocks (3.12.5)
|
68
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
69
|
-
rspec-support (~> 3.
|
70
|
-
rspec-support (3.
|
71
|
-
rubocop (1.
|
69
|
+
rspec-support (~> 3.12.0)
|
70
|
+
rspec-support (3.12.0)
|
71
|
+
rubocop (1.50.0)
|
72
|
+
json (~> 2.3)
|
72
73
|
parallel (~> 1.10)
|
73
|
-
parser (>= 3.
|
74
|
+
parser (>= 3.2.0.0)
|
74
75
|
rainbow (>= 2.2.2, < 4.0)
|
75
76
|
regexp_parser (>= 1.8, < 3.0)
|
76
|
-
rexml
|
77
|
-
rubocop-ast (>= 1.
|
77
|
+
rexml (>= 3.2.5, < 4.0)
|
78
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
78
79
|
ruby-progressbar (~> 1.7)
|
79
|
-
unicode-display_width (>=
|
80
|
-
rubocop-ast (1.
|
81
|
-
parser (>= 3.
|
82
|
-
rubocop-
|
83
|
-
rubocop (~> 1.
|
84
|
-
|
80
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
81
|
+
rubocop-ast (1.28.0)
|
82
|
+
parser (>= 3.2.1.0)
|
83
|
+
rubocop-capybara (2.17.1)
|
84
|
+
rubocop (~> 1.41)
|
85
|
+
rubocop-rspec (2.19.0)
|
86
|
+
rubocop (~> 1.33)
|
87
|
+
rubocop-capybara (~> 2.17)
|
88
|
+
ruby-progressbar (1.13.0)
|
85
89
|
smart_properties (1.17.0)
|
86
|
-
templatecop (0.
|
90
|
+
templatecop (0.4.0)
|
87
91
|
parallel
|
88
92
|
parser
|
89
93
|
rubocop (>= 0.87)
|
90
|
-
tzinfo (2.0.
|
94
|
+
tzinfo (2.0.6)
|
91
95
|
concurrent-ruby (~> 1.0)
|
92
|
-
unicode-display_width (2.
|
96
|
+
unicode-display_width (2.4.2)
|
93
97
|
|
94
98
|
PLATFORMS
|
95
99
|
x86_64-linux
|
data/README.md
CHANGED
@@ -63,3 +63,21 @@ spec/fixtures/dummy.erb:5:4: C: [Correctable] Style/NegatedIf: Favor unless over
|
|
63
63
|
|
64
64
|
1 file inspected, 4 offenses detected, 4 offenses auto-correctable
|
65
65
|
```
|
66
|
+
|
67
|
+
### Configuration
|
68
|
+
|
69
|
+
Erbcop will start looking for the configuration file in the following locations:
|
70
|
+
|
71
|
+
1. /path/to/project/.erbcop.yml
|
72
|
+
2. /path/to/project/.rubocop.yml
|
73
|
+
|
74
|
+
For example, if you want to disable some cops on erbcop, you can add the following file to your project:
|
75
|
+
|
76
|
+
```yaml
|
77
|
+
# .erbcop.yml
|
78
|
+
inherit_from:
|
79
|
+
- .rubocop.yml
|
80
|
+
|
81
|
+
Foo/Bar:
|
82
|
+
Enabled: false
|
83
|
+
```
|
data/default.yml
CHANGED
data/erbcop.gemspec
CHANGED
data/lib/erbcop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erbcop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: better_html
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.49'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.49'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: templatecop
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,7 +52,7 @@ dependencies:
|
|
38
52
|
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
41
|
-
description:
|
55
|
+
description:
|
42
56
|
email:
|
43
57
|
- r7kamura@gmail.com
|
44
58
|
executables:
|
@@ -69,7 +83,7 @@ metadata:
|
|
69
83
|
source_code_uri: https://github.com/r7kamura/erbcop
|
70
84
|
changelog_uri: https://github.com/r7kamura/erbcop/blob/main/CHANGELOG.md
|
71
85
|
rubygems_mfa_required: 'true'
|
72
|
-
post_install_message:
|
86
|
+
post_install_message:
|
73
87
|
rdoc_options: []
|
74
88
|
require_paths:
|
75
89
|
- lib
|
@@ -84,8 +98,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
98
|
- !ruby/object:Gem::Version
|
85
99
|
version: '0'
|
86
100
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
88
|
-
signing_key:
|
101
|
+
rubygems_version: 3.3.26
|
102
|
+
signing_key:
|
89
103
|
specification_version: 4
|
90
104
|
summary: RuboCop runner for ERB template.
|
91
105
|
test_files: []
|