Documentation
¶
Overview ¶
Package manualpathconcat implements a Go analysis linter that flags string concatenation using a literal "/" separator to build filesystem paths (e.g. dir + "/" + file), which should use filepath.Join (or path.Join for slash-separated paths) instead.
Manual "/" concatenation is error-prone: it can produce double slashes when an operand already ends with a separator, it skips the Clean-style normalization that filepath.Join performs, and it hard-codes the forward slash separator instead of the OS-specific one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = analyzerutil.New(linterName, `reports manual "/" separator string concatenation used to build paths (e.g. dir + "/" + file) that should use filepath.Join or path.Join`, run)
Analyzer is the manual-path-concat analysis pass.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.