rubocop-fnando 0.0.10 → 0.0.15

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: 6342ada4c153178966a3a86d34e43b624e5743ba091f294b3bc295c28cacc901
4
- data.tar.gz: 495e2af847403b1e1713a6f8268054c44e8557fe0e3b0a85152341b524a8fba9
3
+ metadata.gz: 0cf2d5a2efcc209dce860144ee8fa074548f73f8d8279e502f66a0da1c7e211a
4
+ data.tar.gz: 3ca8bffa98e8172f97f1b97bbf02dbd22e3cfa0b54bba16956831cc5c487bb22
5
5
  SHA512:
6
- metadata.gz: 8203d37fd6da5a9b56414a6e80aee0fd7c0b725e72afbeff9fcc1a0bbbdca22b2101d49e88a5365636c84cce7e86bf563689df9719e5f2528f8769fb023f4a56
7
- data.tar.gz: 5b64357df06e6b4c4dbabd4b2d7d30e7d740d0d28d28823cbe133a6aed791399a35acae780f8ac7a86046926244ec08f7564e3fdeda48f7bbf765771362b2cf6
6
+ metadata.gz: 333c4615da0478938fe93ef89082f1b4b5cf9290ab55f0da21c3fc166ffdd86d0b8588b4c9f47ea5a0d2d4f9b3edd058c166527c9ede0961389c8a8ce1c10795
7
+ data.tar.gz: b1d5fbd09a588983c411be5f74239ad51e5872ba4e0e1cccbc99213b48d60ae4b79f038bc86962ec620110c18d9f2e9c9ec83ac74fcb0d7e3b5505be3d0bc816
@@ -1,5 +1,4 @@
1
1
  ---
2
-
3
2
  inherit_gem:
4
3
  rubocop-fnando: .rubocop.yml
5
4
 
@@ -12,21 +11,21 @@ require:
12
11
 
13
12
  Metrics/AbcSize:
14
13
  Exclude:
15
- - !ruby/regexp /^db\/.*?\.rb$/
16
- - !ruby/regexp /^config\/config\.rb$/
17
- - !ruby/regexp /^test\/support\/.*?\.rb$/
14
+ - !ruby/regexp /db\/.*?\.rb$/
15
+ - !ruby/regexp /config\/config\.rb$/
16
+ - !ruby/regexp /test\/support\/.*?\.rb$/
18
17
 
19
18
  Metrics/BlockLength:
20
19
  Exclude:
21
- - !ruby/regexp /^config\/config\.rb$/
22
- - !ruby/regexp /^config\/routes\.rb$/
23
- - !ruby/regexp /^config\/routes\/.*?\.rb$/
24
- - !ruby/regexp /^test\/support\/factories\/.*?\.rb$/
20
+ - !ruby/regexp /config\/config\.rb$/
21
+ - !ruby/regexp /config\/routes\.rb$/
22
+ - !ruby/regexp /config\/routes\/.*?\.rb$/
23
+ - !ruby/regexp /test\/support\/factories\/.*?\.rb$/
25
24
 
26
25
  Layout/LineLength:
27
26
  Exclude:
28
- - !ruby/regexp /^db\/.*?\.rb$/
29
- - !ruby/regexp /^config\/environments\/.*?\.rb$/
27
+ - !ruby/regexp /db\/.*?\.rb$/
28
+ - !ruby/regexp /config\/environments\/.*?\.rb$/
30
29
 
31
30
  Rails/Delegate:
32
31
  Enabled: false
@@ -1,9 +1,16 @@
1
1
  ---
2
+ require:
3
+ - rubocop-performance
4
+
2
5
  AllCops:
6
+ SuggestExtensions: false
7
+
3
8
  Exclude:
4
- - !ruby/regexp /^node_modules\//
5
- - !ruby/regexp /^bin\//
6
- - !ruby/regexp /^db\/schema\.rb$/
9
+ - !ruby/regexp /\/node_modules\//
10
+ - !ruby/regexp /\/bin\//
11
+ - !ruby/regexp /\/db\/schema\.rb$/
12
+ - !ruby/regexp /\/vendor\//
13
+ - !ruby/regexp /\/gemfiles\//
7
14
 
8
15
  Lint/DeprecatedOpenSSLConstant:
9
16
  Enabled: true
@@ -14,6 +21,9 @@ Lint/RaiseException:
14
21
  Lint/StructNewOverride:
15
22
  Enabled: true
16
23
 
24
+ Lint/MixedRegexpCaptureTypes:
25
+ Enabled: true
26
+
17
27
  Layout/EmptyLinesAroundAttributeAccessor:
18
28
  Enabled: true
19
29
 
@@ -91,7 +101,7 @@ Style/HashEachMethods:
91
101
  Enabled: true
92
102
 
93
103
  Style/HashTransformKeys:
94
- Enabled: true
104
+ Enabled: false
95
105
 
96
106
  Style/HashTransformValues:
97
107
  Enabled: true
@@ -101,3 +111,9 @@ Style/ExponentialNotation:
101
111
 
102
112
  Style/SlicingWithRange:
103
113
  Enabled: false
114
+
115
+ Style/RedundantRegexpCharacterClass:
116
+ Enabled: true
117
+
118
+ Style/RedundantRegexpEscape:
119
+ Enabled: true
data/README.md CHANGED
@@ -45,18 +45,30 @@ AllCops:
45
45
 
46
46
  ## Development
47
47
 
48
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
48
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
49
+ `rake test` to run the tests. You can also run `bin/console` for an interactive
50
+ prompt that will allow you to experiment.
49
51
 
50
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
52
+ To install this gem onto your local machine, run `bundle exec rake install`. To
53
+ release a new version, update the version number in `version.rb`, and then run
54
+ `bundle exec rake release`, which will create a git tag for the version, push
55
+ git commits and tags, and push the `.gem` file to
56
+ [rubygems.org](https://rubygems.org).
51
57
 
52
58
  ## Contributing
53
59
 
54
- Bug reports and pull requests are welcome on GitHub at https://github.com/fnando/rubocop-fnando. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
60
+ Bug reports and pull requests are welcome on GitHub at
61
+ https://github.com/fnando/rubocop-fnando. This project is intended to be a safe,
62
+ welcoming space for collaboration, and contributors are expected to adhere to
63
+ the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
55
64
 
56
65
  ## License
57
66
 
58
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
67
+ The gem is available as open source under the terms of the
68
+ [MIT License](https://opensource.org/licenses/MIT).
59
69
 
60
70
  ## Code of Conduct
61
71
 
62
- Everyone interacting in the Rubocop::Fnando project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fnando/rubocop-fnando/blob/master/CODE_OF_CONDUCT.md).
72
+ Everyone interacting in the Rubocop::Fnando project’s codebases, issue trackers,
73
+ chat rooms and mailing lists is expected to follow the
74
+ [code of conduct](https://github.com/fnando/rubocop-fnando/blob/main/CODE_OF_CONDUCT.md).
@@ -2,9 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "rubocop-fnando"
5
- spec.version = "0.0.10"
5
+ spec.version = "0.0.15"
6
6
  spec.authors = ["Nando Vieira"]
7
7
  spec.email = ["me@fnando.com"]
8
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
8
9
 
9
10
  spec.summary = "Rubocop configuration"
10
11
  spec.description = spec.summary
@@ -20,6 +21,8 @@ Gem::Specification.new do |spec|
20
21
  spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
21
22
  spec.require_paths = ["lib"]
22
23
 
24
+ spec.add_dependency "rubocop"
25
+ spec.add_dependency "rubocop-performance"
23
26
  spec.add_development_dependency "bundler"
24
27
  spec.add_development_dependency "rake"
25
28
  end
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-fnando
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-10 00:00:00.000000000 Z
11
+ date: 2020-12-06 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: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: bundler
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,14 +94,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
94
  requirements:
67
95
  - - ">="
68
96
  - !ruby/object:Gem::Version
69
- version: '0'
97
+ version: 2.3.0
70
98
  required_rubygems_version: !ruby/object:Gem::Requirement
71
99
  requirements:
72
100
  - - ">="
73
101
  - !ruby/object:Gem::Version
74
102
  version: '0'
75
103
  requirements: []
76
- rubygems_version: 3.1.2
104
+ rubygems_version: 3.1.4
77
105
  signing_key:
78
106
  specification_version: 4
79
107
  summary: Rubocop configuration