Check names of interface methods.
diff --git a/lint.go b/lint.go
index b63914b..bc809a3 100644
--- a/lint.go
+++ b/lint.go
@@ -323,6 +323,12 @@
}
}
}
+ case *ast.InterfaceType:
+ for _, f := range v.Methods.List {
+ for _, id := range f.Names {
+ check(id, "interface method")
+ }
+ }
case *ast.StructType:
for _, f := range v.Fields.List {
for _, id := range f.Names {
diff --git a/testdata/names.go b/testdata/names.go
index 25f5901..004cae9 100644
--- a/testdata/names.go
+++ b/testdata/names.go
@@ -34,3 +34,7 @@
func g() (no_way int) {} // MATCH /underscore.*func result.*no_way/
func (t *t_wow) f(more_under string) {} // MATCH /underscore.*method parameter.*more_under/
func (t *t_wow) g() (still_more string) {} // MATCH /underscore.*method result.*still_more/
+
+type i interface {
+ CheckHtmlPath() string // MATCH /interface method.*CheckHtmlPath.*CheckHTMLPath/
+}