mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 14:10:56 -05:00
Merge pull request #420 from GaboFDC/gf_update_rubocop
User gemfile for dependabot and update rubocop
This commit is contained in:
commit
a48df7f804
3 changed files with 64 additions and 11 deletions
15
Dockerfile
15
Dockerfile
|
@ -88,17 +88,10 @@ RUN npm config set package-lock false \
|
||||||
#############################
|
#############################
|
||||||
ENV PATH="/node_modules/.bin:${PATH}"
|
ENV PATH="/node_modules/.bin:${PATH}"
|
||||||
|
|
||||||
####################
|
##############################
|
||||||
# Run GEM installs #
|
# Installs ruby dependencies #
|
||||||
####################
|
##############################
|
||||||
RUN gem install rubocop:0.74.0 rubocop-rails rubocop-github:0.13.0
|
RUN bundle install
|
||||||
|
|
||||||
# Need to fix the version as it installs 'rubocop:0.85.1' as a dep, and forces the default
|
|
||||||
# We then need to promote the correct version, uninstall, and fix deps
|
|
||||||
RUN sh -c 'INCORRECT_VERSION=$(gem list rhc -e rubocop | grep rubocop | awk "{print $2}" | cut -d"(" -f2 | cut -d"," -f1); \
|
|
||||||
gem install --default rubocop:0.74.0; \
|
|
||||||
yes | gem uninstall rubocop:$INCORRECT_VERSION -a -x -I; \
|
|
||||||
gem install rubocop:0.74.0'
|
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
# Install Powershell + PSScriptAnalyzer #
|
# Install Powershell + PSScriptAnalyzer #
|
||||||
|
|
10
dependencies/Gemfile
vendored
Normal file
10
dependencies/Gemfile
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
||||||
|
|
||||||
|
|
||||||
|
gem "rubocop", "~> 0.77.0"
|
||||||
|
gem "rubocop-rails", "~> 2.5"
|
||||||
|
gem "rubocop-github", "~> 0.14.0"
|
50
dependencies/Gemfile.lock
vendored
Normal file
50
dependencies/Gemfile.lock
vendored
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
activesupport (6.0.3.2)
|
||||||
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
|
i18n (>= 0.7, < 2)
|
||||||
|
minitest (~> 5.1)
|
||||||
|
tzinfo (~> 1.1)
|
||||||
|
zeitwerk (~> 2.2, >= 2.2.2)
|
||||||
|
ast (2.4.1)
|
||||||
|
concurrent-ruby (1.1.6)
|
||||||
|
i18n (1.8.3)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
jaro_winkler (1.5.4)
|
||||||
|
minitest (5.14.1)
|
||||||
|
parallel (1.19.2)
|
||||||
|
parser (2.7.1.4)
|
||||||
|
ast (~> 2.4.1)
|
||||||
|
rack (2.2.3)
|
||||||
|
rainbow (3.0.0)
|
||||||
|
rubocop (0.77.0)
|
||||||
|
jaro_winkler (~> 1.5.1)
|
||||||
|
parallel (~> 1.10)
|
||||||
|
parser (>= 2.6)
|
||||||
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
|
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
|
||||||
|
rack (>= 1.1)
|
||||||
|
rubocop (>= 0.72.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)
|
||||||
|
zeitwerk (2.4.0)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
ruby
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
rubocop (~> 0.77.0)
|
||||||
|
rubocop-github (~> 0.14.0)
|
||||||
|
rubocop-rails (~> 2.5)
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
2.1.4
|
Loading…
Reference in a new issue