mgechev / revive

🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint
https://revive.run
MIT License
4.69k stars 273 forks source link

fix: enable tests in the test/utils.go file #930

Closed alexandear closed 7 months ago

alexandear commented 8 months ago

This PR renames test/utils.go to test/utils_test.go to enable two tests contained in the utils.go.

Before PR's change:

❯ go test -v ./test/... | grep -E '(TestLintName|TestLine)'
=== RUN   TestLineLengthLimit
--- PASS: TestLineLengthLimit (0.00s)

After:

❯ go test -v ./test/... | grep -E '(TestLintName|TestLine)'
=== RUN   TestLineLengthLimit
--- PASS: TestLineLengthLimit (0.00s)
=== RUN   TestLine
--- PASS: TestLine (0.00s)
=== RUN   TestLintName
--- PASS: TestLintName (0.00s)
mgechev commented 7 months ago

Looks like there are some conflicts. Could you rebase?

alexandear commented 7 months ago

@mgechev rebased

chavacava commented 7 months ago

Thank you @alexandear