1
0
mirror of https://github.com/mgechev/revive.git synced 2025-07-17 01:12:27 +02:00

docs: place redundant-build-tag before redundant-import-alias (#1288)

This commit is contained in:
Gareth Jones
2025-04-04 19:38:58 +13:00
committed by GitHub
parent 379856ae9c
commit a50141aadb

View File

@ -64,8 +64,8 @@ List of all available rules.
- [range](#range)
- [receiver-naming](#receiver-naming)
- [redefines-builtin-id](#redefines-builtin-id)
- [redundant-import-alias](#redundant-import-alias)
- [redundant-build-tag](#redundant-build-tag)
- [redundant-import-alias](#redundant-import-alias)
- [redundant-test-main-exit](#redundant-test-main-exit)
- [string-format](#string-format)
- [string-of-int](#string-of-int)
@ -866,12 +866,6 @@ Even if possible, redefining these built in names can lead to bugs very difficul
_Configuration_: N/A
## redundant-import-alias
_Description_: This rule warns on redundant import aliases. This happens when the alias used on the import statement matches the imported package name.
_Configuration_: N/A
## redundant-build-tag
_Description_: This rule warns about redundant build tag comments `// +build` when `//go:build` is present.
@ -879,6 +873,12 @@ _Description_: This rule warns about redundant build tag comments `// +build` wh
_Configuration_: N/A
## redundant-import-alias
_Description_: This rule warns on redundant import aliases. This happens when the alias used on the import statement matches the imported package name.
_Configuration_: N/A
## redundant-test-main-exit
_Description_: This rule warns about redundant `Exit` calls in the `TestMain` function, as the Go test runner automatically handles program termination starting from Go 1.15.