style(lint): drop duplicate rule code declaration

This commit is contained in:
2026-08-29 15:14:49 +02:00
parent 49572efe16
commit 970df7c32a
2 changed files with 32 additions and 4 deletions
+2 -4
View File
@@ -11,12 +11,10 @@ import (
"sourcedock.dev/petrbalvin/gasm-devkit/token"
)
// CodeNonportableRegister flags R/E-prefixed amd64 register spellings.
const CodeNonportableRegister = "nonportable-register-name"
// amd64WordNames are the canonical 64-bit register spellings of go tool asm:
// the assembler has no RAX/EAX/RBX forms, and a file using them assembles
// under gasm but fails under the toolchain it must ship with.
// under gasm but fails under the toolchain it must ship with. The rule code
// (CodeNonportableRegister) is declared in lint.go.
var amd64WordNames = map[string]string{
"AX": "AX", "BX": "BX", "CX": "CX", "DX": "DX",
"SI": "SI", "DI": "DI", "BP": "BP", "SP": "SP",