theforeman-rubocop 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +21 -11
- data/README.md +1 -3
- data/edge.yml +4 -0
- data/lib/theforeman/rubocop/version.rb +1 -1
- data/rules/style.yml +7 -2
- data/theforeman-rubocop.gemspec +2 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d26d15c887b5446d9ffa1ffb6648929b2bf50b4548b40b57919cb3fd84fcf556
|
4
|
+
data.tar.gz: 171d212c599da6f42fc51fdb2b000f3cd76ed250517a1c77300b27be8491001d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b2689b5ee40ff359d74e09e766091b0533fe926c6b77f17100dd2fcde37eeed79ceb937bba966ce53bae8c1bdec0d64b9f36ccd6c28aab84d061701d4a7452b
|
7
|
+
data.tar.gz: 4d78888d74a4c0e038d0b07d720f599284d30e7fc803f32103e5d3bf4126fab90ada5688637b2ccf4e817138b696d911fe3492fe45ebcde1b7fbe918cd902933
|
@@ -5,8 +5,8 @@ on:
|
|
5
5
|
- v*
|
6
6
|
|
7
7
|
jobs:
|
8
|
-
|
9
|
-
name: Build + Publish
|
8
|
+
publish_ghp:
|
9
|
+
name: Build + Publish on GHP
|
10
10
|
runs-on: ubuntu-latest
|
11
11
|
|
12
12
|
steps:
|
@@ -28,13 +28,23 @@ jobs:
|
|
28
28
|
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
29
29
|
OWNER: ${{ github.repository_owner }}
|
30
30
|
|
31
|
+
publish_rubygems:
|
32
|
+
name: Build + Publish on RubyGems
|
33
|
+
runs-on: ubuntu-latest
|
34
|
+
steps:
|
35
|
+
- uses: actions/checkout@v2
|
36
|
+
- name: Set up Ruby 2.6
|
37
|
+
uses: actions/setup-ruby@v1
|
38
|
+
with:
|
39
|
+
ruby-version: 2.6.x
|
31
40
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
+
- run: gem build *.gemspec
|
42
|
+
- name: Publish to RubyGems
|
43
|
+
run: |
|
44
|
+
mkdir -p $HOME/.gem
|
45
|
+
touch $HOME/.gem/credentials
|
46
|
+
chmod 0600 $HOME/.gem/credentials
|
47
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
48
|
+
gem push *.gem
|
49
|
+
env:
|
50
|
+
GEM_HOST_API_KEY: "Bearer ${{secrets.RUBYGEM_API_KEY}}"
|
data/README.md
CHANGED
@@ -16,9 +16,7 @@ Instead of defining the rules for plugin per plugin, plugins can include default
|
|
16
16
|
|
17
17
|
```ruby
|
18
18
|
# Gemfile
|
19
|
-
|
20
|
-
gem 'theforeman-rubocop', '~> 0.0.1'
|
21
|
-
end
|
19
|
+
gem 'theforeman-rubocop', '~> 0.0.2'
|
22
20
|
```
|
23
21
|
|
24
22
|
And configure in the `.rubocop.yml`.
|
data/edge.yml
CHANGED
data/rules/style.yml
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
Layout/EmptyLineAfterGuardClause:
|
2
2
|
Enabled: false
|
3
3
|
|
4
|
-
Layout/
|
5
|
-
EnforcedStyle:
|
4
|
+
Layout/ArgumentAlignment:
|
5
|
+
EnforcedStyle: with_fixed_indentation
|
6
|
+
IndentationWidth: 2
|
6
7
|
|
7
8
|
Style/Alias:
|
8
9
|
EnforcedStyle: prefer_alias_method
|
@@ -10,6 +11,10 @@ Style/Alias:
|
|
10
11
|
Style/AndOr:
|
11
12
|
EnforcedStyle: conditionals
|
12
13
|
|
14
|
+
Style/ClassAndModuleChildren:
|
15
|
+
Exclude:
|
16
|
+
- 'app/controllers/concerns/**/parameters/*.rb'
|
17
|
+
|
13
18
|
# Don't enforce documentation
|
14
19
|
Style/Documentation:
|
15
20
|
Enabled: false
|
data/theforeman-rubocop.gemspec
CHANGED
@@ -21,10 +21,11 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
23
|
spec.add_dependency 'rubocop', '~> 0.89.0'
|
24
|
+
spec.add_dependency 'rubocop-checkstyle_formatter', '~> 0.4.0'
|
24
25
|
spec.add_dependency 'rubocop-rspec', '~> 1.43.2'
|
25
26
|
spec.add_dependency 'rubocop-minitest', '~> 0.10.1'
|
26
27
|
spec.add_dependency 'rubocop-performance', '~> 1.8.1'
|
27
|
-
spec.add_dependency 'rubocop-rails', '~> 2.
|
28
|
+
spec.add_dependency 'rubocop-rails', '~> 2.8.1'
|
28
29
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
29
30
|
spec.add_development_dependency 'rake', '~> 13.0'
|
30
31
|
end
|
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.
|
4
|
+
version: 0.0.2
|
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-
|
11
|
+
date: 2020-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.89.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-checkstyle_formatter
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.4.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.4.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rubocop-rspec
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +86,14 @@ dependencies:
|
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.
|
89
|
+
version: 2.8.1
|
76
90
|
type: :runtime
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.
|
96
|
+
version: 2.8.1
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: bundler
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|