mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 08:41:02 -05:00
User gemfile for dependabot and update rubocop
This commit is contained in:
parent
09c33f5fd9
commit
97dd95194a
3 changed files with 69 additions and 11 deletions
15
Dockerfile
15
Dockerfile
|
@ -83,17 +83,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.82.0"
|
||||||
|
gem "rubocop-rails", "~> 2.5"
|
||||||
|
gem "rubocop-github", "~> 0.13.0"
|
55
dependencies/Gemfile.lock
vendored
Normal file
55
dependencies/Gemfile.lock
vendored
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
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)
|
||||||
|
rexml (3.2.4)
|
||||||
|
rubocop (0.82.0)
|
||||||
|
jaro_winkler (~> 1.5.1)
|
||||||
|
parallel (~> 1.10)
|
||||||
|
parser (>= 2.7.0.1)
|
||||||
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
|
rexml
|
||||||
|
ruby-progressbar (~> 1.7)
|
||||||
|
unicode-display_width (>= 1.4.0, < 2.0)
|
||||||
|
rubocop-github (0.13.0)
|
||||||
|
rubocop (~> 0.70)
|
||||||
|
rubocop-performance (~> 1.3.0)
|
||||||
|
rubocop-performance (1.3.0)
|
||||||
|
rubocop (>= 0.68.0)
|
||||||
|
rubocop-rails (2.6.0)
|
||||||
|
activesupport (>= 4.2.0)
|
||||||
|
rack (>= 1.1)
|
||||||
|
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.7.0)
|
||||||
|
zeitwerk (2.4.0)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
ruby
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
rubocop (~> 0.82.0)
|
||||||
|
rubocop-github (~> 0.13.0)
|
||||||
|
rubocop-rails (~> 2.5)
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
2.1.4
|
Loading…
Reference in a new issue