fixing ruby

This commit is contained in:
Lucas Gravley 2020-07-16 09:56:27 -05:00
parent 0689c57fdf
commit 7f15e0bf4e
4 changed files with 24 additions and 17 deletions

View file

@ -42,7 +42,7 @@ ARG GLIBC_VERSION='2.31-r0'
####################
# Run APK installs #
####################
RUN apk add --no-cache \
RUN apk add --update --no-cache \
ansible-lint \
bash \
curl \

View file

@ -4,7 +4,7 @@ source "https://rubygems.org"
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
gem "rubocop", "~> 0.77.0"
gem "rubocop", "~> 0.82.0"
gem "rubocop-github", "~> 0.16.0"
gem "rubocop-performance", "~>1.7.0"
gem "rubocop-rails", "~> 2.5"
gem "rubocop-github", "~> 0.14.0"

View file

@ -18,32 +18,39 @@ GEM
ast (~> 2.4.1)
rack (2.2.3)
rainbow (3.0.0)
rubocop (0.77.0)
rexml (3.2.4)
rubocop (0.82.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.6)
parser (>= 2.7.0.1)
rainbow (>= 2.2.2, < 4.0)
rexml
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
rubocop-github (0.14.0)
rubocop (~> 0.59)
rubocop-rails (2.5.2)
activesupport
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-github (0.16.0)
rubocop (<= 0.82.0)
rubocop-performance (~> 1.0)
rubocop-rails (~> 2.0)
rubocop-performance (1.7.0)
rubocop (>= 0.82.0)
rubocop-rails (2.6.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 0.72.0)
rubocop (>= 0.82.0)
ruby-progressbar (1.10.1)
thread_safe (0.3.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
unicode-display_width (1.6.1)
unicode-display_width (1.7.0)
zeitwerk (2.4.0)
PLATFORMS
ruby
DEPENDENCIES
rubocop (~> 0.77.0)
rubocop-github (~> 0.14.0)
rubocop (~> 0.82.0)
rubocop-github (~> 0.16.0)
rubocop-performance (~> 1.7.0)
rubocop-rails (~> 2.5)
BUNDLED WITH

View file

@ -1064,7 +1064,7 @@ if [ "$VALIDATE_RUBY" == "true" ]; then
# Lint the ruby files #
#######################
# LintCodebase "FILE_TYPE" "LINTER_NAME" "LINTER_CMD" "FILE_TYPES_REGEX" "FILE_ARRAY"
LintCodebase "RUBY" "rubocop" "rubocop -c $RUBY_LINTER_RULES" ".*\.\(rb\)\$" "${FILE_ARRAY_RUBY[@]}"
LintCodebase "RUBY" "rubocop" "rubocop -c $RUBY_LINTER_RULES --force-exclusion" ".*\.\(rb\)\$" "${FILE_ARRAY_RUBY[@]}"
fi
########################