summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/intqa/ideas.go
blob: 2438b88a9d501494b9db5b3c7a28f15b4ec91c24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package intqa

// XXX: It might be nice to check all comments of the form "See XYZ"
// to see whether XYZ actually exists. The scope should be the current type,
// then the current package, then a package-qualified identifier.
// As if there were a "_ = XYZ" at the beginning of the function.

// XXX: All methods should be defined in the same file as their receiver type.
// If that is not possible, there should only be a small list of exceptions.

// XXX: If there is a constructor for a type, only that constructor may be used
// for constructing objects. All other forms (var x Type; x := &Type{}) should be forbidden.