Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions linters/rightshift/rightshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ var Analyzer = &analysis.Analyzer{

var analyzerForTests = &analysis.Analyzer{
Name: "testrightshift",
Doc: "check for pointer comparison (for tests)",
Doc: "check for rightshift operation (for tests)",
Run: func(p *analysis.Pass) (interface{}, error) { return run(true, p) },
ResultType: reflect.TypeOf(Result{}),
}

// rightShiftError indicates the position of pointer comparison.
// rightShiftError indicates the position of rightshift operation.
type rightShiftError struct {
Pos token.Position
Message string
Expand Down Expand Up @@ -53,7 +53,7 @@ func run(dryRun bool, pass *analysis.Pass) (interface{}, error) {
pass.Report(analysis.Diagnostic{
Pos: pass.Fset.File(f.Pos()).Pos(err.Pos.Offset),
Message: err.Message,
Category: "pointercheck",
Category: "rightshift",
})
}
}
Expand Down
Loading