Skip to content

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Karan-Palan
Copy link
Contributor

Signed-off-by: karan-palan <karanpalan007@gmail.com>
Signed-off-by: karan-palan <karanpalan007@gmail.com>
@Karan-Palan
Copy link
Contributor Author

@jviotti , any comments?

@Karan-Palan
Copy link
Contributor Author

@jviotti , any comments?


const sourcemeta::core::JSON expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "http://json-schema.org/draft-07/schema#",
"not": false
Copy link
Member

@jviotti jviotti Aug 11, 2025

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

Copy link
Contributor Author

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants