Antonboom / testifylint

The Golang linter that checks usage of github.com/stretchr/testify.
https://github.com/stretchr/testify
MIT License
101 stars 8 forks source link

Fix `formatter` when not importing assert package #171

Closed pgimalac closed 1 month ago

pgimalac commented 3 months ago

Fixes https://github.com/Antonboom/testifylint/issues/170.

I tested manually that this fixes the issue on the example provided in the issue.

I wasn't able to add a test as it would require a whole new test suite (the bug was only when not importing the assert package), let me know if I should try to do that.

Antonboom commented 1 month ago

@pgimalac thanks for contribution

I added tests and other corner cases in separate PR 👌