rubocop-codeur 0.2.2 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a60feca05023297b1988220f28f2f32f21525e2adc8c8601ba76f1487f5fd128
4
- data.tar.gz: 58ec678e02c4f4bbf04698ea2dc2365e293d3f9114c8f65205da7e52c24181a4
3
+ metadata.gz: 074a91a91fe5f580489c1ffbf00b98096770de77516bf8eef02f5651c4c2cce8
4
+ data.tar.gz: cf979ebfcc6ce79a780d6d433361e7ea11c3b9ebf7eabe6b79396dc7780ab63e
5
5
  SHA512:
6
- metadata.gz: 4c1485ebe523b7e4d3f9d03c1ef3faf149cd652218f44fac0e6e2829f6a66f92405c5a88448346b2d189d621720675e361b4e77b69b4e2ae49fd93990fc271e0
7
- data.tar.gz: bab88e2804dabb3b9212a49aa609ff33f125c4f823b0639fcb7154460913ca86a0b744892ef7ec66c47a7a868648f060d5046dce2aba297fff6267100f9ac422
6
+ metadata.gz: cd5690178b31b714cc25c079ade00dc23a43d3cb15443d62adb137963e32d4b23b73fc3c9d4b19a28d67c6b9fd189ec8134b9b0374844c4bcc5f5caf6ab475a1
7
+ data.tar.gz: 0c6b20d0f7408c0b7a8b814ea8c9b82c13b306c56633b2930b1b7cb4abb6b0facd624d9d2159056ca7f1e230559a0902c4b471782d30b583b81a38eddceb641a
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,9 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-codeur (0.2.2)
4
+ rubocop-codeur (0.4.1)
5
5
  rubocop (~> 1.25)
6
- rubocop-github (~> 0.17)
7
6
  rubocop-minitest (~> 0.10, >= 0.10.2)
8
7
  rubocop-performance (~> 1.9, >= 1.9.2)
9
8
  rubocop-rails (~> 2.9, >= 2.9.1)
@@ -11,7 +10,7 @@ PATH
11
10
  GEM
12
11
  remote: https://rubygems.org/
13
12
  specs:
14
- activesupport (7.0.1)
13
+ activesupport (7.0.2.2)
15
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
15
  i18n (>= 1.6, < 2)
17
16
  minitest (>= 5.1)
@@ -19,7 +18,7 @@ GEM
19
18
  ast (2.4.2)
20
19
  concurrent-ruby (1.1.9)
21
20
  docile (1.4.0)
22
- i18n (1.9.1)
21
+ i18n (1.10.0)
23
22
  concurrent-ruby (~> 1.0)
24
23
  minitest (5.15.0)
25
24
  parallel (1.21.0)
@@ -41,10 +40,6 @@ GEM
41
40
  unicode-display_width (>= 1.4.0, < 3.0)
42
41
  rubocop-ast (1.15.1)
43
42
  parser (>= 3.0.1.1)
44
- rubocop-github (0.17.0)
45
- rubocop
46
- rubocop-performance
47
- rubocop-rails
48
43
  rubocop-minitest (0.17.0)
49
44
  rubocop (>= 0.90, < 2.0)
50
45
  rubocop-performance (1.13.2)
data/README.md CHANGED
@@ -25,8 +25,8 @@ Then run:
25
25
  `bundle exec rubocop`
26
26
 
27
27
  You don't need to include rubocop directly in your application's dependencies.
28
- `rubocop-codeur` will include `rubocop`, `rubocop-github`, `rubocop-minitest`,
29
- `rubocop-performance` and `rubocop-rails` dependencies.
28
+ `rubocop-codeur` will include `rubocop`, `rubocop-minitest`, `rubocop-performance`,
29
+ and `rubocop-rails` dependencies.
30
30
 
31
31
  It might be necessary to override style rules set in this gem for some projects
32
32
  or to add specific ones. Rule inheritance provided by RuboCop works like the
@@ -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
@@ -4,10 +4,6 @@ require:
4
4
  - rubocop-performance
5
5
  - rubocop-rails
6
6
 
7
- inherit_gem:
8
- rubocop-github:
9
- - config/default.yml
10
-
11
7
  AllCops:
12
8
  Exclude:
13
9
  - 'db/schema.rb'
@@ -33,7 +29,7 @@ Codeur/RailsAppPatterns:
33
29
  - modules
34
30
 
35
31
  Codeur/RailsAvoidInstanceMethodsInHelpers:
36
- Enabled: true
32
+ Enabled: false
37
33
 
38
34
  Layout/AccessModifierIndentation:
39
35
  Enabled: true
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Codeur
5
- VERSION = '0.2.2'
5
+ VERSION = '0.4.1'
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
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
21
21
  end
22
22
 
23
23
  spec.add_dependency 'rubocop', '~> 1.25'
24
- spec.add_dependency 'rubocop-github', '~> 0.17'
25
24
  spec.add_dependency 'rubocop-minitest', '~> 0.10', '>=0.10.2'
26
25
  spec.add_dependency 'rubocop-performance', '~> 1.9', '>= 1.9.2'
27
26
  spec.add_dependency 'rubocop-rails', '~> 2.9', '>= 2.9.1'
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.2.2
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codeur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-28 00:00:00.000000000 Z
11
+ date: 2022-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.25'
27
- - !ruby/object:Gem::Dependency
28
- name: rubocop-github
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.17'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.17'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rubocop-minitest
43
29
  requirement: !ruby/object:Gem::Requirement