Files
Patrick Ohly 8532934eab golangci-lint: verify expected results
Unexpected linter reports are found when verify fails, but accidentally
disabling or breaking a linter check (for example, when editing the
configuration files or updating golangci-lint) could only be detected manually
by adding code which triggers the linter.

Now test cases in hack/testdata/golangci-lint provide expected linter
messages to detect such regressions. The test in test/integration/golangci-lint
verifies that all of them are reported and also fails when there are unexpected
reports for things which we intentionally do not enforce.

The test also verifies that all enabled linters are either covered or
documented as not being tested via "<linter> untested" comments. Stale comments
like that also cause a test failure.
2026-10-16 17:44:04 +02:00
..
2018-12-11 09:19:52 -08:00
2025-07-09 16:38:14 +05:30
2019-02-25 16:31:03 -08:00
2024-06-26 01:07:24 +08:00
2025-07-09 16:38:14 +05:30
2018-12-19 11:19:12 -05:00
2022-02-14 10:55:35 -07:00
2025-07-09 16:38:14 +05:30
2025-07-09 16:38:14 +05:30

Keys in this directory are generated for testing purposes only.