Skip to Content
marmot
DiagnosticsError codes

Every diagnostic has a stable code. marmot explain CODE prints the same description in the terminal, and marmot explain -json CODE as JSON.

Build errors

CodeWhat it means
M0000error
M0001syntax error
M0002undefined name
M0003no such field or method
M0004declared and not used
M0005imported and not used
M0006type mismatch
M0007mismatched types
M0008wrong number of return values
M0009wrong number of arguments
M0010missing return
M0011package not found
M0012assignment count mismatch
M0013no new variables
M0014does not implement interface
M0015redeclared
M0016invalid operation
M0017bad command line
M0018link error
M0019internal compiler error
M0020runtime panic
M0021fatal runtime error
M0022test failed
M0023import cycle
M0024name not exported
M0025not supported by marmot
M0026type argument does not satisfy constraint
M0027cannot infer type argument
M0028shadowed variable
M0029unknown struct field

Check findings and reports

CodeWhat it means
M0100vet finding
M0101lint finding
M0102modernize suggestion
M0103not formatted
M0104gopls finding
M0105known vulnerability
M0106go.mod not tidy
M0107cross build failure
M0108unreachable function
M0109switch misses cases
M0110possible nil dereference
M0111heap allocation

On this page

Was this page helpful?

Report an issueOpen issues