Documentation ¶
Overview ¶
Package comparesame implements a static analyzer to ensure that code does not contain comparisons of identical expressions.
Index ¶
Constants ¶
View Source
const Doc = "Tool to detect comparison (==, !=, >=, <=, >, <) of identical expressions."
Doc explaining the tool.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "comparesame", Doc: Doc, Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer runs static analysis.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.