rubocop-itamae 0.1.0.alpha2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +109 -0
- data/.rubocop.yml +12 -5
- data/CHANGELOG.md +27 -1
- data/README.md +2 -4
- data/lib/rubocop/cop/itamae/cd_in_execute.rb +6 -8
- data/lib/rubocop/cop/itamae/command_equals_to_name.rb +13 -12
- data/lib/rubocop/cop/itamae/needless_default_action.rb +19 -22
- data/lib/rubocop/cop/itamae/recipe_path.rb +8 -9
- data/lib/rubocop/itamae/version.rb +1 -1
- data/rubocop-itamae.gemspec +6 -5
- data/tasks/new_cop.rake +1 -1
- metadata +29 -44
- data/.travis.yml +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0545cb256f4f5641e6587cf42e66b4a86593ee93309b6427d82aae32144d5ff
|
4
|
+
data.tar.gz: 05addbf3baaac6c8c6746a2357754533daddec4e4bb01db38208abd8fbc377a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a573df0167945879e173318f7c6e305bc31864a36fa269bf98792e09f29add35cb24bfe73ebc1d766db0436e0b148c6cb6f3a0819ddac984967f414cd65c17a2
|
7
|
+
data.tar.gz: a643297e792c09258e0855686c7ed071492c2a1e51a8730ae68fc9cb2f1ff2c29483c192f4879baeb05d6f4a5b27f5d164a2cd4dd695f7c040eec144148c47b1
|
@@ -0,0 +1,109 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
types:
|
9
|
+
- opened
|
10
|
+
- synchronize
|
11
|
+
- reopened
|
12
|
+
schedule:
|
13
|
+
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
14
|
+
|
15
|
+
env:
|
16
|
+
CI: "true"
|
17
|
+
|
18
|
+
jobs:
|
19
|
+
test:
|
20
|
+
runs-on: ubuntu-latest
|
21
|
+
|
22
|
+
container: ${{ matrix.ruby }}
|
23
|
+
|
24
|
+
strategy:
|
25
|
+
fail-fast: false
|
26
|
+
|
27
|
+
matrix:
|
28
|
+
ruby:
|
29
|
+
- ruby:2.5
|
30
|
+
- ruby:2.6
|
31
|
+
- ruby:2.7
|
32
|
+
- ruby:3.0
|
33
|
+
- rubylang/ruby:master-nightly-bionic
|
34
|
+
include:
|
35
|
+
- ruby: rubylang/ruby:master-nightly-bionic
|
36
|
+
allow_failures: "true"
|
37
|
+
|
38
|
+
steps:
|
39
|
+
- uses: actions/checkout@v2
|
40
|
+
|
41
|
+
|
42
|
+
- name: Cache vendor/bundle
|
43
|
+
uses: actions/cache@v1
|
44
|
+
id: cache_gem
|
45
|
+
with:
|
46
|
+
path: vendor/bundle
|
47
|
+
key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
|
48
|
+
restore-keys: |
|
49
|
+
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
50
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
51
|
+
|
52
|
+
- name: bundle update
|
53
|
+
run: |
|
54
|
+
set -xe
|
55
|
+
bundle config path vendor/bundle
|
56
|
+
bundle update --jobs $(nproc) --retry 3
|
57
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
58
|
+
|
59
|
+
- name: Setup Code Climate Test Reporter
|
60
|
+
uses: aktions/codeclimate-test-reporter@v1
|
61
|
+
with:
|
62
|
+
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
63
|
+
command: before-build
|
64
|
+
if: matrix.ruby >= 'ruby:2.4'
|
65
|
+
continue-on-error: true
|
66
|
+
|
67
|
+
- name: Run test
|
68
|
+
run: |
|
69
|
+
set -xe
|
70
|
+
bundle exec rspec
|
71
|
+
bundle exec rubocop -P
|
72
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
73
|
+
|
74
|
+
- name: Teardown Code Climate Test Reporter
|
75
|
+
uses: aktions/codeclimate-test-reporter@v1
|
76
|
+
with:
|
77
|
+
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
78
|
+
command: after-build
|
79
|
+
if: matrix.ruby >= 'ruby:2.4' && always()
|
80
|
+
continue-on-error: true
|
81
|
+
|
82
|
+
- name: Slack Notification (not success)
|
83
|
+
uses: lazy-actions/slatify@master
|
84
|
+
if: "! success()"
|
85
|
+
continue-on-error: true
|
86
|
+
with:
|
87
|
+
job_name: ${{ format('*build* ({0})', matrix.ruby) }}
|
88
|
+
type: ${{ job.status }}
|
89
|
+
icon_emoji: ":octocat:"
|
90
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
91
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
92
|
+
|
93
|
+
notify:
|
94
|
+
needs:
|
95
|
+
- test
|
96
|
+
|
97
|
+
runs-on: ubuntu-latest
|
98
|
+
|
99
|
+
steps:
|
100
|
+
- name: Slack Notification (success)
|
101
|
+
uses: lazy-actions/slatify@master
|
102
|
+
if: always()
|
103
|
+
continue-on-error: true
|
104
|
+
with:
|
105
|
+
job_name: '*build*'
|
106
|
+
type: ${{ job.status }}
|
107
|
+
icon_emoji: ":octocat:"
|
108
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
109
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
data/.rubocop.yml
CHANGED
@@ -1,15 +1,22 @@
|
|
1
1
|
AllCops:
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
NewCops: enable
|
3
|
+
SuggestExtensions: false
|
4
|
+
|
5
|
+
# rubocop 1.13.0+ requires ruby 2.5+
|
6
|
+
TargetRubyVersion: 2.5
|
7
|
+
|
8
|
+
Layout/LineLength:
|
9
|
+
Exclude:
|
10
|
+
- "spec/spec_helper.rb"
|
5
11
|
|
6
12
|
Metrics/BlockLength:
|
7
13
|
Exclude:
|
8
14
|
- "spec/**/*.rb"
|
9
15
|
|
10
|
-
|
16
|
+
Naming/FileName:
|
11
17
|
Exclude:
|
12
|
-
- "
|
18
|
+
- "lib/rubocop-itamae.rb"
|
19
|
+
- "rubocop-itamae.gemspec"
|
13
20
|
|
14
21
|
Style/HashSyntax:
|
15
22
|
Exclude:
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,31 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.
|
2
|
+
[full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.4...master)
|
3
|
+
|
4
|
+
## v0.1.4
|
5
|
+
[full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.3...v0.1.4)
|
6
|
+
|
7
|
+
* Requires rubocop 1.13.0+ and drop ruby 2.4
|
8
|
+
* https://github.com/sue445/rubocop-itamae/pull/51
|
9
|
+
|
10
|
+
## v0.1.3
|
11
|
+
[full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.2...v0.1.3)
|
12
|
+
|
13
|
+
* Fixed. failed spec since rubocop v0.87.0
|
14
|
+
* https://github.com/sue445/rubocop-itamae/pull/47
|
15
|
+
* Migrate to rubocop v1 syntax
|
16
|
+
* https://github.com/sue445/rubocop-itamae/pull/46
|
17
|
+
|
18
|
+
## v0.1.2
|
19
|
+
[full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.1...v0.1.2)
|
20
|
+
|
21
|
+
* Upgrade rubocop and drop ruby 2.3
|
22
|
+
* https://github.com/sue445/rubocop-itamae/pull/43
|
23
|
+
|
24
|
+
## v0.1.1
|
25
|
+
[full changelog](http://github.com/sue445/rubocop-itamae/compare/v0.1.0...v0.1.1)
|
26
|
+
|
27
|
+
* Fix can't load `RangeHelp` error
|
28
|
+
* https://github.com/sue445/rubocop-itamae/pull/16
|
3
29
|
|
4
30
|
## v0.1.0
|
5
31
|
* first release
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Code style checking for [itamae](https://github.com/itamae-kitchen/itamae) recipes
|
4
4
|
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/rubocop-itamae.svg)](https://badge.fury.io/rb/rubocop-itamae)
|
6
|
-
[![Build Status](https://
|
6
|
+
[![Build Status](https://github.com/sue445/rubocop-itamae/workflows/test/badge.svg?branch=master)](https://github.com/sue445/rubocop-itamae/actions?query=workflow%3Atest)
|
7
7
|
[![Coverage Status](https://coveralls.io/repos/github/sue445/rubocop-itamae/badge.svg?branch=master)](https://coveralls.io/github/sue445/rubocop-itamae?branch=master)
|
8
8
|
[![Maintainability](https://api.codeclimate.com/v1/badges/bf2f4b2cbf9c2cfc0e92/maintainability)](https://codeclimate.com/github/sue445/rubocop-itamae/maintainability)
|
9
9
|
|
@@ -27,9 +27,7 @@ Or install it yourself as:
|
|
27
27
|
Add this line to your application's `.rubocop.yml`
|
28
28
|
|
29
29
|
```yml
|
30
|
-
|
31
|
-
rubocop-itamae:
|
32
|
-
- config/default.yml
|
30
|
+
require: rubocop-itamae
|
33
31
|
```
|
34
32
|
|
35
33
|
## Development
|
@@ -13,8 +13,8 @@ module RuboCop
|
|
13
13
|
# execute 'rm -rf /tmp/*' do
|
14
14
|
# cwd '/tmp'
|
15
15
|
# end
|
16
|
-
class CdInExecute <
|
17
|
-
MSG = "Insert `cwd '%<dir>s'` and remove this."
|
16
|
+
class CdInExecute < Base
|
17
|
+
MSG = "Insert `cwd '%<dir>s'` and remove this."
|
18
18
|
|
19
19
|
def_node_search :find_execute_with_block, <<-PATTERN
|
20
20
|
(block
|
@@ -51,14 +51,13 @@ module RuboCop
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def on_send(node)
|
54
|
-
return if node.parent
|
54
|
+
return if node.parent&.block_type?
|
55
55
|
|
56
56
|
find_execute_without_block(node) do |name|
|
57
57
|
add_offense_for_execute_name(node, name)
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
-
# rubocop:disable Metrics/LineLength
|
62
61
|
# def autocorrect(node)
|
63
62
|
# if node.block_type?
|
64
63
|
# lambda do |corrector|
|
@@ -103,7 +102,6 @@ module RuboCop
|
|
103
102
|
# end
|
104
103
|
# end
|
105
104
|
# end
|
106
|
-
# rubocop:enable Metrics/LineLength
|
107
105
|
|
108
106
|
private
|
109
107
|
|
@@ -112,7 +110,7 @@ module RuboCop
|
|
112
110
|
return unless dir
|
113
111
|
|
114
112
|
loc = cd_location(node.child_nodes.first, name)
|
115
|
-
add_offense(
|
113
|
+
add_offense(loc, message: format(MSG, dir: dir))
|
116
114
|
end
|
117
115
|
|
118
116
|
def add_offence_for_execute_block_name(node, name)
|
@@ -120,7 +118,7 @@ module RuboCop
|
|
120
118
|
return unless dir
|
121
119
|
|
122
120
|
loc = cd_location(node.child_nodes.first.child_nodes.first, name)
|
123
|
-
add_offense(
|
121
|
+
add_offense(loc, message: format(MSG, dir: dir))
|
124
122
|
end
|
125
123
|
|
126
124
|
def add_offense_for_command_param(param_node, command)
|
@@ -135,7 +133,7 @@ module RuboCop
|
|
135
133
|
end
|
136
134
|
|
137
135
|
loc = cd_location(command_node, command)
|
138
|
-
add_offense(
|
136
|
+
add_offense(loc, message: format(MSG, dir: dir))
|
139
137
|
end
|
140
138
|
|
141
139
|
def cd_dir_in_command(command)
|
@@ -17,11 +17,12 @@ module RuboCop
|
|
17
17
|
# execute 'Remove temporary files' do
|
18
18
|
# command 'rm -rf /tmp/*'
|
19
19
|
# end
|
20
|
-
class CommandEqualsToName <
|
20
|
+
class CommandEqualsToName < Base
|
21
21
|
include RangeHelp
|
22
|
+
extend AutoCorrector
|
22
23
|
|
23
24
|
MSG = 'Prefer to omit `command` if `command` equals to ' \
|
24
|
-
'name of `execute`'
|
25
|
+
'name of `execute`'
|
25
26
|
|
26
27
|
def_node_search :find_execute, <<-PATTERN
|
27
28
|
(block
|
@@ -45,27 +46,27 @@ module RuboCop
|
|
45
46
|
find_command(param_node) do |command|
|
46
47
|
next unless name == command
|
47
48
|
|
48
|
-
|
49
|
+
add_param_node_offense(param_node)
|
49
50
|
end
|
50
51
|
end
|
51
52
|
end
|
52
53
|
end
|
53
54
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
private
|
56
|
+
|
57
|
+
def add_param_node_offense(param_node)
|
58
|
+
add_offense(param_node.loc.expression) do |corrector|
|
59
|
+
if param_node.begin_type?
|
60
|
+
param_node.each_child_node do |child_param_node|
|
61
|
+
remove_command_param(corrector, param_node.parent, child_param_node)
|
59
62
|
end
|
60
63
|
|
61
|
-
elsif
|
62
|
-
remove_command_param(corrector,
|
64
|
+
elsif param_node.send_type?
|
65
|
+
remove_command_param(corrector, param_node.parent, param_node)
|
63
66
|
end
|
64
67
|
end
|
65
68
|
end
|
66
69
|
|
67
|
-
private
|
68
|
-
|
69
70
|
def remove_command_param(corrector, parent_node, param_node)
|
70
71
|
find_execute(parent_node) do |name|
|
71
72
|
find_command(param_node) do |command|
|
@@ -17,27 +17,28 @@ module RuboCop
|
|
17
17
|
#
|
18
18
|
# package 'git'
|
19
19
|
#
|
20
|
-
class NeedlessDefaultAction <
|
20
|
+
class NeedlessDefaultAction < Base
|
21
21
|
include RangeHelp
|
22
|
+
extend AutoCorrector
|
22
23
|
|
23
|
-
MSG = 'Prefer to omit the default action.'
|
24
|
+
MSG = 'Prefer to omit the default action.'
|
24
25
|
|
25
26
|
RESOURCE_DEFAULT_ACTIONS = {
|
26
|
-
directory:
|
27
|
-
execute:
|
28
|
-
file:
|
29
|
-
gem_package:
|
30
|
-
git:
|
31
|
-
group:
|
32
|
-
http_request:
|
33
|
-
link:
|
27
|
+
directory: :create,
|
28
|
+
execute: :run,
|
29
|
+
file: :create,
|
30
|
+
gem_package: :install,
|
31
|
+
git: :sync,
|
32
|
+
group: :create,
|
33
|
+
http_request: :create,
|
34
|
+
link: :create,
|
34
35
|
local_ruby_block: :run,
|
35
|
-
package:
|
36
|
+
package: :install,
|
36
37
|
remote_directory: :create,
|
37
|
-
remote_file:
|
38
|
-
service:
|
39
|
-
template:
|
40
|
-
user:
|
38
|
+
remote_file: :create,
|
39
|
+
service: :nothing,
|
40
|
+
template: :create,
|
41
|
+
user: :create
|
41
42
|
}.freeze
|
42
43
|
|
43
44
|
def_node_search :find_resource, <<-PATTERN
|
@@ -62,18 +63,14 @@ module RuboCop
|
|
62
63
|
find_action(param_node) do |action|
|
63
64
|
next unless action == RESOURCE_DEFAULT_ACTIONS[resource]
|
64
65
|
|
65
|
-
add_offense(param_node
|
66
|
+
add_offense(param_node.loc.expression) do |corrector|
|
67
|
+
remove_action_param(corrector, param_node.parent, param_node) if param_node.send_type?
|
68
|
+
end
|
66
69
|
end
|
67
70
|
end
|
68
71
|
end
|
69
72
|
end
|
70
73
|
|
71
|
-
def autocorrect(node)
|
72
|
-
lambda do |corrector|
|
73
|
-
remove_action_param(corrector, node.parent, node) if node.send_type?
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
74
|
private
|
78
75
|
|
79
76
|
def remove_action_param(corrector, parent_node, param_node)
|
@@ -6,6 +6,8 @@ module RuboCop
|
|
6
6
|
# Checks whether the recipe is placed under `cookbooks` dir
|
7
7
|
# or `roles` dir.
|
8
8
|
#
|
9
|
+
# @see https://github.com/itamae-kitchen/itamae/wiki/Best-Practice#directory-structure
|
10
|
+
#
|
9
11
|
# @example
|
10
12
|
# # bad
|
11
13
|
# default.rb
|
@@ -15,28 +17,25 @@ module RuboCop
|
|
15
17
|
# cookbooks/nginx/default.rb
|
16
18
|
# roles/web.rb
|
17
19
|
#
|
18
|
-
class RecipePath <
|
20
|
+
class RecipePath < Base
|
19
21
|
include RangeHelp
|
20
22
|
|
21
23
|
MSG = 'Prefer recipe to placed under `cookbooks` dir' \
|
22
|
-
' or `roles` dir.'
|
24
|
+
' or `roles` dir.'
|
23
25
|
|
24
|
-
def
|
26
|
+
def on_new_investigation
|
25
27
|
file_path = processed_source.file_path
|
26
28
|
return if config.file_to_include?(file_path)
|
27
29
|
|
28
|
-
|
29
|
-
add_offense(nil, location: range, message: msg)
|
30
|
-
end
|
30
|
+
add_global_offense if bad_filename?(file_path)
|
31
31
|
end
|
32
32
|
|
33
33
|
private
|
34
34
|
|
35
|
-
def
|
35
|
+
def bad_filename?(file_path)
|
36
36
|
return unless File.extname(file_path) == '.rb'
|
37
|
-
return if file_path =~ %r{/(cookbooks|roles)/}
|
38
37
|
|
39
|
-
|
38
|
+
!file_path.match?(%r{/(cookbooks|roles)/})
|
40
39
|
end
|
41
40
|
end
|
42
41
|
end
|
data/rubocop-itamae.gemspec
CHANGED
@@ -22,14 +22,15 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.
|
25
|
+
spec.required_ruby_version = '>= 2.5.0'
|
26
26
|
|
27
|
-
spec.
|
28
|
-
|
27
|
+
spec.add_dependency 'rubocop', '>= 1.13.0'
|
28
|
+
|
29
|
+
spec.add_development_dependency 'bundler', '>= 1.16'
|
29
30
|
spec.add_development_dependency 'coveralls'
|
30
|
-
spec.add_development_dependency 'pry-byebug'
|
31
31
|
spec.add_development_dependency 'rake', '>= 11.0'
|
32
32
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
33
|
-
spec.add_development_dependency '
|
33
|
+
spec.add_development_dependency 'rubocop_auto_corrector'
|
34
|
+
spec.add_development_dependency 'simplecov', '< 0.18.0'
|
34
35
|
spec.add_development_dependency 'yard'
|
35
36
|
end
|
data/tasks/new_cop.rake
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-itamae
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,42 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.13.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.13.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.16'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.16'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: codeclimate-test-reporter
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 1.0.0
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.0.0
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: coveralls
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,20 +52,6 @@ dependencies:
|
|
66
52
|
- - ">="
|
67
53
|
- !ruby/object:Gem::Version
|
68
54
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: pry-byebug
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
55
|
- !ruby/object:Gem::Dependency
|
84
56
|
name: rake
|
85
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +81,7 @@ dependencies:
|
|
109
81
|
- !ruby/object:Gem::Version
|
110
82
|
version: '3.0'
|
111
83
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
84
|
+
name: rubocop_auto_corrector
|
113
85
|
requirement: !ruby/object:Gem::Requirement
|
114
86
|
requirements:
|
115
87
|
- - ">="
|
@@ -122,6 +94,20 @@ dependencies:
|
|
122
94
|
- - ">="
|
123
95
|
- !ruby/object:Gem::Version
|
124
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "<"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.18.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "<"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.18.0
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: yard
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,10 +130,10 @@ extensions: []
|
|
144
130
|
extra_rdoc_files: []
|
145
131
|
files:
|
146
132
|
- ".coveralls.yml"
|
133
|
+
- ".github/workflows/test.yml"
|
147
134
|
- ".gitignore"
|
148
135
|
- ".rspec"
|
149
136
|
- ".rubocop.yml"
|
150
|
-
- ".travis.yml"
|
151
137
|
- ".yardopts"
|
152
138
|
- CHANGELOG.md
|
153
139
|
- Gemfile
|
@@ -171,7 +157,7 @@ homepage: https://github.com/sue445/rubocop-itamae
|
|
171
157
|
licenses:
|
172
158
|
- MIT
|
173
159
|
metadata: {}
|
174
|
-
post_install_message:
|
160
|
+
post_install_message:
|
175
161
|
rdoc_options: []
|
176
162
|
require_paths:
|
177
163
|
- lib
|
@@ -179,16 +165,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
165
|
requirements:
|
180
166
|
- - ">="
|
181
167
|
- !ruby/object:Gem::Version
|
182
|
-
version:
|
168
|
+
version: 2.5.0
|
183
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
170
|
requirements:
|
185
|
-
- - "
|
171
|
+
- - ">="
|
186
172
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
173
|
+
version: '0'
|
188
174
|
requirements: []
|
189
|
-
|
190
|
-
|
191
|
-
signing_key:
|
175
|
+
rubygems_version: 3.2.3
|
176
|
+
signing_key:
|
192
177
|
specification_version: 4
|
193
178
|
summary: Code style checking for itamae recipes
|
194
179
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.2
|
5
|
-
- 2.3
|
6
|
-
- 2.4
|
7
|
-
- 2.5
|
8
|
-
- ruby-head
|
9
|
-
bundler_args: "--jobs=4"
|
10
|
-
cache: bundler
|
11
|
-
before_install:
|
12
|
-
- gem update --system --no-document
|
13
|
-
- gem install bundler --no-document
|
14
|
-
before_script:
|
15
|
-
- export CODECLIMATE_REPO_TOKEN=7e9993b9f657bb33552e76a7b9c8292541cf9a5d8d6811f585f6cfbc0785c820
|
16
|
-
before_script:
|
17
|
-
script:
|
18
|
-
- bundle exec rspec
|
19
|
-
- bundle exec codeclimate-test-reporter
|
20
|
-
- bundle exec rubocop
|
21
|
-
branches:
|
22
|
-
only:
|
23
|
-
- master
|
24
|
-
notifications:
|
25
|
-
email: false
|
26
|
-
slack:
|
27
|
-
secure: eKV6s6mQEb3T9qeatHvUMvAQPVOn+hjvdPl+v+1RYQaC/kgTMpLkCwRPokrDYiK51/HgMSH1cPGVl6QfoqaJvdHKdZtuAmikVeqhygablFPdLYuseMTHTr9zT9MOoEzSbyzO9tUTL3jIHeLIrXdBhVJ/YCw/9uWIlA10iFDE0KZ8WiPIIAJ34GORnzIqIASHY5zGKhiIqer1xeNecXXhTBcnUYzOhN7qBYCRl0yYL11NIy7xh50DLcKSYYAIUr6oBYOI6QeSe/0cZGOGst0JfHE5jQvT/3O6wMK2lGnrXovXuL4JIbFT6bODo9XyzSSkyy/P1wqPe8hpY7Thh4qyt1r+tRdO8oBdkxdzQTopRgemyc3wOa/5mE7keEXJh8V1TPCi4yfa/rfXxLSXmXYGXa3q8TBwDkxmWFd1Ej2KV3e3c1AVVqp7cqflq12HH6v2XHPXHyX6zZszOKpDjELCc2SZ49jx+D1tg15YHJ+Q8FIyUVAvyjD1bW7z+v8fsXqViyhwrue11jVsdpfSy0ZaXwtiSC7RyUwX7u/TdnHbMKRaGNQ9GHyqfirT+f7tcnHxGqBIpR5oqnnFnNEfVTxm+k1YmX4VY5q2kVn0jT8GDyRygUHAhFMOxGg2g85/sFxSx1bJD9pRUDTX3cHgxMhmEj7z0aI7gfEZW+NrqJO5AX8=
|
28
|
-
matrix:
|
29
|
-
allow_failures:
|
30
|
-
- rvm: ruby-head
|