{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/15971","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/15971/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/15971/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/15971/events","html_url":"https://github.com/dotnet/roslyn/issues/15971","id":196201786,"number":15971,"title":"C# Code Style Options apply to generated files","user":{"login":"tannergooding","id":10487869,"avatar_url":"https://avatars.githubusercontent.com/u/10487869?v=3","gravatar_id":"","url":"https://api.github.com/users/tannergooding","html_url":"https://github.com/tannergooding","followers_url":"https://api.github.com/users/tannergooding/followers","following_url":"https://api.github.com/users/tannergooding/following{/other_user}","gists_url":"https://api.github.com/users/tannergooding/gists{/gist_id}","starred_url":"https://api.github.com/users/tannergooding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannergooding/subscriptions","organizations_url":"https://api.github.com/users/tannergooding/orgs","repos_url":"https://api.github.com/users/tannergooding/repos","events_url":"https://api.github.com/users/tannergooding/events{/privacy}","received_events_url":"https://api.github.com/users/tannergooding/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-17T05:58:22Z","updated_at":"2016-12-19T20:03:26Z","closed_at":null,"body":"Currently, C# Code Style Options are applying to generated files.\r\n\r\nFor example, we have a XAML control, `GeneralOptionPageControl.xaml`. This has a generated code behind file, `GeneralOptionPageControl.g.i.cs`. If we have the options set to not use `this.`, then we get a warning for `IDE0003 - Name can be simplified` on the following code line `this.Timeout.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.OnPreviewTextInputTimeout);`.\r\n\r\nWe may need a discussion around what to do for the `.editorconfig` file, where it could be argued that `GeneralOptionPageControl.g.i.cs` should be included, as the option was specified to apply to `[*.cs]`, and not some string that excludes `*.g.i.cs` files. If we decide to have `[*.cs]` ignore generated files, then I imagine we would want to explicitly document this behavior (perhaps having another option here would be the proper route... something like `dotnet_style_applies_to_generated_files = false`)"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/268063722","html_url":"https://github.com/dotnet/roslyn/issues/15971#issuecomment-268063722","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/15971","id":268063722,"user":{"login":"jasonmalinowski","id":201340,"avatar_url":"https://avatars.githubusercontent.com/u/201340?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonmalinowski","html_url":"https://github.com/jasonmalinowski","followers_url":"https://api.github.com/users/jasonmalinowski/followers","following_url":"https://api.github.com/users/jasonmalinowski/following{/other_user}","gists_url":"https://api.github.com/users/jasonmalinowski/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonmalinowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonmalinowski/subscriptions","organizations_url":"https://api.github.com/users/jasonmalinowski/orgs","repos_url":"https://api.github.com/users/jasonmalinowski/repos","events_url":"https://api.github.com/users/jasonmalinowski/events{/privacy}","received_events_url":"https://api.github.com/users/jasonmalinowski/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T20:03:26Z","updated_at":"2016-12-19T20:03:26Z","body":"Analyzers can opt-out of what we identify as generated files. This might just be a really simple fix."}}
{"actor":{"display_login":"jasonmalinowski"}}