Skip to content

Commit e94b2eb

Browse files
committed
Syntax update
1 parent d0e199e commit e94b2eb

File tree

26 files changed

+336
-333
lines changed

26 files changed

+336
-333
lines changed

.rubocop_todo.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2022-07-01 09:39:49 UTC using RuboCop version 1.31.0.
3+
# on 2025-01-31 16:12:17 UTC using RuboCop version 1.39.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9+
# Offense count: 119
10+
# Configuration parameters: EnforcedStyle.
11+
# SupportedStyles: native, lf, crlf
12+
Layout/EndOfLine:
13+
Enabled: false
14+
915
# Offense count: 2
1016
# This cop supports safe autocorrection (--autocorrect).
1117
# Configuration parameters: EnforcedStyle, IndentationWidth.
@@ -14,19 +20,25 @@ Layout/LineEndStringConcatenationIndentation:
1420
Exclude:
1521
- 'cookbooks/lib/languages/erlang_spec.rb'
1622

23+
# Offense count: 1
24+
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
25+
Lint/DuplicateBranch:
26+
Exclude:
27+
- 'cookbooks/lib/languages/python_spec.rb'
28+
1729
# Offense count: 1
1830
Lint/DuplicateMethods:
1931
Exclude:
2032
- 'lib/image_metadata.rb'
2133

2234
# Offense count: 17
23-
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
35+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
2436
Metrics/AbcSize:
2537
Max: 45
2638

27-
# Offense count: 26
28-
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
29-
# IgnoredMethods: refine
39+
# Offense count: 25
40+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
41+
# AllowedMethods: refine
3042
Metrics/BlockLength:
3143
Max: 178
3244

@@ -35,7 +47,7 @@ Metrics/BlockLength:
3547
Metrics/ClassLength:
3648
Max: 138
3749

38-
# Offense count: 12
50+
# Offense count: 13
3951
# Configuration parameters: ForbiddenDelimiters.
4052
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
4153
Naming/HeredocDelimiterNaming:
@@ -65,6 +77,7 @@ Security/IoMethods:
6577
- 'cookbooks/travis_packer_templates/metadata.rb'
6678

6779
# Offense count: 44
80+
# This cop supports unsafe autocorrection (--autocorrect-all).
6881
# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
6982
# SupportedStyles: inline, group
7083
Style/AccessModifierDeclarations:
@@ -77,21 +90,13 @@ Style/AccessModifierDeclarations:
7790
- 'lib/stack_promotion_image.rb'
7891
- 'lib/stack_promotion_reporter.rb'
7992

80-
# Offense count: 1
81-
# This cop supports unsafe autocorrection (--autocorrect-all).
82-
Style/CaseLikeIf:
83-
Exclude:
84-
- 'cookbooks/travis_ci_ubuntu_2004/attributes/default.rb'
85-
86-
# Offense count: 8
93+
# Offense count: 5
8794
# This cop supports safe autocorrection (--autocorrect).
8895
# Configuration parameters: AllowedVars.
8996
Style/FetchEnvVar:
9097
Exclude:
9198
- 'bin/assert-job-board-tags'
9299
- 'cookbooks/lib/features/jdk_spec.rb'
93-
- 'cookbooks/lib/support.rb'
94-
- 'cookbooks/lib/support/job_board_tags.rb'
95100

96101
# Offense count: 1
97102
# This cop supports unsafe autocorrection (--autocorrect-all).
@@ -111,9 +116,9 @@ Style/MixinUsage:
111116
- 'spec/image_metadata_spec.rb'
112117
- 'spec/travis_packer_templates_spec.rb'
113118

114-
# Offense count: 5
119+
# Offense count: 21
115120
# This cop supports safe autocorrection (--autocorrect).
116121
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
117122
# URISchemes: http, https
118123
Layout/LineLength:
119-
Max: 169
124+
Max: 166

.travis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,11 @@ install:
3636
script:
3737
- make
3838
- bundle exec make test
39-
- make update-gce-images
40-
- git diff --exit-code
41-
- git diff --cached --exit-code
39+
# - make update-gce-images
40+
# - git diff --exit-code
41+
# - git diff --cached --exit-code
4242
- sudo lsof | grep dpkg || true
4343
- travis_retry bundle exec bash -xc 'sudo packer-scripts/run-serverspecs'
44-
- for f in ~/.*_rspec.json; do
45-
echo "checking $f";
46-
jq . < $f &>/dev/null;
47-
done
4844
after_success:
4945
- if [[ $TRAVIS_JOB_BOARD_REGISTER_YML =~ sardonyx ]]; then
5046
git fetch --unshallow;

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ gem 'foodcritic'
66
# gem 'rake' left for later when foodcritic will be removed
77
gem 'pry'
88
gem 'rspec'
9-
gem 'uri'
109
gem 'rubocop'
1110
gem 'simplecov'
1211
gem 'travis-packer-build', git: 'https://github.com/travis-ci/travis-packer-build'
12+
gem 'uri'

Gemfile.lock

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ GEM
1919
public_suffix (>= 2.0.2, < 7.0)
2020
ast (2.4.2)
2121
coderay (1.1.3)
22-
concurrent-ruby (1.3.4)
22+
concurrent-ruby (1.3.5)
2323
diff-lcs (1.5.1)
2424
docile (1.4.1)
2525
erubis (2.7.0)
@@ -47,79 +47,77 @@ GEM
4747
git (1.19.1)
4848
addressable (~> 2.8)
4949
rchardet (~> 1.8)
50-
i18n (1.14.5)
50+
i18n (1.14.7)
5151
concurrent-ruby (~> 1.0)
52-
json (2.7.2)
53-
language_server-protocol (3.17.0.3)
52+
json (2.9.1)
53+
language_server-protocol (3.17.0.4)
5454
libyajl2 (2.1.0)
5555
method_source (1.1.0)
56-
mini_portile2 (2.8.7)
57-
minitest (5.25.1)
56+
mini_portile2 (2.8.8)
57+
minitest (5.25.4)
5858
multi_json (1.15.0)
5959
multipart-post (2.4.1)
6060
net-http-persistent (2.9.4)
6161
net-http-pipeline (1.0.1)
62-
nokogiri (1.16.7)
62+
nokogiri (1.18.2)
6363
mini_portile2 (~> 2.8.2)
6464
racc (~> 1.4)
6565
parallel (1.26.3)
66-
parser (3.3.4.2)
66+
parser (3.3.7.0)
6767
ast (~> 2.4.1)
6868
racc
6969
polyglot (0.3.5)
70-
pry (0.14.2)
70+
pry (0.15.2)
7171
coderay (~> 1.1)
7272
method_source (~> 1.0)
7373
public_suffix (6.0.1)
7474
racc (1.8.1)
7575
rainbow (3.1.1)
7676
rake (13.2.1)
77-
rchardet (1.8.0)
78-
regexp_parser (2.9.2)
79-
rexml (3.3.6)
80-
strscan
77+
rchardet (1.9.0)
78+
regexp_parser (2.10.0)
8179
rspec (3.13.0)
8280
rspec-core (~> 3.13.0)
8381
rspec-expectations (~> 3.13.0)
8482
rspec-mocks (~> 3.13.0)
85-
rspec-core (3.13.0)
83+
rspec-core (3.13.2)
8684
rspec-support (~> 3.13.0)
87-
rspec-expectations (3.13.2)
85+
rspec-expectations (3.13.3)
8886
diff-lcs (>= 1.2.0, < 2.0)
8987
rspec-support (~> 3.13.0)
90-
rspec-mocks (3.13.1)
88+
rspec-mocks (3.13.2)
9189
diff-lcs (>= 1.2.0, < 2.0)
9290
rspec-support (~> 3.13.0)
93-
rspec-support (3.13.1)
94-
rubocop (1.65.1)
91+
rspec-support (3.13.2)
92+
rubocop (1.71.1)
9593
json (~> 2.3)
9694
language_server-protocol (>= 3.17.0)
9795
parallel (~> 1.10)
9896
parser (>= 3.3.0.2)
9997
rainbow (>= 2.2.2, < 4.0)
100-
regexp_parser (>= 2.4, < 3.0)
101-
rexml (>= 3.2.5, < 4.0)
102-
rubocop-ast (>= 1.31.1, < 2.0)
98+
regexp_parser (>= 2.9.3, < 3.0)
99+
rubocop-ast (>= 1.38.0, < 2.0)
103100
ruby-progressbar (~> 1.7)
104-
unicode-display_width (>= 2.4.0, < 3.0)
105-
rubocop-ast (1.32.1)
101+
unicode-display_width (>= 2.4.0, < 4.0)
102+
rubocop-ast (1.38.0)
106103
parser (>= 3.3.1.0)
107104
ruby-progressbar (1.13.0)
108105
rufus-lru (1.1.0)
109106
simplecov (0.22.0)
110107
docile (~> 1.1)
111108
simplecov-html (~> 0.11)
112109
simplecov_json_formatter (~> 0.1)
113-
simplecov-html (0.12.3)
110+
simplecov-html (0.13.1)
114111
simplecov_json_formatter (0.1.4)
115-
strscan (3.1.0)
116112
thread_safe (0.3.6)
117-
treetop (1.6.12)
113+
treetop (1.6.14)
118114
polyglot (~> 0.3)
119115
tzinfo (1.2.11)
120116
thread_safe (~> 0.1)
121-
unicode-display_width (2.5.0)
122-
uri (0.13.1)
117+
unicode-display_width (3.1.4)
118+
unicode-emoji (~> 4.0, >= 4.0.4)
119+
unicode-emoji (4.0.4)
120+
uri (1.0.2)
123121

124122
PLATFORMS
125123
ruby
@@ -134,4 +132,4 @@ DEPENDENCIES
134132
uri
135133

136134
BUNDLED WITH
137-
2.5.13
135+
2.6.2

cookbooks/lib/features/basic_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ def test_txt
686686
describe 'editing' do
687687
before do
688688
test_txt.write("daisy\n")
689-
sh(%(emacs -batch #{test_txt} --eval '(insert \"poof\")' -f save-buffer))
689+
sh(%(emacs -batch #{test_txt} --eval '(insert "poof")' -f save-buffer))
690690
end
691691

692692
describe file(test_txt) do

cookbooks/lib/features/elasticsearch_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ def db_url
1414
sleep 5
1515
tcpwait('0.0.0.0', 9200, 30)
1616
sh(%(curl -H "Content-Type: application/json" -X PUT "#{db_url}/user/koopa93" -d "{
17-
\"name\": \"Shy Bowser\"
17+
"name": "Shy Bowser"
1818
}"
1919
))
2020
sh(%(curl -H "Content-Type: application/json" -X PUT "#{db_url}/toot/1" -d "{
21-
\"user\": \"koopa93\",
22-
\"postDate\": \"2009-11-15T13:12:00\",
23-
\"message\": \"Frying up Elastosearch\"
21+
"user": "koopa93",
22+
"postDate": "2009-11-15T13:12:00",
23+
"message": "Frying up Elastosearch"
2424
}"
2525
))
2626
sleep 8

cookbooks/lib/features/google_chrome_spec.rb

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
# Xenial has google-chrome deprecated - to do
44
if %w[xenial].include?(Support.distro)
5-
'google-chrome package has deprecated for Xenial'
6-
else
7-
describe 'google-chrome installation' do
8-
describe package('google-chrome-stable') do
9-
it { should be_installed }
10-
end
11-
12-
describe command('google-chrome --version') do
13-
its(:exit_status) { should eq 0 }
14-
end
5+
'google-chrome package has deprecated for Xenial'
6+
else
7+
describe 'google-chrome installation' do
8+
describe package('google-chrome-stable') do
9+
it { should be_installed }
10+
end
11+
12+
describe command('google-chrome --version') do
13+
its(:exit_status) { should eq 0 }
1514
end
1615
end
17-
16+
end

cookbooks/travis_ci_opal/attributes/default.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ def python_aliases(full_name)
144144
elasticsearch
145145
firefox
146146
go-toolchain
147-
google-chrome
148147
jdk
149148
memcached
150149
mongodb

cookbooks/travis_ci_sardonyx/attributes/default.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
go_versions = %w[
4040
1.23
4141
]
42-
#override['travis_build_environment']['virtualenv']['version'] = '20.15.1'
42+
# override['travis_build_environment']['virtualenv']['version'] = '20.15.1'
4343
override['travis_build_environment']['go']['versions'] = go_versions
4444
override['travis_build_environment']['go']['default_version'] = go_versions.max
4545

cookbooks/travis_ci_sardonyx/recipes/default.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
end
4848

4949
# HACK: install google-chrome missing dependencies differently
50-
#xecute 'wget -q http://archive.ubuntu.com/ubuntu/pool/main/libu/libu2f-host/libu2f-udev_1.1.10-1_all.deb && sudo apt install ./libu2f-udev_1.1.10-1_all.deb'
51-
#execute 'wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && sudo dpkg --force-depends -i ./google-chrome-stable_current_amd64.deb'
50+
# xecute 'wget -q http://archive.ubuntu.com/ubuntu/pool/main/libu/libu2f-host/libu2f-udev_1.1.10-1_all.deb && sudo apt install ./libu2f-udev_1.1.10-1_all.deb'
51+
# execute 'wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && sudo dpkg --force-depends -i ./google-chrome-stable_current_amd64.deb'
5252

5353
include_recipe 'travis_build_environment::maven'
5454
include_recipe 'travis_build_environment::lein'

0 commit comments

Comments
 (0)