-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: Add ui5lint-disable directives #327
Conversation
1e3a049
to
8310167
Compare
4063044
to
04cf2de
Compare
80080f3
to
d5289b4
Compare
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.
LGTM
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.
LGTM
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.
Please enhance the README to document this new feature and explain how to use it.
e75219f
to
164380f
Compare
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.
LGTM
af635f8
to
afb18be
Compare
43f69ad
to
830b097
Compare
527bed4
to
ef13407
Compare
JIRA: CPOUI5FOUNDATION-911
Sources may contain the following comments to suppress reporting of findings. Both, line and block comments are supported. The comment should contain nothing but the directive, optionally followed by a description (separated using "--"). This should behave similar to ESLint's disable comments. General syntax: // ui5lint-disable(-next)(-line) rule-1, rule2 -- Description Examples: foo(); // ui5lint-disable-line // ui5lint-disable-next-line foo(); // ui5lint-disable no-deprecated-api, no-globals sap.foo(); // ui5lint-enable no-deprecated-api, no-globals /* ui5lint-disable-next-line no-deprecated-api -- To be discussed */ foo();
This ensures correct behavior when a 'ui5lint-disable-next-line' directive is spread across multiple lines (multi-line comment), where the line directly following the comment should be affected.
Co-authored-by: Matthias Oßwald <mat.osswald@sap.com>
ef13407
to
5b8b884
Compare
@KlattG we would appreciate your feedback on the new chapter in the README file: https://github.com/SAP/ui5-linter/pull/327/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
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.
@RandomByte could you update the log output https://github.com/SAP/ui5-linter/blob/main/README.md#usage too please?
Done, thanks 👍 |
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.
Just some small suggestions, otherwise LG
Co-authored-by: Günter Klatt <57760635+KlattG@users.noreply.github.com>
Sources may contain the following comments to suppress reporting of findings. Both, line and block comments are supported. The comment should contain nothing but the directive, optionally followed by a description (separated using "--").
This should behave similar to ESLint's disable comments.
General syntax:
// ui5lint-disable(-next)(-line) rule-1, rule2 -- Description
Examples:
JIRA: CPOUI5FOUNDATION-911
Resolves #268