We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1469334 commit ee25114Copy full SHA for ee25114
dangerfile.js
@@ -16,6 +16,7 @@ const {
16
linkToTargetRepo,
17
prAuthor,
18
prTitle,
19
+ commonAddedLinesContains,
20
} = require('danger-plugin-toolbox'); // eslint-disable-line import/no-extraneous-dependencies
21
22
const prAuthorIsBot = ['snyk-bot'].includes(prAuthor);
@@ -88,3 +89,11 @@ changedRules.forEach(curChange => {
88
89
);
90
}
91
});
92
+
93
+warn(JSON.stringify(committedFilesGrep(/.*/)));
94
95
+commonAddedLinesContains(
96
+ /.*/,
97
+ /http:\/\//i,
98
+ file => `The file "${file}" contains insecure URL.`,
99
+);
foo
@@ -0,0 +1 @@
1
+http://www.example.com
0 commit comments