{"action":"created","issue":{"url":"https://api.github.com/repos/golang/lint/issues/148","labels_url":"https://api.github.com/repos/golang/lint/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/golang/lint/issues/148/comments","events_url":"https://api.github.com/repos/golang/lint/issues/148/events","html_url":"https://github.com/golang/lint/pull/148","id":97351023,"number":148,"title":"Add //golint:ignore comment support to skip files.","user":{"login":"tmc","id":3977,"avatar_url":"https://avatars.githubusercontent.com/u/3977?v=3","gravatar_id":"","url":"https://api.github.com/users/tmc","html_url":"https://github.com/tmc","followers_url":"https://api.github.com/users/tmc/followers","following_url":"https://api.github.com/users/tmc/following{/other_user}","gists_url":"https://api.github.com/users/tmc/gists{/gist_id}","starred_url":"https://api.github.com/users/tmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmc/subscriptions","organizations_url":"https://api.github.com/users/tmc/orgs","repos_url":"https://api.github.com/users/tmc/repos","events_url":"https://api.github.com/users/tmc/events{/privacy}","received_events_url":"https://api.github.com/users/tmc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-26T21:17:30Z","updated_at":"2015-09-22T00:48:59Z","closed_at":"2015-07-26T22:19:45Z","pull_request":{"url":"https://api.github.com/repos/golang/lint/pulls/148","html_url":"https://github.com/golang/lint/pull/148","diff_url":"https://github.com/golang/lint/pull/148.diff","patch_url":"https://github.com/golang/lint/pull/148.patch"},"body":"This can be useful in the case of generated files such as protoc-gen-go generated files."},"comment":{"url":"https://api.github.com/repos/golang/lint/issues/comments/142148482","html_url":"https://github.com/golang/lint/pull/148#issuecomment-142148482","issue_url":"https://api.github.com/repos/golang/lint/issues/148","id":142148482,"user":{"login":"dsymonds","id":31506,"avatar_url":"https://avatars.githubusercontent.com/u/31506?v=3","gravatar_id":"","url":"https://api.github.com/users/dsymonds","html_url":"https://github.com/dsymonds","followers_url":"https://api.github.com/users/dsymonds/followers","following_url":"https://api.github.com/users/dsymonds/following{/other_user}","gists_url":"https://api.github.com/users/dsymonds/gists{/gist_id}","starred_url":"https://api.github.com/users/dsymonds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsymonds/subscriptions","organizations_url":"https://api.github.com/users/dsymonds/orgs","repos_url":"https://api.github.com/users/dsymonds/repos","events_url":"https://api.github.com/users/dsymonds/events{/privacy}","received_events_url":"https://api.github.com/users/dsymonds/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T00:48:59Z","updated_at":"2015-09-22T00:48:59Z","body":"If you're trying to automate golint, you should first automate the selection of what files you don't want it to run on, and then only run it on the remaining files. That's how I'd exclude go:generate'd code.\r\n\r\nIt's important to not use golint in a CI environment for exactly the reasons you stated, and what the README says. It might start off as simply \"automated warnings\", but then someone will want to make those warnings into errors or hard requirements, and then we're back to it being not a useful style tool but a mandatory code enforcer, which it is definitely not meant to be."}}