github.com/ldez/gomoddirectives@v0.2.4/readme.md (about) 1 # gomoddirectives 2 3 [![Sponsor](https://img.shields.io/badge/Sponsor%20me-%E2%9D%A4%EF%B8%8F-pink)](https://github.com/sponsors/ldez) 4 [![Build Status](https://github.com/ldez/gomoddirectives/workflows/Main/badge.svg?branch=master)](https://github.com/ldez/gomoddirectives/actions) 5 6 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`. 7 8 Features: 9 10 - ban all [`replace`](https://golang.org/ref/mod#go-mod-file-replace) directives 11 - allow only local [`replace`](https://golang.org/ref/mod#go-mod-file-replace) directives 12 - allow only some [`replace`](https://golang.org/ref/mod#go-mod-file-replace) directives 13 - force explanation for [`retract`](https://golang.org/ref/mod#go-mod-file-retract) directives 14 - ban all [`exclude`](https://golang.org/ref/mod#go-mod-file-exclude) directives 15 - detect duplicated [`replace`](https://golang.org/ref/mod#go-mod-file-replace) directives 16 - detect identical [`replace`](https://golang.org/ref/mod#go-mod-file-replace) directives