-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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 #17868 from branchvincent/npm_audit
- Loading branch information
Showing
2 changed files
with
0 additions
and
38 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
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 |
---|---|---|
|
@@ -147,27 +147,6 @@ class Foo < Formula | |
RUBY | ||
end | ||
|
||
it "reports an offense when `npm install` is called without Language::Node arguments" do | ||
expect_offense(<<~RUBY) | ||
class Foo < Formula | ||
desc "foo" | ||
url 'https://brew.sh/foo-1.0.tgz' | ||
system "npm", "install" | ||
^^^^^^^^^^^^^^^^^^^^^^^ FormulaAudit/Miscellaneous: Use Language::Node for npm install args | ||
end | ||
RUBY | ||
end | ||
|
||
it "reports no offenses when `npm install` is called without Language::Node arguments in an exempt formula" do | ||
expect_no_offenses(<<~RUBY, "/homebrew-core/Formula/[email protected]") | ||
class KibanaAT44 < Formula | ||
desc "foo" | ||
url 'https://brew.sh/foo-1.0.tgz' | ||
system "npm", "install" | ||
end | ||
RUBY | ||
end | ||
|
||
it "reports an offense when `depends_on` is called with an instance" do | ||
expect_offense(<<~RUBY) | ||
class Foo < Formula | ||
|