-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ignoreInvalidInlineComments - new option to not post invalid-inline-c… #1061
ignoreInvalidInlineComments - new option to not post invalid-inline-c… #1061
Conversation
…omments in main results comment
new Promise<any>((_, reject) => reject()) | ||
) | ||
platform.createInlineComment = apiFailureMock | ||
platform.createInlineComment = jest.fn().mockReturnValue(new Promise<any>((_, reject) => reject())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really a change.
prettier reformatted these lines, and I removed the redundant apiFailureMock
.
{ message: "1", file: "1.swift", line: 1 }, | ||
{ message: "2", file: "2.swift", line: 2 }, | ||
], | ||
warnings: [{ message: "1", file: "1.swift", line: 1 }, { message: "2", file: "2.swift", line: 2 }], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from here it's all prettier's changes
@@ -43,3 +45,8 @@ export default (command: any) => | |||
.option("-u, --passURLForDSL", "[dev] Use a custom URL to send the Danger DSL into the sub-process") | |||
.option("-f, --failOnErrors", "Fail if there are fails in the danger report", false) | |||
.option("--use-github-checks", "Use GitHub Checks", false) | |||
.option( | |||
"-iiic, --ignoreInvalidInlineComments", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iiic
?
WDYT?
should i just remove the short form?
I'm cool with this, but what about |
Awesome |
@orta Anyway, if you think this is the right name - who am I to argue. |
Good point. I agree with you, it also changes behavior, maybe we should go with Nah, don't worry about the versions, I deploy manually and do that |
You mean |
I'd like
Thanks! |
Then we are decided. I think this PR is ready to merge... |
rock |
This is shipped |
Just tested it - works like a charm. |
I am a guy from the office and I can confirm that I am thrilled. |
haha, nice! |
…omments in main results comment
Motivation for this feature:
My Dangerfile scans all changed files entirely*, and often finds warnings in lines that have not changed.
I want to ignore these warnings.
So I can do this in my own Dangerfile, but I thought this feature would be useful.
If you agree - I can add unit-tests.
* My dangerfile runs a static analysis tool (detekt, for kotlin), and publishes the result. that's why it often finds warnings in unchanged lines.