Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 2ceaba7

Browse files
chore: add skip notice
1 parent ffe3270 commit 2ceaba7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/checkPush.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,17 @@ export async function checkPush(remoteShaArg, localShaArg) {
145145
if (violations.length === 0 && errors.length === 0) {
146146
process.exit(0);
147147
} else {
148+
printEmptyLine();
149+
printInfo("Do you consider these violations as false positives?");
150+
printSuggestion(
151+
" ↳ You can add the following flag to your `git push` to bypass this check:",
152+
"--no-verify"
153+
);
154+
printSuggestion(
155+
" ↳ Consider commenting on those rules in the Codiga Hub, so the maintainer can improve them:",
156+
"https://app.codiga.io/hub/rulesets"
157+
);
158+
printEmptyLine();
148159
process.exit(1);
149160
}
150161
}

0 commit comments

Comments
 (0)