Enable review linter with exported docs check (#1647)

Exported function and methods should have comments. This warns on undocumented exported functions and methods.
This commit is contained in:
Maycon Santos
2024-02-29 16:05:31 +01:00
committed by GitHub
parent 190698bcf2
commit 9a6814deff
5 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const (
)
// ActivityDescriber is an interface that describes an activity
type ActivityDescriber interface {
type ActivityDescriber interface { //nolint:revive
StringCode() string
Message() string
}
+2 -2
View File
@@ -46,7 +46,7 @@ type Peer struct {
Location Location `gorm:"embedded;embeddedPrefix:location_"`
}
type PeerStatus struct {
type PeerStatus struct { //nolint:revive
// LastSeen is the last time peer was connected to the management service
LastSeen time.Time
// Connected indicates whether peer is connected to the management service or not
@@ -72,7 +72,7 @@ type NetworkAddress struct {
}
// PeerSystemMeta is a metadata of a Peer machine system
type PeerSystemMeta struct {
type PeerSystemMeta struct { //nolint:revive
Hostname string
GoOS string
Kernel string