package cmdcheck
import "github.com/Diarkis/diarkis/analysis/passes/cmdcheck"
Package cmdcheck defines an analyzer that detects duplicate usage of unique Diarkis server command codes.
Analyzer cmdcheck
cmdcheck: check that there are no conflicting Diarkis cmd definitions
We are checking to make sure that the following doesn't happen within cmd definitions:
Ex: We have two conflicting definitions
const CmdLeaveRoom uint16 = 103 const CmdP2PInit uint16 = 103
Index
Variables
var Analyzer = &analysis.Analyzer{ Name: "cmdcheck", Doc: "Checks for duplicate command codes within Diarkis util/commands.go", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer for cmdcheck; checks for duplicate command codes within Diarkis util/commands.go
Directories
cmd | The logfcheck command applies the github.com/Diarkis/diarkis/analysis/logfcheck analysis to the specified packages of Go source code. |