-
-
Notifications
You must be signed in to change notification settings - Fork 7
Linter: create rule to to add syntactical sugar when then is set to false #1918
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
base: main
Are you sure you want to change the base?
Linter: create rule to to add syntactical sugar when then is set to false #1918
Conversation
Signed-off-by: karan-palan <karanpalan007@gmail.com>
Signed-off-by: karan-palan <karanpalan007@gmail.com>
@jviotti , any comments? |
Signed-off-by: karan-palan <karanpalan007@gmail.com>
@jviotti , any comments? |
|
||
const sourcemeta::core::JSON expected = sourcemeta::core::parse_json(R"JSON({ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"not": false |
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.
@Karan-Palan As a note for you, this is a good idea for a new rule on another PR: negating a negative doesn't do anything. In this case, this line could be removed
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.
Noted!
Signed-off-by: karan-palan <karanpalan007@gmail.com>
#1897 (comment)