{"action":"opened","issue":{"url":"https://api.github.com/repos/SergeyTeplyakov/ReSharperContractExtensions/issues/51","labels_url":"https://api.github.com/repos/SergeyTeplyakov/ReSharperContractExtensions/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/SergeyTeplyakov/ReSharperContractExtensions/issues/51/comments","events_url":"https://api.github.com/repos/SergeyTeplyakov/ReSharperContractExtensions/issues/51/events","html_url":"https://github.com/SergeyTeplyakov/ReSharperContractExtensions/issues/51","id":68589738,"number":51,"title":"[ContractInvariantMethod] should suppress CA1822","user":{"login":"tom-englert","id":10229954,"avatar_url":"https://avatars.githubusercontent.com/u/10229954?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-englert","html_url":"https://github.com/tom-englert","followers_url":"https://api.github.com/users/tom-englert/followers","following_url":"https://api.github.com/users/tom-englert/following{/other_user}","gists_url":"https://api.github.com/users/tom-englert/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-englert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-englert/subscriptions","organizations_url":"https://api.github.com/users/tom-englert/orgs","repos_url":"https://api.github.com/users/tom-englert/repos","events_url":"https://api.github.com/users/tom-englert/events{/privacy}","received_events_url":"https://api.github.com/users/tom-englert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-15T06:23:02Z","updated_at":"2015-04-15T06:23:02Z","closed_at":null,"body":"When defining the first invariant of a class, the [ContractInvariantMethod] is added. It would be very helpful if the method had the attribute to suppress CA1822, like we get it when using the CIM code snippet:\r\n        [ContractInvariantMethod]\r\n        [System.Diagnostics.CodeAnalysis.SuppressMessage(\"Microsoft.Performance\", \"CA1822:MarkMembersAsStatic\", Justification = \"Required for code contracts.\")]\r\n        private void ObjectInvariant()\r\n        {\r\n        }\r\n\r\nA nice to have would be the possibility to specify where the method is added (I prefer it to be at the end of the class) "}}