-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from shopsmart/bundle-audit/skip
Bundle audit/skip
- Loading branch information
Showing
10 changed files
with
279 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
bd_lint (0.3.0) | ||
bd_lint (0.4.0) | ||
brakeman | ||
bundler-audit | ||
execjs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require "bundler/audit/cli" | ||
require "bundler/audit/scanner" | ||
|
||
module BdLint | ||
module Audit | ||
class CLI < Bundler::Audit::CLI | ||
DISABLED_WARNING = [ | ||
"WARNING! Bundle Audit is disabled", | ||
"Please remove `DISABLE_BUNDLE_AUDIT` from the repositories environment variables once the build has completed" | ||
].freeze | ||
|
||
def check | ||
if ENV["DISABLE_BUNDLE_AUDIT"] | ||
DISABLED_WARNING.each { |msg| say msg, :yellow } | ||
exit 0 | ||
end | ||
|
||
super | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
require 'rake' | ||
require "rake" | ||
|
||
load 'tasks/bd_lint.rake' | ||
load 'tasks/bundle_audit.rake' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module BdLint | ||
VERSION = "0.3.0".freeze | ||
VERSION = "0.4.0".freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source "https://rubygems.org" | ||
|
||
git_source(:github) do |repo_name| | ||
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") | ||
"https://github.com/#{repo_name}.git" | ||
end | ||
|
||
gem "rails", "~> 5.2.2" | ||
gem "bd_lint", path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
PATH | ||
remote: .. | ||
specs: | ||
bd_lint (0.3.0) | ||
brakeman | ||
bundler-audit | ||
execjs | ||
pre-commit | ||
rubocop | ||
rubocop-rspec | ||
scss_lint | ||
thor | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
actioncable (5.2.2) | ||
actionpack (= 5.2.2) | ||
nio4r (~> 2.0) | ||
websocket-driver (>= 0.6.1) | ||
actionmailer (5.2.2) | ||
actionpack (= 5.2.2) | ||
actionview (= 5.2.2) | ||
activejob (= 5.2.2) | ||
mail (~> 2.5, >= 2.5.4) | ||
rails-dom-testing (~> 2.0) | ||
actionpack (5.2.2) | ||
actionview (= 5.2.2) | ||
activesupport (= 5.2.2) | ||
rack (~> 2.0) | ||
rack-test (>= 0.6.3) | ||
rails-dom-testing (~> 2.0) | ||
rails-html-sanitizer (~> 1.0, >= 1.0.2) | ||
actionview (5.2.2) | ||
activesupport (= 5.2.2) | ||
builder (~> 3.1) | ||
erubi (~> 1.4) | ||
rails-dom-testing (~> 2.0) | ||
rails-html-sanitizer (~> 1.0, >= 1.0.3) | ||
activejob (5.2.2) | ||
activesupport (= 5.2.2) | ||
globalid (>= 0.3.6) | ||
activemodel (5.2.2) | ||
activesupport (= 5.2.2) | ||
activerecord (5.2.2) | ||
activemodel (= 5.2.2) | ||
activesupport (= 5.2.2) | ||
arel (>= 9.0) | ||
activestorage (5.2.2) | ||
actionpack (= 5.2.2) | ||
activerecord (= 5.2.2) | ||
marcel (~> 0.3.1) | ||
activesupport (5.2.2) | ||
concurrent-ruby (~> 1.0, >= 1.0.2) | ||
i18n (>= 0.7, < 2) | ||
minitest (~> 5.1) | ||
tzinfo (~> 1.1) | ||
arel (9.0.0) | ||
ast (2.4.0) | ||
brakeman (4.3.1) | ||
builder (3.2.3) | ||
bundler-audit (0.6.0) | ||
bundler (~> 1.2) | ||
thor (~> 0.18) | ||
concurrent-ruby (1.1.3) | ||
crass (1.0.4) | ||
erubi (1.7.1) | ||
execjs (2.7.0) | ||
ffi (1.9.25) | ||
globalid (0.4.1) | ||
activesupport (>= 4.2.0) | ||
i18n (1.1.1) | ||
concurrent-ruby (~> 1.0) | ||
jaro_winkler (1.5.1) | ||
loofah (2.2.3) | ||
crass (~> 1.0.2) | ||
nokogiri (>= 1.5.9) | ||
mail (2.7.1) | ||
mini_mime (>= 0.1.1) | ||
marcel (0.3.3) | ||
mimemagic (~> 0.3.2) | ||
method_source (0.9.2) | ||
mimemagic (0.3.2) | ||
mini_mime (1.0.1) | ||
mini_portile2 (2.3.0) | ||
minitest (5.11.3) | ||
nio4r (2.3.1) | ||
nokogiri (1.8.5) | ||
mini_portile2 (~> 2.3.0) | ||
parallel (1.12.1) | ||
parser (2.5.3.0) | ||
ast (~> 2.4.0) | ||
pluginator (1.5.0) | ||
powerpack (0.1.2) | ||
pre-commit (0.39.0) | ||
pluginator (~> 1.5) | ||
rack (2.0.6) | ||
rack-test (1.1.0) | ||
rack (>= 1.0, < 3) | ||
rails (5.2.2) | ||
actioncable (= 5.2.2) | ||
actionmailer (= 5.2.2) | ||
actionpack (= 5.2.2) | ||
actionview (= 5.2.2) | ||
activejob (= 5.2.2) | ||
activemodel (= 5.2.2) | ||
activerecord (= 5.2.2) | ||
activestorage (= 5.2.2) | ||
activesupport (= 5.2.2) | ||
bundler (>= 1.3.0) | ||
railties (= 5.2.2) | ||
sprockets-rails (>= 2.0.0) | ||
rails-dom-testing (2.0.3) | ||
activesupport (>= 4.2.0) | ||
nokogiri (>= 1.6) | ||
rails-html-sanitizer (1.0.4) | ||
loofah (~> 2.2, >= 2.2.2) | ||
railties (5.2.2) | ||
actionpack (= 5.2.2) | ||
activesupport (= 5.2.2) | ||
method_source | ||
rake (>= 0.8.7) | ||
thor (>= 0.19.0, < 2.0) | ||
rainbow (3.0.0) | ||
rake (12.3.2) | ||
rb-fsevent (0.10.3) | ||
rb-inotify (0.9.10) | ||
ffi (>= 0.5.0, < 2) | ||
rubocop (0.61.1) | ||
jaro_winkler (~> 1.5.1) | ||
parallel (~> 1.10) | ||
parser (>= 2.5, != 2.5.1.1) | ||
powerpack (~> 0.1) | ||
rainbow (>= 2.2.2, < 4.0) | ||
ruby-progressbar (~> 1.7) | ||
unicode-display_width (~> 1.4.0) | ||
rubocop-rspec (1.30.1) | ||
rubocop (>= 0.60.0) | ||
ruby-progressbar (1.10.0) | ||
sass (3.7.2) | ||
sass-listen (~> 4.0.0) | ||
sass-listen (4.0.0) | ||
rb-fsevent (~> 0.9, >= 0.9.4) | ||
rb-inotify (~> 0.9, >= 0.9.7) | ||
scss_lint (0.57.1) | ||
rake (>= 0.9, < 13) | ||
sass (~> 3.5, >= 3.5.5) | ||
sprockets (3.7.2) | ||
concurrent-ruby (~> 1.0) | ||
rack (> 1, < 3) | ||
sprockets-rails (3.2.1) | ||
actionpack (>= 4.0) | ||
activesupport (>= 4.0) | ||
sprockets (>= 3.0.0) | ||
thor (0.20.3) | ||
thread_safe (0.3.6) | ||
tzinfo (1.2.5) | ||
thread_safe (~> 0.1) | ||
unicode-display_width (1.4.0) | ||
websocket-driver (0.7.0) | ||
websocket-extensions (>= 0.1.0) | ||
websocket-extensions (0.1.3) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
bd_lint! | ||
rails (~> 5.2.2) | ||
|
||
BUNDLED WITH | ||
1.16.1 |