manageiq-style 1.3.1 → 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 +3 -0
- metadata +19 -4
- 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
@@ -56,6 +56,8 @@ Naming/MethodParameterName:
|
|
56
56
|
- dc
|
57
57
|
Naming/RescuedExceptionsVariableName:
|
58
58
|
Enabled: false
|
59
|
+
Naming/VariableNumber:
|
60
|
+
Enabled: false
|
59
61
|
Performance/Casecmp:
|
60
62
|
Enabled: false
|
61
63
|
Rails:
|
@@ -181,6 +183,7 @@ Style/MethodCallWithArgsParentheses:
|
|
181
183
|
- change_column
|
182
184
|
- change_column_comment
|
183
185
|
- change_column_null
|
186
|
+
- change_table
|
184
187
|
- change_table_comment
|
185
188
|
- class_attribute
|
186
189
|
- create_table
|
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.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Authors
|
8
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
|
@@ -108,6 +108,20 @@ 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
126
|
email:
|
113
127
|
executables:
|
@@ -116,6 +130,7 @@ 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
|
@@ -160,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
175
|
- !ruby/object:Gem::Version
|
161
176
|
version: '0'
|
162
177
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
178
|
+
rubygems_version: 3.3.5
|
164
179
|
signing_key:
|
165
180
|
specification_version: 4
|
166
181
|
summary: Style and linting configuration for ManageIQ projects.
|