mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-24 15:16:19 +00:00
16 lines
1.1 KiB
Markdown
16 lines
1.1 KiB
Markdown
# gomoddirectives
|
|
|
|
[](https://github.com/sponsors/ldez)
|
|
[](https://github.com/ldez/gomoddirectives/actions)
|
|
|
|
A linter that handle [`replace`](https://golang.org/ref/mod#go-mod-file-replace), [`retract`](https://golang.org/ref/mod#go-mod-file-retract), [`exclude`](https://golang.org/ref/mod#go-mod-file-exclude) directives into `go.mod`.
|
|
|
|
Features:
|
|
|
|
- ban all [`replace`](https://golang.org/ref/mod#go-mod-file-replace) directives
|
|
- allow only local [`replace`](https://golang.org/ref/mod#go-mod-file-replace) directives
|
|
- allow only some [`replace`](https://golang.org/ref/mod#go-mod-file-replace) directives
|
|
- force explanation for [`retract`](https://golang.org/ref/mod#go-mod-file-retract) directives
|
|
- ban all [`exclude`](https://golang.org/ref/mod#go-mod-file-exclude) directives
|
|
- detect duplicated [`replace`](https://golang.org/ref/mod#go-mod-file-replace) directives
|
|
- detect identical [`replace`](https://golang.org/ref/mod#go-mod-file-replace) directives
|