Skip to content

Instantly share code, notes, and snippets.

@cristaloleg
Created June 20, 2018 18:35
Show Gist options
  • Save cristaloleg/8cbccc3eedc63e4b05921bf09895fde1 to your computer and use it in GitHub Desktop.
Save cristaloleg/8cbccc3eedc63e4b05921bf09895fde1 to your computer and use it in GitHub Desktop.
Positiv example
// cmd/gocritic/testdata/positive_tests.go
/// consider `in' name instead of `IN'
/// `X' should not be capitalized
/// `Y' should not be capitalized
/// `Z' should not be capitalized
func badFunc1(IN, X int) (Y, Z int) {
/// `V' should not be capitalized
V := 1
return V, 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment