aquasecurity / trivy

Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
https://aquasecurity.github.io/trivy
Apache License 2.0
22.14k stars 2.18k forks source link

chore: enable float-compare rule from testifylint #6967

Closed mmorel-35 closed 1 week ago

mmorel-35 commented 2 weeks ago

Description

enable and fixes float-compare rule from testifylint

simar7 commented 2 weeks ago

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

mmorel-35 commented 2 weeks ago

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 .