manageiq-style 1.2.0 → 1.3.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/ci.yaml +33 -0
- data/.rspec +2 -2
- data/.whitesource +3 -0
- data/README.md +5 -0
- data/lib/manageiq/style/cli.rb +1 -1
- data/lib/manageiq/style/version.rb +1 -1
- data/manageiq-style.gemspec +4 -3
- data/styles/base.yml +12 -2
- data/styles/cc_base.yml +3 -3
- metadata +25 -10
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30b3629a0d14ba1680e62920e1304effa28b6a8c00f1415c6496148eba75f804
|
4
|
+
data.tar.gz: 61704454dacf7bca212a9ec3301f567860d5d2aec867097c1d697e799de020b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0a9486e38802b8ac853683e833dc95c26b53db3cb322633d63a558711d589b96a5e133b7d824f5f222ca17a4e1d015b372c5f094fe1a6a0d524d99068b8c443
|
7
|
+
data.tar.gz: 50b4a4af2740697a2f114b7eee18ff6d9af87c6462b20a2c5675fa380fc47527d8e7bfab5f331967dab6cce794725aa1e715113478cadfdcbdfc3de210801a41
|
@@ -0,0 +1,33 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
pull_request:
|
6
|
+
schedule:
|
7
|
+
- cron: '0 0 * * 0'
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
ci:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby-version:
|
15
|
+
- '2.5'
|
16
|
+
- '2.6'
|
17
|
+
- '2.7'
|
18
|
+
- '3.0'
|
19
|
+
env:
|
20
|
+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- name: Set up Ruby
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby-version }}
|
27
|
+
bundler-cache: true
|
28
|
+
- name: Run tests
|
29
|
+
run: bundle exec rake
|
30
|
+
- name: Report code coverage
|
31
|
+
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' }}
|
32
|
+
continue-on-error: true
|
33
|
+
uses: paambaati/codeclimate-action@v3.0.0
|
data/.rspec
CHANGED
data/.whitesource
ADDED
data/README.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# manageiq-style
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/manageiq-style.svg)](http://badge.fury.io/rb/manageiq-style)
|
4
|
+
[![CI](https://github.com/ManageIQ/manageiq-style/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/manageiq-style/actions/workflows/ci.yaml)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-style.svg)](https://codeclimate.com/github/ManageIQ/manageiq-style)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-style/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-style/coverage)
|
7
|
+
|
3
8
|
Style and linting configuration for ManageIQ projects.
|
4
9
|
|
5
10
|
## Installation
|
data/lib/manageiq/style/cli.rb
CHANGED
@@ -233,7 +233,7 @@ module ManageIQ
|
|
233
233
|
end
|
234
234
|
|
235
235
|
def cc_rubocop_channel
|
236
|
-
@cc_rubocop_channel ||= "rubocop-#{rubocop_version.segments[0]}-#{rubocop_version.segments[1]}"
|
236
|
+
@cc_rubocop_channel ||= "rubocop-#{rubocop_version.segments[0]}-#{rubocop_version.segments[1]}-#{rubocop_version.segments[2]}"
|
237
237
|
end
|
238
238
|
|
239
239
|
def rubocop_version
|
data/manageiq-style.gemspec
CHANGED
@@ -25,10 +25,11 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.add_runtime_dependency "more_core_extensions"
|
27
27
|
spec.add_runtime_dependency "optimist"
|
28
|
-
spec.add_runtime_dependency "rubocop",
|
28
|
+
spec.add_runtime_dependency "rubocop", "~> 1.13"
|
29
29
|
spec.add_runtime_dependency "rubocop-performance"
|
30
30
|
spec.add_runtime_dependency "rubocop-rails"
|
31
31
|
|
32
|
-
spec.add_development_dependency "rake",
|
33
|
-
spec.add_development_dependency "rspec",
|
32
|
+
spec.add_development_dependency "rake", "~> 12.0"
|
33
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
34
|
+
spec.add_development_dependency "simplecov", ">= 0.21.2"
|
34
35
|
end
|
data/styles/base.yml
CHANGED
@@ -3,11 +3,12 @@ require:
|
|
3
3
|
- rubocop-performance
|
4
4
|
|
5
5
|
AllCops:
|
6
|
-
NewCops:
|
6
|
+
NewCops: enable
|
7
7
|
Exclude:
|
8
8
|
- spec/manageiq/**/*
|
9
9
|
- vendor/**/*
|
10
|
-
|
10
|
+
SuggestExtensions: false
|
11
|
+
TargetRubyVersion: 2.6
|
11
12
|
Layout/HashAlignment:
|
12
13
|
EnforcedHashRocketStyle: table
|
13
14
|
EnforcedColonStyle: table
|
@@ -17,6 +18,8 @@ Layout/EndAlignment:
|
|
17
18
|
AutoCorrect: true
|
18
19
|
Layout/ExtraSpacing:
|
19
20
|
AutoCorrect: true
|
21
|
+
Exclude:
|
22
|
+
- Gemfile
|
20
23
|
Layout/LineLength:
|
21
24
|
Enabled: false
|
22
25
|
Layout/SpaceAroundMethodCallOperator:
|
@@ -53,6 +56,8 @@ Naming/MethodParameterName:
|
|
53
56
|
- dc
|
54
57
|
Naming/RescuedExceptionsVariableName:
|
55
58
|
Enabled: false
|
59
|
+
Naming/VariableNumber:
|
60
|
+
Enabled: false
|
56
61
|
Performance/Casecmp:
|
57
62
|
Enabled: false
|
58
63
|
Rails:
|
@@ -178,6 +183,7 @@ Style/MethodCallWithArgsParentheses:
|
|
178
183
|
- change_column
|
179
184
|
- change_column_comment
|
180
185
|
- change_column_null
|
186
|
+
- change_table
|
181
187
|
- change_table_comment
|
182
188
|
- class_attribute
|
183
189
|
- create_table
|
@@ -248,6 +254,10 @@ Style/MethodCallWithArgsParentheses:
|
|
248
254
|
# Rake
|
249
255
|
- desc
|
250
256
|
- task
|
257
|
+
Style/NegatedIf:
|
258
|
+
Enabled: false
|
259
|
+
Style/NegatedIfElseCondition:
|
260
|
+
Enabled: false
|
251
261
|
Style/NumericLiterals:
|
252
262
|
AutoCorrect: false
|
253
263
|
Style/NumericPredicate:
|
data/styles/cc_base.yml
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
#
|
5
5
|
---
|
6
6
|
AllCops:
|
7
|
-
TargetRubyVersion: 2.
|
7
|
+
TargetRubyVersion: 2.6
|
8
8
|
Bundler:
|
9
9
|
Enabled: true
|
10
10
|
Gemspec:
|
@@ -23,6 +23,8 @@ Security:
|
|
23
23
|
Enabled: true
|
24
24
|
Style:
|
25
25
|
Enabled: false
|
26
|
+
Layout/LineLength:
|
27
|
+
Enabled: false
|
26
28
|
Metrics/AbcSize:
|
27
29
|
Enabled: false
|
28
30
|
Metrics/BlockLength:
|
@@ -34,8 +36,6 @@ Metrics/ClassLength:
|
|
34
36
|
Metrics/CyclomaticComplexity:
|
35
37
|
Enabled: true
|
36
38
|
Max: 11
|
37
|
-
Metrics/LineLength:
|
38
|
-
Enabled: false
|
39
39
|
Metrics/MethodLength:
|
40
40
|
Enabled: false
|
41
41
|
Metrics/ModuleLength:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Authors
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: more_core_extensions
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '1.13'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '1.13'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-performance
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,14 +108,29 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '3.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: simplecov
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.21.2
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.21.2
|
111
125
|
description: Style and linting configuration for ManageIQ projects.
|
112
|
-
email:
|
126
|
+
email:
|
113
127
|
executables:
|
114
128
|
- manageiq-style
|
115
129
|
extensions: []
|
116
130
|
extra_rdoc_files: []
|
117
131
|
files:
|
118
132
|
- ".codeclimate.yml"
|
133
|
+
- ".github/workflows/ci.yaml"
|
119
134
|
- ".gitignore"
|
120
135
|
- ".haml-lint.yml"
|
121
136
|
- ".rspec"
|
@@ -124,7 +139,7 @@ files:
|
|
124
139
|
- ".rubocop_cc.yml"
|
125
140
|
- ".rubocop_cc_base.yml"
|
126
141
|
- ".rubocop_local.yml"
|
127
|
-
- ".
|
142
|
+
- ".whitesource"
|
128
143
|
- Gemfile
|
129
144
|
- LICENSE.txt
|
130
145
|
- README.md
|
@@ -145,7 +160,7 @@ licenses:
|
|
145
160
|
metadata:
|
146
161
|
homepage_uri: https://github.com/ManageIQ/manageiq-style
|
147
162
|
source_code_uri: https://github.com/ManageIQ/manageiq-style
|
148
|
-
post_install_message:
|
163
|
+
post_install_message:
|
149
164
|
rdoc_options: []
|
150
165
|
require_paths:
|
151
166
|
- lib
|
@@ -160,8 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
175
|
- !ruby/object:Gem::Version
|
161
176
|
version: '0'
|
162
177
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
164
|
-
signing_key:
|
178
|
+
rubygems_version: 3.3.5
|
179
|
+
signing_key:
|
165
180
|
specification_version: 4
|
166
181
|
summary: Style and linting configuration for ManageIQ projects.
|
167
182
|
test_files: []
|