mirror of
https://github.com/mgechev/revive.git
synced 2025-01-10 03:17:11 +02:00
f966283f3e
* Fix rule for documentation of exported types The rule was failing in the following case: ```go // A is an awesome type type A = int ``` Because revive was skipping the leading `A`, considering it as an article. * Add "This" article and update Makefile
16 lines
342 B
Go
16 lines
342 B
Go
// Package golint comment
|
|
package golint
|
|
|
|
type (
|
|
// O is a shortcut (alias) for map[string]interface{}, e.g. a JSON object.
|
|
O = map[string]interface{}
|
|
|
|
// A is shortcut for []O.
|
|
A = []O
|
|
|
|
// This Person type is simple
|
|
Person = map[string]interface{}
|
|
)
|
|
|
|
type Foo struct{} // MATCH /exported type Foo should have comment or be unexported/
|