{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/18432","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/18432/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/18432/comments","events_url":"https://api.github.com/repos/golang/go/issues/18432/events","html_url":"https://github.com/golang/go/issues/18432","id":197612684,"number":18432,"title":"\"go vet\" needs a 'ignore this' mechanism","user":{"login":"brianolson","id":1033975,"avatar_url":"https://avatars.githubusercontent.com/u/1033975?v=3","gravatar_id":"","url":"https://api.github.com/users/brianolson","html_url":"https://github.com/brianolson","followers_url":"https://api.github.com/users/brianolson/followers","following_url":"https://api.github.com/users/brianolson/following{/other_user}","gists_url":"https://api.github.com/users/brianolson/gists{/gist_id}","starred_url":"https://api.github.com/users/brianolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianolson/subscriptions","organizations_url":"https://api.github.com/users/brianolson/orgs","repos_url":"https://api.github.com/users/brianolson/repos","events_url":"https://api.github.com/users/brianolson/events{/privacy}","received_events_url":"https://api.github.com/users/brianolson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-26T19:01:31Z","updated_at":"2016-12-26T19:08:05Z","closed_at":null,"body":"### What version of Go are you using (`go version`)?\r\n\r\ngo version go1.7.4 darwin/amd64\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"darwin\"\r\nGOOS=\"darwin\"\r\nGOPATH=\"/Users/bolson/psrc/gopath\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/local/go\"\r\nGOTOOLDIR=\"/usr/local/go/pkg/tool/darwin_amd64\"\r\nCC=\"clang\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/rh/3lrlb3dx2gj8s_5yyxb2vsyc0000gn/T/go-build257955075=/tmp/go-build -gno-record-gcc-switches -fno-common\"\r\nCXX=\"clang++\"\r\nCGO_ENABLED=\"1\"\r\n\r\n### What did you do?\r\n\r\na.go:\r\n`\r\npackage main\r\n\r\nimport \"fmt\"\r\nimport \"os\"\r\n\r\nfunc main() {\r\n\tout := os.Stdout\r\n\ti := 1\r\n\tfmt.Fprint(out, \"I am 100% sure what I'm doing here\\n\") // go vet ignore -- wouldn't it be nice if there were a directive to silence the `go vet` warning here?\r\n}\r\n`\r\n\r\n### What did you expect to see?\r\n\r\n`go vet` should be able to have no complaint about this file\r\n\r\n### What did you see instead?\r\n\r\n$ go vet\r\na.go:9: possible formatting directive in Fprint call\r\nexit status 1\r\n\r\nIf this feature exists and is undocumented, it needs to be documented\r\nhttps://golang.org/cmd/vet/\r\nSee also prior issue of excessive warnings like this\r\nhttps://github.com/golang/go/issues/6407"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/269235329","html_url":"https://github.com/golang/go/issues/18432#issuecomment-269235329","issue_url":"https://api.github.com/repos/golang/go/issues/18432","id":269235329,"user":{"login":"ALTree","id":3586803,"avatar_url":"https://avatars.githubusercontent.com/u/3586803?v=3","gravatar_id":"","url":"https://api.github.com/users/ALTree","html_url":"https://github.com/ALTree","followers_url":"https://api.github.com/users/ALTree/followers","following_url":"https://api.github.com/users/ALTree/following{/other_user}","gists_url":"https://api.github.com/users/ALTree/gists{/gist_id}","starred_url":"https://api.github.com/users/ALTree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ALTree/subscriptions","organizations_url":"https://api.github.com/users/ALTree/orgs","repos_url":"https://api.github.com/users/ALTree/repos","events_url":"https://api.github.com/users/ALTree/events{/privacy}","received_events_url":"https://api.github.com/users/ALTree/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T19:08:05Z","updated_at":"2016-12-26T19:08:05Z","body":"This was discussed in #17058. Note that the introduction of a new directive/magic comment to be used to silence vet warnings was and unanimously rejected."}}
{"actor":{"display_login":"ALTree"}}