Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
746cad18dc |
No files matched your search
+4
-7
@@ -4,8 +4,8 @@ version: "2"
|
|||||||
# linters.settings, not top-level linters-settings) so that the
|
# linters.settings, not top-level linters-settings) so that the
|
||||||
# thresholds below are actually applied by golangci-lint >= v2.
|
# thresholds below are actually applied by golangci-lint >= v2.
|
||||||
#
|
#
|
||||||
# This file has no formatters section, so golangci-lint run does not run
|
# This file has no formatters section, so golangci-lint run checks no
|
||||||
# gofmt. A repository's script/fmt-check runs it, on the host.
|
# formatting. A repository's script/fmt-check checks it, on the host.
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
@@ -44,9 +44,7 @@ linters:
|
|||||||
# itself must never have, so a file that is not a test must not import
|
# itself must never have, so a file that is not a test must not import
|
||||||
# one. Test files, and the files inside a package whose directory name
|
# one. Test files, and the files inside a package whose directory name
|
||||||
# ends in `test`, are where that code belongs, and are exempt. A package
|
# ends in `test`, are where that code belongs, and are exempt. A package
|
||||||
# in a subdirectory of that directory is not exempt. `${base-path}` is
|
# in a subdirectory of that directory is not exempt.
|
||||||
# the directory holding this file, so the name of the directory a
|
|
||||||
# repository is cloned into does not count.
|
|
||||||
#
|
#
|
||||||
# The deny list below is the one part of this file a repository is
|
# The deny list below is the one part of this file a repository is
|
||||||
# expected to extend, and the only part it may. depguard matches an
|
# expected to extend, and the only part it may. depguard matches an
|
||||||
@@ -61,7 +59,7 @@ linters:
|
|||||||
files:
|
files:
|
||||||
- "$all"
|
- "$all"
|
||||||
- "!$test"
|
- "!$test"
|
||||||
- "!${base-path}**/*test/*"
|
- "!**/*test/*"
|
||||||
deny:
|
deny:
|
||||||
- pkg: net/http/httptest
|
- pkg: net/http/httptest
|
||||||
desc: >-
|
desc: >-
|
||||||
@@ -118,4 +116,3 @@ linters:
|
|||||||
issues:
|
issues:
|
||||||
max-issues-per-linter: 0
|
max-issues-per-linter: 0
|
||||||
max-same-issues: 0
|
max-same-issues: 0
|
||||||
uniq-by-line: false
|
|
||||||
@@ -29,19 +29,15 @@ fmt-check, and commit.
|
|||||||
misses behind issue 105.
|
misses behind issue 105.
|
||||||
- The `depguard` exemption covers only the files directly inside a directory
|
- The `depguard` exemption covers only the files directly inside a directory
|
||||||
whose name ends in `test`. It used to reach every directory below that one
|
whose name ends in `test`. It used to reach every directory below that one
|
||||||
too. The name of the directory a repository is cloned into no longer
|
too.
|
||||||
counts.
|
|
||||||
- `gomodguard_v2` also blocks `github.com/go-redis/redis/v9`, whose
|
- `gomodguard_v2` also blocks `github.com/go-redis/redis/v9`, whose
|
||||||
pre-releases can still be imported under that path.
|
pre-releases can still be imported under that path.
|
||||||
- `uniq-by-line` is now `false`, so a line that trips two linters reports
|
- Three comments now say what is true: `exhaustruct` is listed as
|
||||||
both findings.
|
deprecated, the test double is named `github.com/go-redis/redismock/v9`,
|
||||||
- Three comments are corrected:
|
and the claim that every blocked module is in the Go package defaults is
|
||||||
- `exhaustruct` is listed as deprecated.
|
|
||||||
- The test double is named `github.com/go-redis/redismock/v9`.
|
|
||||||
- The claim that every blocked module is in the Go package defaults is
|
|
||||||
gone.
|
gone.
|
||||||
- A comment says the file has no `formatters` section, so
|
- A comment says the file has no `formatters` section, so
|
||||||
`golangci-lint run` does not run `gofmt`.
|
`golangci-lint run` checks no formatting.
|
||||||
- 2026-10-27: Added `prompts/API_POLICIES.md`
|
- 2026-10-27: Added `prompts/API_POLICIES.md`
|
||||||
(https://git.eeqj.de/sneak/prompts/issues/137). It holds sneak's rule from
|
(https://git.eeqj.de/sneak/prompts/issues/137). It holds sneak's rule from
|
||||||
https://git.eeqj.de/sneak/routewatch/issues/199 that a value in an API
|
https://git.eeqj.de/sneak/routewatch/issues/199 that a value in an API
|
||||||
|
|||||||
Reference in new issue
Block a user