rubocop-codeur 0.3.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 420f3301ff009bf96c52547e4246fa419d902281f56c7f47700572a144c92f09
4
- data.tar.gz: 5e9d83bbb45232a8d37ec82e6635a1861a5d6a30c600c65fe12d00f8bdb8ae2b
3
+ metadata.gz: d26be5fe83aa363c94f14a99925be6f49cbd34418025643ac44ad63b78891a2c
4
+ data.tar.gz: 42ceae50bb365683d7b12afcf697fafb86ccd6f3397543218a197dced409e4ca
5
5
  SHA512:
6
- metadata.gz: 207d14d404508d364b8abca572ae641ecf3c223b30cbdc69e9d3a665e9f54d6ee034081ef3d277bf8290026b62e2dbfb5f1619e393a8b6a5a7ae743dc8011c91
7
- data.tar.gz: 0d71a43971ce29790b74fc25ecd5555c1d263a5edf8cc55a64e03c9be82419616a3e79b5ce4b304779bbe339f910c066db0ebe18d757c3c2bac560632afd9e94
6
+ metadata.gz: e62237265d2bd3079f3b2202858f7274da2aa3e185d4f0c58bd3124d5b05ea123eb105ab88dcfec4a2d62525beb8241f8e51fb2edf597e097b26295bf6f8787f
7
+ data.tar.gz: 90811e3d0abca21112bdad396121208b12c10f0f16a440e65a7563455f9682750c7c234c7a39ebc9f03005000b8f730a8a96ff02da47b9b1131951ec9055ee48
data/.rubocop.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  AllCops:
2
+ SuggestExtensions: false
2
3
  NewCops: enable
3
4
 
4
5
  Naming/FileName:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-codeur (0.3.0)
4
+ rubocop-codeur (0.4.2)
5
5
  rubocop (~> 1.25)
6
6
  rubocop-minitest (~> 0.10, >= 0.10.2)
7
7
  rubocop-performance (~> 1.9, >= 1.9.2)
@@ -10,7 +10,7 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (7.0.1)
13
+ activesupport (7.0.2.3)
14
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
15
  i18n (>= 1.6, < 2)
16
16
  minitest (>= 5.1)
@@ -18,34 +18,34 @@ GEM
18
18
  ast (2.4.2)
19
19
  concurrent-ruby (1.1.9)
20
20
  docile (1.4.0)
21
- i18n (1.9.1)
21
+ i18n (1.10.0)
22
22
  concurrent-ruby (~> 1.0)
23
23
  minitest (5.15.0)
24
24
  parallel (1.21.0)
25
- parser (3.1.0.0)
25
+ parser (3.1.1.0)
26
26
  ast (~> 2.4.1)
27
27
  rack (2.2.3)
28
28
  rainbow (3.1.1)
29
29
  rake (12.3.3)
30
- regexp_parser (2.2.0)
30
+ regexp_parser (2.2.1)
31
31
  rexml (3.2.5)
32
- rubocop (1.25.0)
32
+ rubocop (1.26.0)
33
33
  parallel (~> 1.10)
34
34
  parser (>= 3.1.0.0)
35
35
  rainbow (>= 2.2.2, < 4.0)
36
36
  regexp_parser (>= 1.8, < 3.0)
37
37
  rexml
38
- rubocop-ast (>= 1.15.1, < 2.0)
38
+ rubocop-ast (>= 1.16.0, < 2.0)
39
39
  ruby-progressbar (~> 1.7)
40
40
  unicode-display_width (>= 1.4.0, < 3.0)
41
- rubocop-ast (1.15.1)
42
- parser (>= 3.0.1.1)
43
- rubocop-minitest (0.17.0)
41
+ rubocop-ast (1.16.0)
42
+ parser (>= 3.1.1.0)
43
+ rubocop-minitest (0.18.0)
44
44
  rubocop (>= 0.90, < 2.0)
45
- rubocop-performance (1.13.2)
45
+ rubocop-performance (1.13.3)
46
46
  rubocop (>= 1.7.0, < 2.0)
47
47
  rubocop-ast (>= 0.4.0)
48
- rubocop-rails (2.13.2)
48
+ rubocop-rails (2.14.0)
49
49
  activesupport (>= 4.2.0)
50
50
  rack (>= 1.1)
51
51
  rubocop (>= 1.7.0, < 2.0)
@@ -55,7 +55,7 @@ GEM
55
55
  simplecov-html (~> 0.11)
56
56
  simplecov_json_formatter (~> 0.1)
57
57
  simplecov-html (0.12.3)
58
- simplecov_json_formatter (0.1.3)
58
+ simplecov_json_formatter (0.1.4)
59
59
  tzinfo (2.0.4)
60
60
  concurrent-ruby (~> 1.0)
61
61
  unicode-display_width (2.1.0)
data/README.md CHANGED
@@ -48,6 +48,17 @@ AllCops:
48
48
 
49
49
  Note that those overriding should be avoided as much as possible.
50
50
 
51
+ ## Testing
52
+
53
+ Run:
54
+ ```bash
55
+ bin/rake test
56
+ ```
57
+ or simply:
58
+ ```bash
59
+ bin/rake
60
+ ```
61
+
51
62
  ## Release
52
63
  Before all, configure your credentials for RubyGems :
53
64
 
data/default.yml CHANGED
@@ -29,7 +29,7 @@ Codeur/RailsAppPatterns:
29
29
  - modules
30
30
 
31
31
  Codeur/RailsAvoidInstanceMethodsInHelpers:
32
- Enabled: true
32
+ Enabled: false
33
33
 
34
34
  Layout/AccessModifierIndentation:
35
35
  Enabled: true
@@ -234,6 +234,9 @@ Rails/ReversibleMigration:
234
234
  Exclude:
235
235
  - 'db/migrate/{2012,2013,2014,2015,2016,2017,2018}*.rb'
236
236
 
237
+ Rails/MigrationClassName:
238
+ Enabled: false
239
+
237
240
  Rails/SaveBang:
238
241
  Enabled: false
239
242
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Codeur
5
- VERSION = '0.3.0'
5
+ VERSION = '0.4.2'
6
6
  end
7
7
  end
@@ -55,7 +55,7 @@ module RuboCop
55
55
  end
56
56
 
57
57
  def pattern_from_path(path)
58
- return nil unless path.match(%r{/app/(?<pattern>.+)/.+})
58
+ return nil unless path.match(%r{/(?<folder>app|test)/(?<pattern>.+)/.+})
59
59
 
60
60
  Regexp.last_match(:pattern)
61
61
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-codeur
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codeur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-04 00:00:00.000000000 Z
11
+ date: 2022-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop