++ dirname ./run.sh
+ cd .
+ echo 1276
+ echo '2.0-SNAPSHOT BUILD'
2.0-SNAPSHOT BUILD
+ date
Sat May 9 01:55:20 UTC 2026
+ uptime
01:55:20 up 0 min, 0 users, load average: 1.20, 0.34, 0.12
+ head=git@github.com:yegor256/rubocop-elegant.git
+ ff=default
+ image=yegor256/ruby
+ rebase=false
+ squash=false
+ head_branch=master
+ author=yegor256
+ tag=0.3.0
+ vars=('--env=head=git@github.com:yegor256/rubocop-elegant.git' '--env=tag=0.3.0' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/rubocop-elegant.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.3.0'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd -f /dev/null'\'' '\'';'\'' '\''bundle install --no-color'\'' '\'';'\'' '\''[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' '\''rm -rf *.gem'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" rubocop-elegant.gemspec'\'' '\'';'\'' '\''git add rubocop-elegant.gemspec'\'' '\'';'\'' '\''git commit -m "Version set to ${tag}"'\'' '\'';'\'' '\''gem build rubocop-elegant.gemspec'\'' '\'';'\'' '\''chmod 0600 ../rubygems.yml'\'' '\'';'\'' '\''gem push *.gem --config-file ../rubygems.yml'\'' '\'';'\'' )' '--env=head_branch=master' '--env=author=yegor256')
+ scripts=('export '\''head=git@github.com:yegor256/rubocop-elegant.git'\''' ';' 'export '\''tag=0.3.0'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'pdd -f /dev/null' ';' 'bundle install --no-color' ';' '[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1' ';' 'bundle exec rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/0\.0\.0/${tag}/g" rubocop-elegant.gemspec' ';' 'git add rubocop-elegant.gemspec' ';' 'git commit -m "Version set to ${tag}"' ';' 'gem build rubocop-elegant.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';')
+ directory=
+ container=yegor256_rubocop-elegant_37
+ as_root=false
+ set -e -o pipefail
+ hostname
ip-172-31-21-2
+ pwd
/tmp/rultor-fDH9
+ git --version
git version 2.34.1
+ docker --version
Docker version 25.0.3, build 4debf41
+ mkdir -p /home/ubuntu/.ssh
+ echo -e 'Host github.com\n\tStrictHostKeyChecking no\n'
+ chmod 600 /home/ubuntu/.ssh/config
+ git clone --recurse-submodules git@github.com:yegor256/rubocop-elegant.git repo
Cloning into 'repo'...
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
+ cd repo
+ git config user.email gpg@rultor.com
+ git config user.name Rultor.com
+ '[' -z 'export '\''head=git@github.com:yegor256/rubocop-elegant.git'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''head=git@github.com:yegor256/rubocop-elegant.git'\''' ';' 'export '\''tag=0.3.0'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'pdd -f /dev/null' ';' 'bundle install --no-color' ';' '[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1' ';' 'bundle exec rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/0\.0\.0/${tag}/g" rubocop-elegant.gemspec' ';' 'git add rubocop-elegant.gemspec' ';' 'git commit -m "Version set to ${tag}"' ';' 'gem build rubocop-elegant.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';'
+ sensitive=()
+ set -ex -o pipefail
+ '[' -z 0.3.0 ']'
+ [[ 0.3.0 =~ ^[a-zA-Z0-9\.\-]+$ ]]
+ echo 'tag name is valid: "0.3.0"'
tag name is valid: "0.3.0"
+ cd repo
++ git tag -l 0.3.0
+ '[' -n '' ']'
+ BRANCH_NAME=__rultor
++ wc -l
++ git show-branch __rultor
+ '[' 0 -gt 0 ']'
+ export BRANCH_NAME
+ git checkout -b __rultor
Switched to a new branch '__rultor'
+ docker_when_possible
+ true
++ tail -n 1
++ sed 's/ /\n/g'
++ uptime
+ load=0.13
++ bc
++ echo 0.13 '>' 30
+ '[' 0 -eq 1 ']'
+ echo 'load average is 0.13, low enough to run a new Docker container'
load average is 0.13, low enough to run a new Docker container
+ break
+ cd ..
+ '[' -n '' ']'
+ use_image=yegor256/ruby
+ docker pull yegor256/ruby
Using default tag: latest
latest: Pulling from yegor256/ruby
632ef5283d0f: Pulling fs layer
2be42d221bda: Pulling fs layer
54d1704eb717: Pulling fs layer
f0f51ee5c79e: Pulling fs layer
ec11ce133a4e: Pulling fs layer
71ab1586461a: Pulling fs layer
8e0e2fc3c108: Pulling fs layer
4f4fb700ef54: Pulling fs layer
29e30624c231: Pulling fs layer
4e6c30a6639c: Pulling fs layer
be5819937019: Pulling fs layer
0a9b35968f2b: Pulling fs layer
8a82ccc8a0b8: Pulling fs layer
d5edca7207e7: Pulling fs layer
f0f51ee5c79e: Waiting
ec11ce133a4e: Waiting
8e0e2fc3c108: Waiting
4f4fb700ef54: Waiting
29e30624c231: Waiting
4e6c30a6639c: Waiting
be5819937019: Waiting
0a9b35968f2b: Waiting
8a82ccc8a0b8: Waiting
d5edca7207e7: Waiting
71ab1586461a: Waiting
2be42d221bda: Verifying Checksum
2be42d221bda: Download complete
54d1704eb717: Verifying Checksum
54d1704eb717: Download complete
632ef5283d0f: Verifying Checksum
632ef5283d0f: Download complete
ec11ce133a4e: Verifying Checksum
ec11ce133a4e: Download complete
8e0e2fc3c108: Verifying Checksum
8e0e2fc3c108: Download complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
29e30624c231: Verifying Checksum
29e30624c231: Download complete
71ab1586461a: Verifying Checksum
71ab1586461a: Download complete
4e6c30a6639c: Verifying Checksum
4e6c30a6639c: Download complete
0a9b35968f2b: Verifying Checksum
0a9b35968f2b: Download complete
8a82ccc8a0b8: Verifying Checksum
8a82ccc8a0b8: Download complete
d5edca7207e7: Verifying Checksum
d5edca7207e7: Download complete
f0f51ee5c79e: Verifying Checksum
f0f51ee5c79e: Download complete
be5819937019: Verifying Checksum
be5819937019: Download complete
632ef5283d0f: Pull complete
2be42d221bda: Pull complete
54d1704eb717: Pull complete
f0f51ee5c79e: Pull complete
ec11ce133a4e: Pull complete
71ab1586461a: Pull complete
8e0e2fc3c108: Pull complete
4f4fb700ef54: Pull complete
29e30624c231: Pull complete
4e6c30a6639c: Pull complete
be5819937019: Pull complete
0a9b35968f2b: Pull complete
8a82ccc8a0b8: Pull complete
d5edca7207e7: Pull complete
Digest: sha256:827c72db16f727bfc245152ce9a15c643cc60d809f8726c7fd2c207fb2fe0932
Status: Downloaded newer image for yegor256/ruby:latest
docker.io/yegor256/ruby:latest
+ docker ps --filter=status=exited
+ grep --quiet '\syegor256_rubocop-elegant_37\s*$'
+ ls -al .
total 48
drwx------ 3 ubuntu ubuntu 4096 May 9 01:55 .
drwxrwxrwt 12 root root 4096 May 9 01:55 ..
-rwxrwxr-x 1 ubuntu ubuntu 666 May 9 01:55 end.sh
-rwxrwxr-x 1 ubuntu ubuntu 498 May 9 01:55 entry.sh
-rw-rw-r-- 1 ubuntu ubuntu 5 May 9 01:55 pid
drwxrwxr-x 8 ubuntu ubuntu 4096 May 9 01:55 repo
-rw-rw-r-- 1 ubuntu ubuntu 81 May 9 01:55 rubygems.yml
-rwxrwxr-x 1 ubuntu ubuntu 6651 May 9 01:55 run.sh
-rw-rw-r-- 1 ubuntu ubuntu 702 May 9 01:55 script.sh
-rw-rw-r-- 1 ubuntu ubuntu 6367 May 9 01:56 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-fDH9:/main --env=head=git@github.com:yegor256/rubocop-elegant.git --env=tag=0.3.0 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/rubocop-elegant.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.3.0'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pdd -f /dev/null'\'' '\'';'\'' '\''bundle install --no-color'\'' '\'';'\'' '\''[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' '\''rm -rf *.gem'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" rubocop-elegant.gemspec'\'' '\'';'\'' '\''git add rubocop-elegant.gemspec'\'' '\'';'\'' '\''git commit -m "Version set to ${tag}"'\'' '\'';'\'' '\''gem build rubocop-elegant.gemspec'\'' '\'';'\'' '\''chmod 0600 ../rubygems.yml'\'' '\'';'\'' '\''gem push *.gem --config-file ../rubygems.yml'\'' '\'';'\'' )' --env=head_branch=master --env=author=yegor256 --hostname=docker --privileged --net=host --dns 8.8.8.8 --add-host docker:127.0.0.1 --memory=8g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-fDH9/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_rubocop-elegant_37 yegor256/ruby /main/entry.sh
WARNING: Your kernel does not support OomKillDisable. OomKillDisable discarded.
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
++ awk -F : '$3 > 100 { print $1 }'
++ cat /etc/group
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G nogroup r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G ssh r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G docker r
+ for g in $(cat /etc/group | awk -F ':' '$3 > 100 { print $1 }')
+ usermod -a -G r r
+ usermod -s /bin/bash r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.cache /root/.gemrc /root/.profile /home/r
+ cp -R ./cid ./end.sh ./entry.sh ./pid ./repo ./rubygems.yml ./run.sh ./script.sh ./stdout /home/r
+ rm -rf repo
+ chown -R r:r /home/r
+ chmod a+x /home/r/script.sh
+ cat /home/r/script.sh
#!/usr/bin/env bash
set -e
set -o pipefail
if [ -e /home/r/.profile ]; then source /home/r/.profile; fi
shopt -s expand_aliases
alias 'sudo=sudo -i'
export HOME=/home/r
cd "${HOME}/repo"
export 'head=git@github.com:yegor256/rubocop-elegant.git' ; export 'tag=0.3.0' ; export 'head_branch=master' ; export 'author=yegor256' ; pdd -f /dev/null ; bundle install --no-color ; [[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1 ; bundle exec rake ; rm -rf *.gem ; sed -i "s/0\.0\.0/${tag}/g" rubocop-elegant.gemspec ; git add rubocop-elegant.gemspec ; git commit -m "Version set to ${tag}" ; gem build rubocop-elegant.gemspec ; chmod 0600 ../rubygems.yml ; gem push *.gem --config-file ../rubygems.yml ;
+ su --login r --command /home/r/script.sh
Found 5 lines in /home/r/repo/.pdd
My version is 0.23.1
Ruby version is 3.4.5 at x86_64-linux
Reading from root dir .
/usr/local/bundle/gems/pdd-0.23.1/lib/pdd/sources.rb:90: warning: undefining the allocator of T_DATA class FileMagic
/home/r/repo/renovate.json is a binary file (114 bytes)
Reading .0pdd.yml ...
Reading .gitattributes ...
Reading .github/workflows/actionlint.yml ...
Reading .github/workflows/codecov.yml ...
Reading .github/workflows/copyrights.yml ...
Reading .github/workflows/markdown-lint.yml ...
Reading .github/workflows/pdd.yml ...
Reading .github/workflows/rake.yml ...
Reading .github/workflows/reuse.yml ...
Reading .github/workflows/typos.yml ...
Reading .github/workflows/xcop.yml ...
Reading .github/workflows/yamllint.yml ...
Reading .gitignore ...
Reading .pdd ...
Reading .rubocop.yml ...
Reading .rultor.yml ...
Reading Gemfile ...
Reading LICENSE.txt ...
Reading LICENSES/MIT.txt ...
Reading README.md ...
Reading REUSE.toml ...
Reading Rakefile ...
Reading config/default.yml ...
Reading lib/rubocop/cop/elegant/class_in_module.rb ...
Reading lib/rubocop/cop/elegant/good_method_name.rb ...
Reading lib/rubocop/cop/elegant/good_variable_name.rb ...
Reading lib/rubocop/cop/elegant/indentation_ladder.rb ...
Reading lib/rubocop/cop/elegant/no_class_in_module.rb ...
Reading lib/rubocop/cop/elegant/no_comments.rb ...
Reading lib/rubocop/cop/elegant/no_empty_lines_in_blocks.rb ...
Reading lib/rubocop/cop/elegant/no_empty_lines_in_methods.rb ...
Reading lib/rubocop/cop/elegant/no_nil_return.rb ...
Reading lib/rubocop/cop/elegant/no_redundant_variable.rb ...
Reading lib/rubocop/cop/elegant/paired_brackets.rb ...
Reading lib/rubocop/cop/elegant_cops.rb ...
Reading lib/rubocop/elegant/plugin.rb ...
Reading lib/rubocop/elegant/version.rb ...
Reading lib/rubocop-elegant.rb ...
Reading rubocop-elegant.gemspec ...
Reading test/elegant/test_class_in_module.rb ...
Reading test/elegant/test_good_method_name.rb ...
Reading test/elegant/test_good_variable_name.rb ...
Reading test/elegant/test_indentation_ladder.rb ...
Reading test/elegant/test_no_class_in_module.rb ...
Reading test/elegant/test_no_comments.rb ...
Reading test/elegant/test_no_empty_lines_in_blocks.rb ...
Reading test/elegant/test_no_empty_lines_in_methods.rb ...
Reading test/elegant/test_no_nil_return.rb ...
Reading test/elegant/test_no_redundant_variable.rb ...
Reading test/elegant/test_paired_brackets.rb ...
Reading test/test__helper.rb ...
Reading test/test_rubocop-elegant.rb ...
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Fetching rake 13.4.2
Installing rake 13.4.2
Fetching ansi 1.6.0
Installing ansi 1.6.0
Fetching ast 2.4.3
Installing ast 2.4.3
Fetching builder 3.3.0
Installing builder 3.3.0
Fetching date 3.5.1
Installing date 3.5.1 with native extensions
Fetching docile 1.4.1
Installing docile 1.4.1
Fetching drb 2.2.3
Installing drb 2.2.3
Fetching erb 6.0.4
Installing erb 6.0.4 with native extensions
Fetching json 2.19.5
Installing json 2.19.5 with native extensions
Fetching language_server-protocol 3.17.0.5
Installing language_server-protocol 3.17.0.5
Fetching lint_roller 1.1.0
Installing lint_roller 1.1.0
Fetching prism 1.9.0
Installing prism 1.9.0 with native extensions
Fetching minitest 6.0.6
Installing minitest 6.0.6
Fetching ruby-progressbar 1.13.0
Installing ruby-progressbar 1.13.0
Fetching minitest-reporters 1.8.0
Installing minitest-reporters 1.8.0
Fetching parallel 2.1.0
Installing parallel 2.1.0
Fetching parser 3.3.11.1
Installing parser 3.3.11.1
Fetching stringio 3.2.0
Installing stringio 3.2.0 with native extensions
Fetching psych 5.3.1
Installing psych 5.3.1 with native extensions
Fetching tsort 0.2.0
Installing tsort 0.2.0
Fetching rdoc 7.2.0
Installing rdoc 7.2.0
Fetching regexp_parser 2.12.0
Installing regexp_parser 2.12.0
Fetching rexml 3.4.4
Installing rexml 3.4.4
Fetching rubocop-ast 1.49.1
Installing rubocop-ast 1.49.1
Fetching unicode-emoji 4.2.0
Installing unicode-emoji 4.2.0
Fetching unicode-display_width 3.2.0
Installing unicode-display_width 3.2.0
Fetching rubocop 1.86.1
Installing rubocop 1.86.1
Fetching rubocop-minitest 0.39.1
Installing rubocop-minitest 0.39.1
Fetching rubocop-performance 1.26.1
Installing rubocop-performance 1.26.1
Fetching rubocop-rake 0.7.1
Installing rubocop-rake 0.7.1
Fetching simplecov-html 0.13.2
Installing simplecov-html 0.13.2
Fetching simplecov_json_formatter 0.1.4
Installing simplecov_json_formatter 0.1.4
Fetching simplecov 0.22.0
Installing simplecov 0.22.0
Fetching simplecov-cobertura 3.1.0
Installing simplecov-cobertura 3.1.0
Fetching yard 0.9.43
Installing yard 0.9.43
Bundle complete! 12 Gemfile dependencies, 39 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
/home/r/repo/test/elegant/test_good_variable_name.rb:25: warning: method redefined; discarding old test_allows_no_name_var
/home/r/repo/test/elegant/test_good_variable_name.rb:25: warning: previous definition of test_allows_no_name_var was here
Started with run options --seed 47701
NoClassInModuleTest
test_registers_offense_for_class_with_inheritance_inside_module32m PASS0m (0.09s)
test_allows_nested_empty_modules 32m PASS0m (0.00s)
test_allows_plain_top_level_class 32m PASS0m (0.00s)
test_allows_top_level_method_only 32m PASS0m (0.00s)
test_registers_offense_for_outer_class_only_when_nested_inside_class_inside_module32m PASS0m (0.00s)
test_allows_module_with_method_and_constant 32m PASS0m (0.00s)
test_registers_offense_for_class_inside_nested_modules 32m PASS0m (0.00s)
test_allows_empty_module 32m PASS0m (0.00s)
test_allows_deeply_namespaced_compact_class 32m PASS0m (0.00s)
test_allows_module_with_method_only 32m PASS0m (0.00s)
test_registers_offense_for_class_alongside_empty_submodule 32m PASS0m (0.00s)
test_registers_offense_for_two_classes_inside_one_module 32m PASS0m (0.00s)
test_allows_compact_namespaced_class 32m PASS0m (0.00s)
test_allows_nested_class_inside_class_top_level 32m PASS0m (0.00s)
test_registers_offense_for_class_inside_single_module 32m PASS0m (0.00s)
test_allows_module_with_constant_only 32m PASS0m (0.00s)
test_allows_top_level_class_with_inheritance 32m PASS0m (0.00s)
NoCommentsTest
test_registers_offense_for_regular_comment 32m PASS0m (0.00s)
test_corrects_preserves_magic_comment 32m PASS0m (0.00s)
test_allows_rubocop_enable 32m PASS0m (0.00s)
test_corrects_standalone_comment 32m PASS0m (0.00s)
test_corrects_preserves_spdx 32m PASS0m (0.00s)
test_disallows_non_docblock_comment_with_gemspec 32m PASS0m (0.00s)
test_allows_method_docblock_when_gemspec_present 32m PASS0m (0.00s)
test_allows_multiline_docblock_with_gemspec 32m PASS0m (0.00s)
test_allows_spdx_license_identifier 32m PASS0m (0.00s)
test_allows_rubocop_disable 32m PASS0m (0.00s)
test_allows_encoding_magic_comment 32m PASS0m (0.00s)
test_disallows_docblock_when_no_gemspec 32m PASS0m (0.00s)
test_registers_offense_for_inline_comment 32m PASS0m (0.00s)
test_registers_offense_for_multiple_comments 32m PASS0m (0.00s)
test_corrects_inline_comment 32m PASS0m (0.00s)
test_mixed_spdx_and_regular_comments 32m PASS0m (0.00s)
test_allows_spdx_file_copyright 32m PASS0m (0.00s)
test_allows_code_without_comments 32m PASS0m (0.00s)
test_allows_module_docblock_when_gemspec_present 32m PASS0m (0.00s)
test_allows_class_docblock_when_gemspec_present 32m PASS0m (0.00s)
test_corrects_multiple_comments 32m PASS0m (0.00s)
test_allows_frozen_string_literal 32m PASS0m (0.00s)
test_allows_rubocop_todo 32m PASS0m (0.00s)
NoEmptyLinesInBlocksTest
test_registers_offense_for_multiple_empty_lines 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_case_in 32m PASS0m (0.00s)
test_corrects_empty_line_in_block 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_for 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_do 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_num 32m PASS0m (0.00s)
test_allows_empty_lines_between_methods 32m PASS0m (0.00s)
test_allows_single_line_block 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_begin 32m PASS0m (0.00s)
test_allows_top_level_empty_lines 32m PASS0m (0.00s)
test_allows_empty_lines_between_defs_in_begin 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_if 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_until 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_while 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_brace 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_unless 32m PASS0m (0.00s)
test_deduplicates_nested_blocks 32m PASS0m (0.00s)
test_allows_empty_block 32m PASS0m (0.00s)
test_allows_empty_lines_in_nested_class 32m PASS0m (0.00s)
test_allows_block_without_empty_lines 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_case 32m PASS0m (0.00s)
test_allows_empty_lines_between_defs_in_do_block 32m PASS0m (0.00s)
test_corrects_multiple_empty_lines 32m PASS0m (0.00s)
NoNilReturnTest
test_attributes_offense_only_to_inner_nested_def 32m PASS0m (0.00s)
test_allows_method_call_tail 32m PASS0m (0.00s)
test_allows_unless_modifier 32m PASS0m (0.00s)
test_registers_offense_for_literal_nil_as_tail 32m PASS0m (0.00s)
test_allows_string_literal_tail 32m PASS0m (0.00s)
test_allows_class_method_non_nil_tail 32m PASS0m (0.00s)
test_registers_offense_for_class_method_nil_tail 32m PASS0m (0.00s)
test_registers_offense_for_return_nil_alongside_nil_tail 32m PASS0m (0.00s)
test_allows_if_without_else 32m PASS0m (0.00s)
test_allows_if_branch_contains_nil 32m PASS0m (0.00s)
test_allows_nested_if_else_all_non_nil 32m PASS0m (0.00s)
test_allows_if_else_with_non_nil_branches 32m PASS0m (0.00s)
test_allows_case_with_else_non_nil_branches 32m PASS0m (0.00s)
test_registers_offense_for_multi_statement_nil_tail 32m PASS0m (0.00s)
test_registers_offense_for_class_method_return_nil 32m PASS0m (0.00s)
test_allows_return_non_nil_inside_method 32m PASS0m (0.00s)
test_registers_offense_for_multiple_explicit_returns 32m PASS0m (0.00s)
test_allows_modifier_if 32m PASS0m (0.00s)
test_allows_outer_method_with_clean_inner_def 32m PASS0m (0.00s)
test_registers_offense_for_kwbegin_nil_tail 32m PASS0m (0.00s)
test_allows_kwbegin_non_nil_tail 32m PASS0m (0.00s)
test_allows_case_else_is_nil 32m PASS0m (0.00s)
test_allows_empty_body_method 32m PASS0m (0.00s)
test_allows_bare_return_keyword 32m PASS0m (0.00s)
test_registers_offense_for_explicit_return_nil 32m PASS0m (0.00s)
test_allows_multi_statement_non_nil_tail 32m PASS0m (0.00s)
test_allows_case_without_else 32m PASS0m (0.00s)
test_allows_integer_literal_tail 32m PASS0m (0.00s)
GoodMethodNameTest
test_allows_to_string 32m PASS0m (0.00s)
test_rejects_underscore_in_name 32m PASS0m (0.00s)
test_allows_the__prefix 32m PASS0m (0.00s)
test_rejects_uppercase_in_name 32m PASS0m (0.00s)
test_allows_predicate_method 32m PASS0m (0.00s)
test_rejects_longer_than_16_chars 32m PASS0m (0.00s)
test_allows_explicitly_listed_name 32m PASS0m (0.00s)
test_allows_class_method 32m PASS0m (0.00s)
test_allows_short_lowercase_method 32m PASS0m (0.00s)
test_still_rejects_name_not_in_allowed_list 32m PASS0m (0.00s)
test_allows_bang_method 32m PASS0m (0.00s)
test_allows_test__prefix 32m PASS0m (0.00s)
test_allows_fake__prefix 32m PASS0m (0.00s)
test_rejects_class_method_with_underscore 32m PASS0m (0.00s)
GoodVariableNameTest
test_rejects_longer_than_16_chars 32m PASS0m (0.00s)
test_allows_instance_variable_with_test__prefix 32m PASS0m (0.00s)
test_allows_instance_variable_with_the__prefix 32m PASS0m (0.00s)
test_allows_short_lowercase_variable 32m PASS0m (0.00s)
test_rejects_uppercase_in_name 32m PASS0m (0.00s)
test_allows_global_variable 32m PASS0m (0.00s)
test_rejects_underscore_in_name 32m PASS0m (0.00s)
test_allows_explicitly_listed_name 32m PASS0m (0.00s)
test_allows_class_variable_with_the__prefix 32m PASS0m (0.00s)
test_allows_global_variable_with_fake__prefix 32m PASS0m (0.00s)
test_allows_the__prefix 32m PASS0m (0.00s)
test_allows_test__prefix 32m PASS0m (0.00s)
test_still_rejects_name_not_in_allowed_list 32m PASS0m (0.00s)
test_allows_class_variable 32m PASS0m (0.00s)
test_allows_instance_variable 32m PASS0m (0.00s)
test_rejects_instance_variable_with_underscore 32m PASS0m (0.00s)
test_allows_fake__prefix 32m PASS0m (0.00s)
test_allows_no_name_var 32m PASS0m (0.00s)
RubocopElegantTest
test_plugin_rules_returns_path 32m PASS0m (0.00s)
test_plugin_about_returns_info 32m PASS0m (0.00s)
test_reports_version 32m PASS0m (0.00s)
test_plugin_supports_rubocop 32m PASS0m (0.00s)
test_plugin_does_not_support_other_engines 32m PASS0m (0.00s)
ClassInModuleTest
test_registers_offense_for_plain_top_level_class 32m PASS0m (0.00s)
test_registers_offense_for_top_level_class_with_inheritance 32m PASS0m (0.00s)
test_allows_top_level_method_only 32m PASS0m (0.00s)
test_registers_offense_for_top_level_class_with_nested_class 32m PASS0m (0.00s)
test_allows_deeply_namespaced_compact_class 32m PASS0m (0.00s)
test_registers_offense_for_two_top_level_classes 32m PASS0m (0.00s)
test_allows_class_with_inheritance_inside_module 32m PASS0m (0.00s)
test_allows_class_inside_single_module 32m PASS0m (0.00s)
test_allows_module_without_any_class 32m PASS0m (0.00s)
test_allows_class_inside_nested_modules 32m PASS0m (0.00s)
test_allows_nested_class_inside_class_inside_module 32m PASS0m (0.00s)
test_allows_compact_namespaced_class 32m PASS0m (0.00s)
test_registers_offense_for_top_level_class_with_explicit_root 32m PASS0m (0.00s)
IndentationLadderTest
test_allows_two_lines_at_same_indent 32m PASS0m (0.00s)
test_rejects_jump_after_dedent 32m PASS0m (0.00s)
test_allows_single_line_source 32m PASS0m (0.00s)
test_rejects_one_space_step 32m PASS0m (0.00s)
test_allows_heredoc_body_with_irregular_indent 32m PASS0m (0.00s)
test_rejects_four_space_step 32m PASS0m (0.00s)
test_allows_consecutive_two_space_increments 32m PASS0m (0.00s)
test_allows_comment_lines_at_two_step 32m PASS0m (0.00s)
test_allows_large_dedent_is_allowed 32m PASS0m (0.00s)
test_rejects_three_space_step 32m PASS0m (0.00s)
test_allows_blank_lines_are_skipped 32m PASS0m (0.00s)
test_allows_nested_two_space_steps 32m PASS0m (0.00s)
test_allows_dedent_then_re_indent_by_two 32m PASS0m (0.00s)
test_allows_two_space_step_into_method 32m PASS0m (0.00s)
test_rejects_two_independent_jumps 32m PASS0m (0.00s)
PairedBracketsTest
test_rejects_split_square_brackets_in_middle 32m PASS0m (0.00s)
test_allows_split_curly_braces_at_line_edges 32m PASS0m (0.00s)
test_allows_indexer_brackets 32m PASS0m (0.00s)
test_allows_trailing_comment_after_opener 32m PASS0m (0.00s)
test_allows_trailing_chain_after_closer 32m PASS0m (0.00s)
test_rejects_closer_in_middle_when_chained 32m PASS0m (0.00s)
test_allows_brackets_in_string_interpolation 32m PASS0m (0.00s)
test_allows_empty_parens_paired 32m PASS0m (0.00s)
test_allows_paired_curly_braces_on_same_line 32m PASS0m (0.00s)
test_allows_empty_parens_split_at_edges 32m PASS0m (0.00s)
test_allows_brackets_in_percent_symbols_array 32m PASS0m (0.00s)
test_rejects_block_brace_with_argument_split 32m PASS0m (0.00s)
test_rejects_opener_in_middle_of_line 32m PASS0m (0.00s)
test_rejects_opener_not_at_end_of_line 32m PASS0m (0.00s)
test_allows_paired_parens_on_same_line 32m PASS0m (0.00s)
test_allows_split_square_brackets_at_line_edges 32m PASS0m (0.00s)
test_rejects_closer_not_at_start_of_line 32m PASS0m (0.00s)
test_allows_opener_ends_line_closer_starts_line 32m PASS0m (0.00s)
test_allows_brackets_in_comments 32m PASS0m (0.00s)
test_allows_brackets_in_string_literal 32m PASS0m (0.00s)
test_allows_block_brace_paired_on_same_line 32m PASS0m (0.00s)
test_allows_paired_square_brackets_on_same_line 32m PASS0m (0.00s)
test_allows_brackets_in_percent_words_array 32m PASS0m (0.00s)
test_allows_nested_pairs_at_line_edges 32m PASS0m (0.00s)
NoRedundantVariableTest
test_allows_read_inside_if_branch 32m PASS0m (0.00s)
test_allows_class_method_two_reads 32m PASS0m (0.00s)
test_allows_compound_plus_assignment 32m PASS0m (0.00s)
test_allows_read_inside_nested_block 32m PASS0m (0.00s)
test_allows_read_inside_for_loop 32m PASS0m (0.00s)
test_registers_offense_for_inlinable_inside_if_branch 32m PASS0m (0.00s)
test_allows_read_inside_if_else_branch 32m PASS0m (0.00s)
test_allows_method_argument_used_once 32m PASS0m (0.00s)
test_registers_offense_for_class_method_inlinable 32m PASS0m (0.00s)
test_registers_offense_for_read_in_case_subject_position 32m PASS0m (0.00s)
test_allows_read_inside_ensure 32m PASS0m (0.00s)
test_allows_read_inside_rescue_body 32m PASS0m (0.00s)
test_allows_read_inside_until_loop 32m PASS0m (0.00s)
test_registers_offense_for_inlinable_with_rescue 32m PASS0m (0.00s)
test_registers_offense_for_simple_inlinable 32m PASS0m (0.00s)
test_registers_offense_for_multiple_redundant_in_one_method 32m PASS0m (0.00s)
test_allows_rescue_exception_variable 32m PASS0m (0.00s)
test_allows_or_assign_modification 32m PASS0m (0.00s)
test_allows_assignment_in_while_condition 32m PASS0m (0.00s)
test_allows_no_local_variables 32m PASS0m (0.00s)
test_allows_read_inside_case_match_in_branch 32m PASS0m (0.00s)
test_allows_read_inside_case_when_branch 32m PASS0m (0.00s)
test_registers_offense_for_read_in_if_condition_position 32m PASS0m (0.01s)
test_allows_variable_modified_via_send 32m PASS0m (0.00s)
test_allows_read_inside_and_rhs 32m PASS0m (0.00s)
test_allows_empty_body 32m PASS0m (0.00s)
test_inner_def_does_not_pollute_outer_scope 32m PASS0m (0.00s)
test_registers_offense_for_read_in_and_lhs_position 32m PASS0m (0.00s)
test_allows_for_loop_iterator 32m PASS0m (0.00s)
test_allows_read_inside_full_if_then_branch 32m PASS0m (0.00s)
test_allows_variable_reassigned_then_read 32m PASS0m (0.00s)
test_registers_offense_for_each_def_has_own_redundant 32m PASS0m (0.00s)
test_allows_block_argument_used_once 32m PASS0m (0.00s)
test_message_names_the_redundant_variable 32m PASS0m (0.00s)
test_allows_assignment_in_if_condition 32m PASS0m (0.00s)
test_registers_offense_for_inlinable_returned_directly 32m PASS0m (0.00s)
test_allows_variable_assigned_never_read 32m PASS0m (0.00s)
test_allows_read_inside_while_loop 32m PASS0m (0.00s)
test_allows_assigned_in_block_read_outside 32m PASS0m (0.00s)
test_allows_read_inside_or_rhs 32m PASS0m (0.00s)
test_allows_read_inside_block_loop 32m PASS0m (0.00s)
test_registers_offense_for_inlinable_inside_block 32m PASS0m (0.00s)
test_allows_multiple_assignment 32m PASS0m (0.00s)
test_allows_variable_used_twice 32m PASS0m (0.00s)
NoEmptyLinesInMethodsTest
test_corrects_multiple_empty_lines 32m PASS0m (0.00s)
test_registers_offense_for_empty_line_in_method 32m PASS0m (0.00s)
test_allows_single_line_method 32m PASS0m (0.00s)
test_registers_offense_in_class_method 32m PASS0m (0.00s)
test_allows_empty_method 32m PASS0m (0.00s)
test_corrects_empty_line 32m PASS0m (0.00s)
test_allows_method_without_empty_lines 32m PASS0m (0.00s)
test_registers_offense_for_multiple_empty_lines 32m PASS0m (0.00s)
Finished in 0.49960s
232 tests, 233 assertions, 32m0 failures, 0 errors, 0m33m0 skips0m
Coverage report generated for test to /home/r/repo/coverage.
Line Coverage: 100.0% (0 / 0)
Coverage report generated for test to /home/r/repo/coverage/coverage.xml.
Line Coverage: 100.0% (0 / 0)
Running RuboCop...
Inspecting 31 files
32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m
31 files inspected, 32mno offenses0m detected
?25h2KFiles:1m⡿aGenera14ngudoc/RuboCop/Cop/Elegant/NoEmptyLinesInMethods.html0m25h2K2K?25l1m⣷ Generating asset js/jquery.js0m
Modules: 3 ( 1 undocumented)
Classes: 12 ( 1 undocumented)
Constants: 16 ( 16 undocumented)
Attributes: 0 ( 0 undocumented)
Methods: 30 ( 29 undocumented)
22.95% documented
[__rultor 4634556] Version set to 0.3.0
1 file changed, 1 insertion(+), 1 deletion(-)
Successfully built RubyGem
Name: rubocop-elegant
Version: 0.3.0
File: rubocop-elegant-0.3.0.gem
Pushing gem to https://rubygems.org...
Successfully registered gem: rubocop-elegant (0.3.0)
+ mv /home/r/repo .
++ whoami
+ chown -R root repo
+ '[' -n '' ']'
++ whoami
+ sudo chown -R ubuntu repo
+ cd repo
+ git checkout __rultor
Already on '__rultor'
+ git tag 0.3.0 -m '0.3.0: tagged by rultor.com'
+ git reset --hard
HEAD is now at 4634556 Version set to 0.3.0
+ git clean -fd
+ git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
+ git branch -D __rultor
Deleted branch __rultor (was 4634556).
+ git push --all origin
Everything up-to-date
+ git push --tags origin
To github.com:yegor256/rubocop-elegant.git
* [new tag] 0.3.0 -> 0.3.0
container 8aabde06e062853dbc0d229809333137b2aa9a0a4f7189df6054b7d52848eb01 is dead
Sat May 9 01:57:32 UTC 2026