Documentation
¶
Overview ¶
Package boringlint enforces a deliberately restricted Go dialect.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoGenericMethod = &analysis.Analyzer{ Name: "nogenericmethod", Doc: "reject generic method declarations and uses\n\n" + "nogenericmethod reports method declarations with method-local type parameters and " + "selector expressions that resolve to those methods. Methods using only receiver " + "type parameters remain allowed; use a package-level generic function instead.", URL: "https://github.com/KrishRVH/boringlint#nogenericmethod", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: runNoGenericMethod, }
NoGenericMethod rejects generic method declarations and uses.
View Source
var NoIterator = &analysis.Analyzer{ Name: "noiterator", Doc: "reject range-over-function and iterator-shaped types in project type, function, and method declarations\n\n" + "noiterator reports direct iter imports, function-valued range operands, and " + "iterator-shaped constraints, fields, parameters, and results. Accept dependency " + "iterators without naming their type, materialize them at the call boundary, and " + "iterate concrete data. Project type declarations also cannot hide iterator-shaped " + "terms behind named constraints, including mixed unions and narrowed intersections.", URL: "https://github.com/KrishRVH/boringlint#noiterator", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: runNoIterator, }
NoIterator rejects direct iter imports, iterator-shaped types in project type, function, and method declarations, iterator terms hidden by named constraints in project type declarations, and range-over-function.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
boringlint
command
Command boringlint is a vet tool for a deliberately restricted Go dialect.
|
Command boringlint is a vet tool for a deliberately restricted Go dialect. |
Click to show internal directories.
Click to hide internal directories.