exercism / go-analyzer

GNU Affero General Public License v3.0
10 stars 12 forks source link

Use gocritic to check variable names more closely #1

Open tehsphinx opened 5 years ago

tehsphinx commented 5 years ago

It does stuff like this:

devicelist/timingdevicelist.go:15:35: captLocal: `Links' should not be capitalized (gocritic)
func GetDeviceList(devices *List, Links *linklist.List, custIDs []int) TimingDeviceAnswer {
                                  ^
devicelist/timingdevicelist.go:254:14: captLocal: `ID' should not be capitalized (gocritic)
func buildID(ID int) string {
             ^