theforeman-rubocop 0.0.3 → 0.0.4

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: 56e4900920ca6ad6e7559e62658fc8e94b13e2ab8f271df397acf6e73443cb90
4
- data.tar.gz: 052cb67edccee299ba06af861f8f567e257ac62db6d96f68a025eb417008cebe
3
+ metadata.gz: dec7eda262ed8ce64a081f73d79ab7ca5dbf8ecfe3c764603cd354ed876f2608
4
+ data.tar.gz: c665678918e1ff4447bb680602de6969efabcf670a4cea6bb96633180330b777
5
5
  SHA512:
6
- metadata.gz: 7113b1156b475fe25b60c18ee4fd0cebe20a4e9299965b7adfd23008319de42f006ffa11bd37937fcb0d97b2cd0f890fc52464decc98f01312107c89f6600744
7
- data.tar.gz: 957a747731c40f0e4f100908b9de78fe196bc8d3811a9805cc5bccfca588bab9619f4a95516ffa574c266c05ff1e2238000d793400bef0e50b1f85d9e60ec1f8
6
+ metadata.gz: 614d380c95d209a784b6e4def72fa6d75e5eed9532f0274f07d736d965facf05fe3a539d16f92b9849aa3c7b51881260dda07a13e2061da6308f2f0dcfcc02df
7
+ data.tar.gz: cc33b094bb9d3dea816fd9b8d8902536d618d0281d7797aafd5eb7726ff37534ecf11f162d5535cac14a22d63c6293721f78392a47654d208060b40f9163ca4e
data/README.md CHANGED
@@ -16,7 +16,7 @@ Instead of defining the rules for plugin per plugin, plugins can include default
16
16
 
17
17
  ```ruby
18
18
  # Gemfile
19
- gem 'theforeman-rubocop', '~> 0.0.2'
19
+ gem 'theforeman-rubocop', '~> 0.0.4'
20
20
  ```
21
21
 
22
22
  And configure in the `.rubocop.yml`.
data/all.yml CHANGED
@@ -1,6 +1,11 @@
1
1
  inherit_from:
2
- - default.yml
2
+ - rules/base.yml
3
+ - rules/style.yml
4
+ - rules/performance.yml
5
+ - rules/metrics.yml
3
6
  - rules/ruby_target.yml
4
7
  - rules/rails.yml
5
8
  - rules/minitest.yml
6
9
 
10
+ AllCops:
11
+ NewCops: disable
@@ -1,10 +1,8 @@
1
1
  inherit_from:
2
+ - rules/base.yml
2
3
  - rules/style.yml
4
+ - rules/style_permissive.yml
3
5
  - rules/performance.yml
4
6
 
5
7
  AllCops:
6
8
  NewCops: disable
7
- Exclude:
8
- - 'db/schema.rb'
9
- - 'node_modules/**/*'
10
- - 'vendor/**/*'
@@ -1,5 +1,5 @@
1
1
  module Theforeman
2
2
  module Rubocop
3
- VERSION = '0.0.3'.freeze
3
+ VERSION = '0.0.4'.freeze
4
4
  end
5
5
  end
@@ -0,0 +1,5 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'db/schema.rb'
4
+ - 'node_modules/**/*'
5
+ - 'vendor/**/*'
@@ -0,0 +1,8 @@
1
+ Metrics/BlockLength:
2
+ Exclude:
3
+ - 'spec/**/*'
4
+ - 'test/**/*'
5
+
6
+ Metrics/ClassLength:
7
+ Exclude:
8
+ - 'test/**/*'
@@ -22,14 +22,6 @@ Style/Documentation:
22
22
  Style/EmptyMethod:
23
23
  EnforcedStyle: expanded
24
24
 
25
- # Support both, Ruby 1.9 hashmap and hash-rocket syntax
26
- Style/HashSyntax:
27
- EnforcedStyle: no_mixed_keys
28
-
29
- # Both double and single quotes are OK
30
- Style/StringLiterals:
31
- Enabled: false
32
-
33
25
  Style/TernaryParentheses:
34
26
  EnforcedStyle: require_parentheses_when_complex
35
27
 
@@ -0,0 +1,22 @@
1
+ # Don't prefer is_a? over kind_of?
2
+ Style/ClassCheck:
3
+ Enabled: false
4
+
5
+ # Support both, Ruby 1.9 hashmap and hash-rocket syntax
6
+ Style/HashSyntax:
7
+ EnforcedStyle: no_mixed_keys
8
+
9
+ # disabled until we can configure "+" as concat sign
10
+ Style/LineEndConcatenation:
11
+ Enabled: false
12
+
13
+ # Both double and single quotes are OK
14
+ Style/StringLiterals:
15
+ Enabled: false
16
+
17
+ Style/SymbolArray:
18
+ EnforcedStyle: brackets
19
+ MinSize: 1
20
+
21
+ Style/WordArray:
22
+ Enabled: false
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.authors = IO.readlines('AUTHORS', encoding: 'utf-8').map(&:strip)
11
11
  spec.email = ['foreman-dev@googlegroups.com']
12
12
 
13
- spec.summary = 'This gem guides and shares rubocop style configs.'
13
+ spec.summary = 'Shared Rubocop configuration for theforeman.org family of projects.'
14
14
  spec.homepage = 'https://github.com/theforeman/theforeman-rubocop'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theforeman-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-30 00:00:00.000000000 Z
11
+ date: 2020-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -136,11 +136,14 @@ files:
136
136
  - default.yml
137
137
  - edge.yml
138
138
  - lib/theforeman/rubocop/version.rb
139
+ - rules/base.yml
140
+ - rules/metrics.yml
139
141
  - rules/minitest.yml
140
142
  - rules/performance.yml
141
143
  - rules/rails.yml
142
144
  - rules/ruby_target.yml
143
145
  - rules/style.yml
146
+ - rules/style_permissive.yml
144
147
  - theforeman-rubocop.gemspec
145
148
  homepage: https://github.com/theforeman/theforeman-rubocop
146
149
  licenses: []
@@ -163,5 +166,5 @@ requirements: []
163
166
  rubygems_version: 3.1.2
164
167
  signing_key:
165
168
  specification_version: 4
166
- summary: This gem guides and shares rubocop style configs.
169
+ summary: Shared Rubocop configuration for theforeman.org family of projects.
167
170
  test_files: []