qax-os / goreporter

A Golang tool that does static analysis, unit testing, code review and generate code quality report.
Apache License 2.0
3.13k stars 273 forks source link

Constants - Uppercase reported as error #83

Open brianoh opened 4 years ago

brianoh commented 4 years ago

I think that the reporting on constants may be incorrect. GoReporter states that uppercase is incorrect, however that is not the case for constants. viz:

GoReporter: "don't use ALL_CAPS in Go names; use CamelCase"

https://www.golangprograms.com/go-language/constants.html

Naming Conventions for Golang Constants By convention, constant names are usually written in uppercase letters. This is for their easy identification and differentiation from variables in the source code.