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

[chore]: enable useless-assert rule from testifylint #35219

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

mmorel-35
Copy link
Contributor

Description

Testifylint is a linter that provides best practices with the use of testify.

This PR enables useless-assert rule from testifylint

@mmorel-35 mmorel-35 force-pushed the testifylint/useless-assert branch from ca74d7d to 6890a5f Compare September 16, 2024 19:49
@mmorel-35 mmorel-35 force-pushed the testifylint/useless-assert branch 2 times, most recently from f04926e to 25acd5f Compare September 16, 2024 20:13
@mmorel-35
Copy link
Contributor Author

@codeboten ,
Any idea on how to solve this :

Error: opencensus/resource_to_oc_test.go:214:6: useless-assert: asserting of the same variable (testifylint)

@mmorel-35 mmorel-35 force-pushed the testifylint/useless-assert branch 2 times, most recently from 3175542 to 9000ed3 Compare September 16, 2024 21:18
@mmorel-35 mmorel-35 marked this pull request as ready for review September 16, 2024 21:37
@mmorel-35 mmorel-35 requested a review from a team September 16, 2024 21:37
@mmorel-35 mmorel-35 requested a review from codeboten September 16, 2024 21:37
@mmorel-35 mmorel-35 force-pushed the testifylint/useless-assert branch 2 times, most recently from c7133d6 to 166d473 Compare September 18, 2024 14:31
@mmorel-35 mmorel-35 force-pushed the testifylint/useless-assert branch from 166d473 to 436cc58 Compare September 18, 2024 21:04
@mmorel-35 mmorel-35 requested a review from a team as a code owner September 18, 2024 21:04
@codeboten codeboten merged commit a60e6d2 into open-telemetry:main Sep 18, 2024
154 of 156 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 18, 2024
@mmorel-35 mmorel-35 deleted the testifylint/useless-assert branch September 18, 2024 21:40
jriguera pushed a commit to springernature/opentelemetry-collector-contrib that referenced this pull request Oct 4, 2024
…35219)

#### Description

Testifylint is a linter that provides best practices with the use of
testify.

This PR enables
[useless-assert](https://github.com/Antonboom/testifylint?tab=readme-ov-file#useless-assert)
rule from [testifylint](https://github.com/Antonboom/testifylint)

Signed-off-by: Matthieu MOREL <[email protected]>
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