erbcop 0.4.0 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f9f5330f08da6f5c0f830990aa71a99dd28a26c298225daac38d7e093e23e9b
4
- data.tar.gz: dc59cbbe140b340162018f7ad8201ce1dcf93723e917b18b28d2ed95e22bf737
3
+ metadata.gz: 01c9b66dfefcd1b6e76b765adaea5fb4f1499e174fbe0b7babf6196aa1f39192
4
+ data.tar.gz: e3f82eaff489cb3bfb83083aa266fc4fad53f34f131d8e893c48a8627e739367
5
5
  SHA512:
6
- metadata.gz: cfe447c8f1063d4ca7a80f8d8ae27b999de085c98326185b5ba59e74ca7b8d02fef2a9ad3cf92f9d0013f2f4970befcc38ece49b328fbb47ef87c9e0b082cd48
7
- data.tar.gz: 5bfa9369536dc698dfee9d32df8a8ce893f2fcf663ec2644f1b0f4f2fb38b8da088f95519f206031c808560339a9d4746b613c8f0122a9cffa9b30050d189bbd
6
+ metadata.gz: 05c20214f00312c7c150605514c5bde2f4f32b0862c0ae1cf9b2c23807b4a4efe9dd2eff2e7f971394a6163b4efef57023d036e9d6597a8ce673a43c716e6459
7
+ data.tar.gz: c63a88a72547c32f9d8aa8950a80dd8a692cf86b7ea9d8d2f98ecde7a6945682566b47fed29f72eb84339839f3cb4f6fe7a3f3c2b27aef48e8a248f72a7b14b6
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.5.0 - 2023-04-12
6
+
7
+ - Disable Style/RedundantLineContinuation by default and requires rubocop 1.49+ for that.
8
+
5
9
  ## 0.4.0 - 2022-01-22
6
10
 
7
11
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,95 +1,99 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- erbcop (0.4.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.1)
12
- activesupport (= 7.0.1)
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.1)
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 (1.0.16)
24
- actionview (>= 4.0)
25
- activesupport (>= 4.0)
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.1.9)
32
+ concurrent-ruby (1.2.2)
33
33
  crass (1.0.6)
34
34
  diff-lcs (1.5.0)
35
- erubi (1.10.0)
36
- html_tokenizer (0.0.7)
37
- i18n (1.8.11)
35
+ erubi (1.12.0)
36
+ i18n (1.12.0)
38
37
  concurrent-ruby (~> 1.0)
39
- loofah (2.13.0)
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.15.0)
43
- nokogiri (1.13.1-x86_64-linux)
42
+ minitest (5.18.0)
43
+ nokogiri (1.14.3-x86_64-linux)
44
44
  racc (~> 1.4)
45
- parallel (1.21.0)
46
- parser (3.1.0.0)
45
+ parallel (1.22.1)
46
+ parser (3.2.2.0)
47
47
  ast (~> 2.4.1)
48
- racc (1.6.0)
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.4.2)
53
- loofah (~> 2.3)
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.2.0)
56
+ regexp_parser (2.7.0)
57
57
  rexml (3.2.5)
58
- rspec (3.10.0)
59
- rspec-core (~> 3.10.0)
60
- rspec-expectations (~> 3.10.0)
61
- rspec-mocks (~> 3.10.0)
62
- rspec-core (3.10.1)
63
- rspec-support (~> 3.10.0)
64
- rspec-expectations (3.10.2)
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.10.0)
67
- rspec-mocks (3.10.2)
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.10.0)
70
- rspec-support (3.10.3)
71
- rubocop (1.24.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.0.0.0)
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.15.1, < 2.0)
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 (>= 1.4.0, < 3.0)
80
- rubocop-ast (1.15.1)
81
- parser (>= 3.0.1.1)
82
- rubocop-rspec (2.7.0)
83
- rubocop (~> 1.19)
84
- ruby-progressbar (1.11.0)
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.2.0)
90
+ templatecop (0.4.0)
87
91
  parallel
88
92
  parser
89
93
  rubocop (>= 0.87)
90
- tzinfo (2.0.4)
94
+ tzinfo (2.0.6)
91
95
  concurrent-ruby (~> 1.0)
92
- unicode-display_width (2.1.0)
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
@@ -112,6 +112,9 @@ Style/NestedTernaryOperator:
112
112
  Style/Next:
113
113
  Enabled: false
114
114
 
115
+ Style/RedundantLineContinuation:
116
+ Enabled: false
117
+
115
118
  Style/RescueModifier:
116
119
  Enabled: false
117
120
 
data/erbcop.gemspec CHANGED
@@ -30,5 +30,6 @@ Gem::Specification.new do |spec|
30
30
  spec.metadata['rubygems_mfa_required'] = 'true'
31
31
 
32
32
  spec.add_dependency 'better_html'
33
+ spec.add_dependency 'rubocop', '>= 1.49'
33
34
  spec.add_dependency 'templatecop'
34
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Erbcop
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
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.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: 2022-01-22 00:00:00.000000000 Z
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.1.4
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: []