Skip to content

Commit

Permalink
Pass -abspath to errcheck to avoid broken paths
Browse files Browse the repository at this point in the history
  • Loading branch information
pdf committed Oct 10, 2015
1 parent ed67cd1 commit f5c3d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var (
"gofmt": `gofmt -l -s ./*.go:^(?P<path>[^\n]+)$`,
"gotype": "gotype -e {tests=-a} .:PATH:LINE:COL:MESSAGE",
"goimports": `goimports -l ./*.go:^(?P<path>[^\n]+)$`,
"errcheck": `errcheck .:^(?P<path>[^:]+):(?P<line>\d+):(?P<col>\d+)\t(?P<message>.*)$`,
"errcheck": `errcheck -abspath .:^(?P<path>[^:]+):(?P<line>\d+):(?P<col>\d+)\t(?P<message>.*)$`,
"varcheck": `varcheck .:^(?:[^:]+: )?(?P<path>[^:]+):(?P<line>\d+):(?P<col>\d+):\s*(?P<message>\w+)$`,
"structcheck": `structcheck {tests=-t} .:^(?:[^:]+: )?(?P<path>[^:]+):(?P<line>\d+):(?P<col>\d+):\s*(?P<message>.+)$`,
"defercheck": `defercheck .:^(?:[^:]+: )?(?P<path>[^:]+):(?P<line>\d+):(?P<col>\d+):\s*(?P<message>.+)$`,
Expand Down

1 comment on commit f5c3d44

@alcortesm
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

Please sign in to comment.