Fix misspelled words. (#952)
This commit is contained in:
parent
4f3e410581
commit
7a95e5ad30
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -196,7 +196,7 @@ func (p *hunkChangesParser) parse(h *diffpkg.Hunk) []Change {
|
||||
continue
|
||||
}
|
||||
|
||||
// no deletions, only addings
|
||||
// no deletions, only additions
|
||||
p.handleAddedOnlyLines(addedLines)
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user