Skip to content

Commit ee25114

Browse files
committed
aa
1 parent 1469334 commit ee25114

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dangerfile.js

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const {
1616
linkToTargetRepo,
1717
prAuthor,
1818
prTitle,
19+
commonAddedLinesContains,
1920
} = require('danger-plugin-toolbox'); // eslint-disable-line import/no-extraneous-dependencies
2021

2122
const prAuthorIsBot = ['snyk-bot'].includes(prAuthor);
@@ -88,3 +89,11 @@ changedRules.forEach(curChange => {
8889
);
8990
}
9091
});
92+
93+
warn(JSON.stringify(committedFilesGrep(/.*/)));
94+
95+
commonAddedLinesContains(
96+
/.*/,
97+
/http:\/\//i,
98+
file => `The file "${file}" contains insecure URL.`,
99+
);

foo

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://www.example.com

0 commit comments

Comments
 (0)