1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-21 17:16:40 +02:00
revive/testdata/exported_issue_1002.go
2024-11-11 19:31:18 +01:00

24 lines
667 B
Go

// Package golint comment
package golint
// by default code below is valid,
// but if checkPublicInterface is switched on - it should check documentation in interfaces
// Some - some interface
type Some interface {
Other // should not fail
// Correct - should do all correct
Correct()
// MATCH /comment on exported interface method Some.SemiCorrect should be of the form "SemiCorrect ..."/
SemiCorrect()
NonCorrect() // MATCH /public interface method Some.NonCorrect should be commented/
}
// Other - just to check names compatibility
type Other interface {}
// for private interfaces it doesn't check docs anyway
type somePrivate interface {
AllGood()
}