Skip to content
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

Suppress lint error according to error code level markers #388

Merged
merged 12 commits into from
Nov 10, 2021

Conversation

Atry
Copy link
Contributor

@Atry Atry commented Nov 10, 2021

No description provided.

@Atry Atry force-pushed the suppress-error-code branch 3 times, most recently from 602c81d to 8cfaa1e Compare November 10, 2021 01:55
"blame": null,
"blame_pretty": null,
"blame": "cannot_be_null is null",
"blame_pretty": "cannot_be_null is null",
"description": "Invalid null check: This expression will always return `false`.\nA value of type `int` can never be null."
}
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(separate PR) It's probably worth adding range information to LinterTestTrait::getErrorAsShape() so that these tests also make sure the the information provided to IDEs is accurate. This will require updating many of the existing tests.

@Atry Atry merged commit c53996c into hhvm:main Nov 10, 2021
@Atry Atry deleted the suppress-error-code branch November 10, 2021 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants