improve code style
This commit is contained in:
parent
2fecb87e89
commit
afccfdd379
|
@ -40,24 +40,3 @@ dependency_scanning:
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- gl-dependency-scanning-report.json
|
- gl-dependency-scanning-report.json
|
||||||
|
|
||||||
sast:
|
|
||||||
stage: security
|
|
||||||
dependencies:
|
|
||||||
- build
|
|
||||||
image: docker:stable
|
|
||||||
variables:
|
|
||||||
DOCKER_DRIVER: overlay2
|
|
||||||
allow_failure: true
|
|
||||||
services:
|
|
||||||
- docker:stable-dind
|
|
||||||
script:
|
|
||||||
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
|
||||||
- docker run
|
|
||||||
--env SAST_CONFIDENCE_LEVEL="${SAST_CONFIDENCE_LEVEL:-3}"
|
|
||||||
--volume "$PWD:/code"
|
|
||||||
--volume /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
"registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- gl-sast-report.json
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
AllCops:
|
||||||
|
TargetRubyVersion: 2.3
|
||||||
|
|
||||||
Naming/FileName:
|
Naming/FileName:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/capistrano-rails-console.rb'
|
- 'lib/capistrano-rails-console.rb'
|
||||||
|
|
||||||
|
Metrics/LineLength:
|
||||||
|
Max: 120
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
# Specify your gem's dependencies in capistrano-rails-console.gemspec
|
# Specify your gem's dependencies in capistrano-rails-console.gemspec
|
||||||
|
|
2
Rakefile
2
Rakefile
|
@ -1 +1,3 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'bundler/gem_tasks'
|
require 'bundler/gem_tasks'
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
lib = File.expand_path('lib', __dir__)
|
lib = File.expand_path('lib', __dir__)
|
||||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||||
require 'capistrano/rails/console/version'
|
require 'capistrano/rails/console/version'
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
# frozen_string_literal: true
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'sshkit/interactive'
|
require 'sshkit/interactive'
|
||||||
require 'capistrano/rails/console/version'
|
require 'capistrano/rails/console/version'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
namespace :load do
|
namespace :load do
|
||||||
task :defaults do
|
task :defaults do
|
||||||
# Add rails to RVM, Rbenv and Chruby bins
|
# Add rails to RVM, Rbenv and Chruby bins
|
||||||
%i{rvm_map_bins rbenv_map_bins chruby_map_bins}.each do |bins_var|
|
%i[rvm_map_bins rbenv_map_bins chruby_map_bins].each do |bins_var|
|
||||||
bins = fetch(bins_var, [])
|
bins = fetch(bins_var, [])
|
||||||
set bins_var, bins.push('rails') unless bins.include?('rails')
|
set bins_var, bins.push('rails') unless bins.include?('rails')
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Capistrano
|
# Capistrano
|
||||||
module Capistrano
|
module Capistrano
|
||||||
# Rails
|
# Rails
|
||||||
|
@ -5,7 +7,7 @@ module Capistrano
|
||||||
# Console
|
# Console
|
||||||
module Console
|
module Console
|
||||||
# Gem version
|
# Gem version
|
||||||
VERSION = '2.3.0'.freeze
|
VERSION = '2.3.0'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue