diff --git a/checkers/deprecatedComment_checker.go b/checkers/deprecatedComment_checker.go index 15235919c..d68e32fa8 100644 --- a/checkers/deprecatedComment_checker.go +++ b/checkers/deprecatedComment_checker.go @@ -48,6 +48,7 @@ func FuncOld() int` "Deprecate: ", "Derpecate: ", "Derpecated: ", + "Depreacted: ", } for i := range c.commonTypos { c.commonTypos[i] = strings.ToUpper(c.commonTypos[i]) diff --git a/checkers/testdata/deprecatedComment/positive_tests.go b/checkers/testdata/deprecatedComment/positive_tests.go index 6de204777..c613e84bd 100644 --- a/checkers/testdata/deprecatedComment/positive_tests.go +++ b/checkers/testdata/deprecatedComment/positive_tests.go @@ -128,6 +128,10 @@ var ( /*! typo in `DERPecate`; should be `Deprecated` */ // DERPecate: ... _ = 0 + + /*! typo in `Depreacted`; should be `Deprecated` */ + // Depreacted: ... + _ = 0 ) /*! the proper format is `Deprecated: ` */