1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-24 08:32:22 +02:00
revive/testdata/unexported-naming.go
SalvadorC 1412d0c6ed
new rule: unexported-naming (#443)
* new rule: unexported-naming

* better failure message
2020-07-23 02:17:20 +03:00

22 lines
714 B
Go

package fixtures
var unexported string
var Exported string
func unexportednaming(
S int, // MATCH /the symbol S is local, its name should start with a lowercase letter/
s int,
) (
Result bool, // MATCH /the symbol Result is local, its name should start with a lowercase letter/
result bool,
) {
var NotExportable int // MATCH /the symbol NotExportable is local, its name should start with a lowercase letter/
var local float32
{
OtherNotExportable := 0 // MATCH /the symbol OtherNotExportable is local, its name should start with a lowercase letter/
}
const NotExportableConstant = "local" // MATCH /the symbol NotExportableConstant is local, its name should start with a lowercase letter/
return
}