{"action":"created","issue":{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/1039","labels_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/1039/labels{/name}","comments_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/1039/comments","events_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/1039/events","html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/1039","id":97074472,"number":1039,"title":"Generated code should not be analyzed","user":{"login":"wekempf","id":3430823,"avatar_url":"https://avatars.githubusercontent.com/u/3430823?v=3","gravatar_id":"","url":"https://api.github.com/users/wekempf","html_url":"https://github.com/wekempf","followers_url":"https://api.github.com/users/wekempf/followers","following_url":"https://api.github.com/users/wekempf/following{/other_user}","gists_url":"https://api.github.com/users/wekempf/gists{/gist_id}","starred_url":"https://api.github.com/users/wekempf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wekempf/subscriptions","organizations_url":"https://api.github.com/users/wekempf/orgs","repos_url":"https://api.github.com/users/wekempf/repos","events_url":"https://api.github.com/users/wekempf/events{/privacy}","received_events_url":"https://api.github.com/users/wekempf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/labels/in%20progress","name":"in progress","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-07-24T15:13:28Z","updated_at":"2015-07-26T14:39:57Z","closed_at":"2015-07-26T14:39:57Z","body":"Generated source code is being analyzed, and since the code is generated every build there's no simple way to fix the warnings/errors produced by these analyzers. I believe generated code should not be analyzed.\r\n\r\nI'm new to Rosalyn, but as near as I could figure out there is no general (i.e. known best practice) solution to this issue. It looks like another project has a set of extension methods they use within their analyzers to ignore generated code. [code-craker](https://github.com/code-cracker/code-cracker/blob/90184774d2506d7c38e2578126d3512c93ae6149/src/Common/CodeCracker.Common/Extensions/GeneratedCodeAnalysisExtensions.cs)\r\n"},"comment":{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/comments/124998055","html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/1039#issuecomment-124998055","issue_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/1039","id":124998055,"user":{"login":"sharwell","id":1408396,"avatar_url":"https://avatars.githubusercontent.com/u/1408396?v=3","gravatar_id":"","url":"https://api.github.com/users/sharwell","html_url":"https://github.com/sharwell","followers_url":"https://api.github.com/users/sharwell/followers","following_url":"https://api.github.com/users/sharwell/following{/other_user}","gists_url":"https://api.github.com/users/sharwell/gists{/gist_id}","starred_url":"https://api.github.com/users/sharwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharwell/subscriptions","organizations_url":"https://api.github.com/users/sharwell/orgs","repos_url":"https://api.github.com/users/sharwell/repos","events_url":"https://api.github.com/users/sharwell/events{/privacy}","received_events_url":"https://api.github.com/users/sharwell/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T14:39:57Z","updated_at":"2015-07-26T14:39:57Z","body":"I submitted GitTools/GitVersion#537 to correct the issue."}}