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
|
# tokens count to trigger issue, 150 by default
|
||||||
threshold: 100
|
threshold: 100
|
||||||
errcheck:
|
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.
|
# default is false: such cases aren't reported by default.
|
||||||
check-type-assertions: false
|
check-type-assertions: false
|
||||||
|
|
||||||
|
@ -684,7 +684,7 @@ linters-settings:
|
|||||||
# tokens count to trigger issue, 150 by default
|
# tokens count to trigger issue, 150 by default
|
||||||
threshold: 100
|
threshold: 100
|
||||||
errcheck:
|
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.
|
# default is false: such cases aren't reported by default.
|
||||||
check-type-assertions: false
|
check-type-assertions: false
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ func ShortestRelPath(path, wd string) (string, error) {
|
|||||||
path = evaledPath
|
path = evaledPath
|
||||||
|
|
||||||
// make path absolute and then relative to be able to fix this case:
|
// 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,
|
// it must have normalized path file.go, not ../test/file.go,
|
||||||
var absPath string
|
var absPath string
|
||||||
if filepath.IsAbs(path) {
|
if filepath.IsAbs(path) {
|
||||||
|
@ -196,7 +196,7 @@ func (p *hunkChangesParser) parse(h *diffpkg.Hunk) []Change {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// no deletions, only addings
|
// no deletions, only additions
|
||||||
p.handleAddedOnlyLines(addedLines)
|
p.handleAddedOnlyLines(addedLines)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ func (f *Node) Visit(node ast.Node) ast.Visitor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case *ast.RangeStmt:
|
case *ast.RangeStmt:
|
||||||
// Memory variables declarated in range statement
|
// Memory variables declared in range statement
|
||||||
switch k := typedNode.Key.(type) {
|
switch k := typedNode.Key.(type) {
|
||||||
case *ast.Ident:
|
case *ast.Ident:
|
||||||
f.UnsafeObjects[k.Obj] = 0
|
f.UnsafeObjects[k.Obj] = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user