diff --git a/.golangci.example.yml b/.golangci.example.yml index 451e5285..b9aba9bb 100644 --- a/.golangci.example.yml +++ b/.golangci.example.yml @@ -74,7 +74,7 @@ linters-settings: # tokens count to trigger issue, 150 by default threshold: 100 errcheck: - # report about not checking of errors in type assetions: `a := b.(MyStruct)`; + # report about not checking of errors in type assertions: `a := b.(MyStruct)`; # default is false: such cases aren't reported by default. check-type-assertions: false diff --git a/README.md b/README.md index 20dbd476..154808e7 100644 --- a/README.md +++ b/README.md @@ -684,7 +684,7 @@ linters-settings: # tokens count to trigger issue, 150 by default threshold: 100 errcheck: - # report about not checking of errors in type assetions: `a := b.(MyStruct)`; + # report about not checking of errors in type assertions: `a := b.(MyStruct)`; # default is false: such cases aren't reported by default. check-type-assertions: false diff --git a/pkg/fsutils/fsutils.go b/pkg/fsutils/fsutils.go index fa5fda6a..a39c105e 100644 --- a/pkg/fsutils/fsutils.go +++ b/pkg/fsutils/fsutils.go @@ -81,7 +81,7 @@ func ShortestRelPath(path, wd string) (string, error) { path = evaledPath // make path absolute and then relative to be able to fix this case: - // we'are in /test dir, we want to normalize ../test, and have file file.go in this dir; + // we are in /test dir, we want to normalize ../test, and have file file.go in this dir; // it must have normalized path file.go, not ../test/file.go, var absPath string if filepath.IsAbs(path) { diff --git a/pkg/golinters/gofmt_common.go b/pkg/golinters/gofmt_common.go index dd740d2f..ae152ad7 100644 --- a/pkg/golinters/gofmt_common.go +++ b/pkg/golinters/gofmt_common.go @@ -196,7 +196,7 @@ func (p *hunkChangesParser) parse(h *diffpkg.Hunk) []Change { continue } - // no deletions, only addings + // no deletions, only additions p.handleAddedOnlyLines(addedLines) } diff --git a/pkg/golinters/scopelint.go b/pkg/golinters/scopelint.go index 660b3ab6..258912e0 100644 --- a/pkg/golinters/scopelint.go +++ b/pkg/golinters/scopelint.go @@ -88,7 +88,7 @@ func (f *Node) Visit(node ast.Node) ast.Visitor { } case *ast.RangeStmt: - // Memory variables declarated in range statement + // Memory variables declared in range statement switch k := typedNode.Key.(type) { case *ast.Ident: f.UnsafeObjects[k.Obj] = 0