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 float-compare rule from testifylint #6967

Merged
merged 14 commits into from
Jun 26, 2024

Conversation

mmorel-35
Copy link
Contributor

@mmorel-35 mmorel-35 commented Jun 19, 2024

Description

enable and fixes float-compare rule from testifylint

@mmorel-35 mmorel-35 marked this pull request as ready for review June 19, 2024 13:42
@mmorel-35 mmorel-35 marked this pull request as draft June 19, 2024 14:37
@mmorel-35 mmorel-35 marked this pull request as ready for review June 19, 2024 17:10
@mmorel-35 mmorel-35 requested a review from nikpivkin June 19, 2024 17:11
@simar7
Copy link
Member

simar7 commented Jun 20, 2024

I'm curious why do we expect the assertions to have any delta at all?

@mmorel-35
Copy link
Contributor Author

First, see https://github.com/Antonboom/testifylint?tab=readme-ov-file#float-compare

We don’t expect a delta, that’s why I used InEpsilon instead of InDelta .

Signed-off-by: knqyf263 <[email protected]>
@knqyf263 knqyf263 enabled auto-merge June 26, 2024 11:49
@knqyf263 knqyf263 added this pull request to the merge queue Jun 26, 2024
Merged via the queue into aquasecurity:main with commit 0ccdbfb Jun 26, 2024
12 checks passed
@mmorel-35 mmorel-35 deleted the testifylint/float-compare branch June 26, 2024 13:58
skahn007gl pushed a commit to skahn007gl/trivy that referenced this pull request Jul 23, 2024
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.

4 participants