Documentation
¶
Overview ¶
Package stringlint provides a Go analyzer that detects direct string comparison patterns and recommends using github.com/wego/pkg/strings utility functions instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "stringlint", Doc: "recommends using github.com/wego/pkg/strings functions over direct string comparisons", URL: "https://github.com/wego/pkg/linters/stringlint", Run: run, Requires: []*analysis.Analyzer{inspect.Analyzer}, }
Analyzer is the stringlint analyzer that checks for direct string comparisons.
Functions ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
stringlint
command
Command stringlint runs the stringlint analyzer.
|
Command stringlint runs the stringlint analyzer. |
Click to show internal directories.
Click to hide internal directories.