slimcop 0.17.1 → 0.18.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: aeb7edc1840409c99fbb6f61f184f742b404ff7d75bbee4066ffe8eeb449876b
4
- data.tar.gz: 8ad20f6ddd7ecb3c469db35388afdeb61b084f3ecbcc62a2d69f77881eb8929d
3
+ metadata.gz: 01cb0ace58c5f4edc8457f0a4c036f55c4d434906784aa8918b40b44446a2e1f
4
+ data.tar.gz: 3c3a3ea243ca0b7934b98f4fd9fbdfb87c9bbe9c03f1119323bf728b3ad20085
5
5
  SHA512:
6
- metadata.gz: 370595766766d9eb971fe48c11c5d167a86636fd837816a41c5bc2c437181c68b6c699f1c7c0dac412cc359e18c9c0b48d5217d0efd000655fda91f730a9dc4a
7
- data.tar.gz: f2578093618986621d473ce870bec66b937fa62b06774ba44e2ef2db043dd67c6f0ebd008b2cee6b1fff38af9f73f50e17efccb443f078326bfa1270f02a15bf
6
+ metadata.gz: 7bfd300284fb50024108aacaaec951e9640da4a9d51e3a74eafd4db90d4ed3cc4150aaf58e18a47ab2e6008101906c6c2ed3975d3cc597c64dbb9835461a342a
7
+ data.tar.gz: 0db253a437e84f963be56be5ff88afc8ef36c6777172aa310ec4c76721065795abc93f0734653eaf91819822fa678056843e11e1e9b548925e64f6455b31b869
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.18.0 - 2023-04-04
6
+
7
+ ### Changed
8
+
9
+ - Disable Style/Semicolon by default.
10
+ - Disable Style/ParallelAssignment by default.
11
+ - Disable Style/RedundantLineContinuation by default and requires rubocop 1.49+ for that.
12
+
5
13
  ## 0.17.1 - 2022-07-14
6
14
 
7
15
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- slimcop (0.17.1)
4
+ slimcop (0.18.0)
5
+ rubocop (>= 1.49)
5
6
  slimi (>= 0.5.1)
6
7
  templatecop
7
8
 
@@ -9,53 +10,58 @@ GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
11
12
  ast (2.4.2)
12
- diff-lcs (1.4.4)
13
- parallel (1.21.0)
14
- parser (3.0.3.2)
13
+ diff-lcs (1.5.0)
14
+ json (2.6.3)
15
+ parallel (1.22.1)
16
+ parser (3.2.2.0)
15
17
  ast (~> 2.4.1)
16
- rainbow (3.0.0)
18
+ rainbow (3.1.1)
17
19
  rake (13.0.6)
18
- regexp_parser (2.2.0)
20
+ regexp_parser (2.7.0)
19
21
  rexml (3.2.5)
20
- rspec (3.10.0)
21
- rspec-core (~> 3.10.0)
22
- rspec-expectations (~> 3.10.0)
23
- rspec-mocks (~> 3.10.0)
24
- rspec-core (3.10.1)
25
- rspec-support (~> 3.10.0)
26
- rspec-expectations (3.10.1)
22
+ rspec (3.12.0)
23
+ rspec-core (~> 3.12.0)
24
+ rspec-expectations (~> 3.12.0)
25
+ rspec-mocks (~> 3.12.0)
26
+ rspec-core (3.12.1)
27
+ rspec-support (~> 3.12.0)
28
+ rspec-expectations (3.12.2)
27
29
  diff-lcs (>= 1.2.0, < 2.0)
28
- rspec-support (~> 3.10.0)
29
- rspec-mocks (3.10.2)
30
+ rspec-support (~> 3.12.0)
31
+ rspec-mocks (3.12.5)
30
32
  diff-lcs (>= 1.2.0, < 2.0)
31
- rspec-support (~> 3.10.0)
32
- rspec-support (3.10.3)
33
- rubocop (1.23.0)
33
+ rspec-support (~> 3.12.0)
34
+ rspec-support (3.12.0)
35
+ rubocop (1.49.0)
36
+ json (~> 2.3)
34
37
  parallel (~> 1.10)
35
- parser (>= 3.0.0.0)
38
+ parser (>= 3.2.0.0)
36
39
  rainbow (>= 2.2.2, < 4.0)
37
40
  regexp_parser (>= 1.8, < 3.0)
38
- rexml
39
- rubocop-ast (>= 1.12.0, < 2.0)
41
+ rexml (>= 3.2.5, < 4.0)
42
+ rubocop-ast (>= 1.28.0, < 2.0)
40
43
  ruby-progressbar (~> 1.7)
41
- unicode-display_width (>= 1.4.0, < 3.0)
42
- rubocop-ast (1.15.0)
43
- parser (>= 3.0.1.1)
44
- rubocop-rspec (2.6.0)
45
- rubocop (~> 1.19)
46
- ruby-progressbar (1.11.0)
47
- slimi (0.7.2)
44
+ unicode-display_width (>= 2.4.0, < 3.0)
45
+ rubocop-ast (1.28.0)
46
+ parser (>= 3.2.1.0)
47
+ rubocop-capybara (2.17.1)
48
+ rubocop (~> 1.41)
49
+ rubocop-rspec (2.19.0)
50
+ rubocop (~> 1.33)
51
+ rubocop-capybara (~> 2.17)
52
+ ruby-progressbar (1.13.0)
53
+ slimi (0.7.4)
48
54
  temple
49
55
  thor
50
56
  tilt
51
- templatecop (0.3.0)
57
+ templatecop (0.4.0)
52
58
  parallel
53
59
  parser
54
60
  rubocop (>= 0.87)
55
- temple (0.8.2)
61
+ temple (0.10.0)
56
62
  thor (1.2.1)
57
- tilt (2.0.10)
58
- unicode-display_width (2.1.0)
63
+ tilt (2.1.0)
64
+ unicode-display_width (2.4.2)
59
65
 
60
66
  PLATFORMS
61
67
  x86_64-linux
data/README.md CHANGED
@@ -55,3 +55,21 @@ spec/fixtures/dummy.slim:3:5: C: [Correctable] Style/StringLiterals: Prefer sing
55
55
 
56
56
  1 file inspected, 2 offenses detected, 2 offenses auto-correctable
57
57
  ```
58
+
59
+ ### Configuration
60
+
61
+ Slimcop will start looking for the configuration file in the following locations:
62
+
63
+ 1. /path/to/project/.slimcop.yml
64
+ 2. /path/to/project/.rubocop.yml
65
+
66
+ For example, if you want to disable some cops on slimcop, you can add the following file to your project:
67
+
68
+ ```yaml
69
+ # .slimcop.yml
70
+ inherit_from:
71
+ - .rubocop.yml
72
+
73
+ Foo/Bar:
74
+ Enabled: false
75
+ ```
data/default.yml CHANGED
@@ -118,9 +118,18 @@ Style/NestedTernaryOperator:
118
118
  Style/Next:
119
119
  Enabled: false
120
120
 
121
+ Style/ParallelAssignment:
122
+ Enabled: false
123
+
124
+ Style/RedundantLineContinuation:
125
+ Enabled: false
126
+
121
127
  Style/RescueModifier:
122
128
  Enabled: false
123
129
 
130
+ Style/Semicolon:
131
+ Enabled: false
132
+
124
133
  Style/TrailingCommaInArguments:
125
134
  Enabled: false
126
135
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Slimcop
4
- VERSION = '0.17.1'
4
+ VERSION = '0.18.0'
5
5
  end
data/slimcop.gemspec CHANGED
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ['lib']
31
31
 
32
+ spec.add_dependency 'rubocop', '>= 1.49'
32
33
  spec.add_dependency 'slimi', '>= 0.5.1'
33
34
  spec.add_dependency 'templatecop'
34
35
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slimcop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.1
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-13 00:00:00.000000000 Z
11
+ date: 2023-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.49'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '1.49'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: slimi
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
100
  - !ruby/object:Gem::Version
87
101
  version: '0'
88
102
  requirements: []
89
- rubygems_version: 3.3.7
103
+ rubygems_version: 3.3.26
90
104
  signing_key:
91
105
  specification_version: 4
92
106
  summary: RuboCop runner for Slim template.