{"action":"closed","issue":{"url":"https://api.github.com/repos/DustinCampbell/CSharpEssentials/issues/28","labels_url":"https://api.github.com/repos/DustinCampbell/CSharpEssentials/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/DustinCampbell/CSharpEssentials/issues/28/comments","events_url":"https://api.github.com/repos/DustinCampbell/CSharpEssentials/issues/28/events","html_url":"https://github.com/DustinCampbell/CSharpEssentials/issues/28","id":100491106,"number":28,"title":"Consider using a getter-only auto property is reported if static property is set from class constructor","user":{"login":"holatom","id":13761982,"avatar_url":"https://avatars.githubusercontent.com/u/13761982?v=3","gravatar_id":"","url":"https://api.github.com/users/holatom","html_url":"https://github.com/holatom","followers_url":"https://api.github.com/users/holatom/followers","following_url":"https://api.github.com/users/holatom/following{/other_user}","gists_url":"https://api.github.com/users/holatom/gists{/gist_id}","starred_url":"https://api.github.com/users/holatom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holatom/subscriptions","organizations_url":"https://api.github.com/users/holatom/orgs","repos_url":"https://api.github.com/users/holatom/repos","events_url":"https://api.github.com/users/holatom/events{/privacy}","received_events_url":"https://api.github.com/users/holatom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-12T08:14:27Z","updated_at":"2015-08-25T19:24:05Z","closed_at":"2015-08-25T19:24:05Z","body":"\"Consider using a getter-only auto property\" fix is incorrectly reported if static property is set from class constructor (not from static constructor).\r\n\r\n    public class MyClass\r\n    {\r\n        public static bool StaticProperty { get; private set; } //<- \"Consider using a getter-only auto property\" is reported here.\r\n\r\n        public MyClass()\r\n        {\r\n            StaticProperty = true;\r\n        }\r\n    }"}}