{"action":"created","issue":{"url":"https://api.github.com/repos/DotNetAnalyzers/NullParameterCheckRefactoring/issues/2","labels_url":"https://api.github.com/repos/DotNetAnalyzers/NullParameterCheckRefactoring/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/DotNetAnalyzers/NullParameterCheckRefactoring/issues/2/comments","events_url":"https://api.github.com/repos/DotNetAnalyzers/NullParameterCheckRefactoring/issues/2/events","html_url":"https://github.com/DotNetAnalyzers/NullParameterCheckRefactoring/issues/2","id":49092087,"number":2,"title":"Use Code Contracts when the rewriter is enabled","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},"labels":[{"url":"https://api.github.com/repos/DotNetAnalyzers/NullParameterCheckRefactoring/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-17T13:56:52Z","updated_at":"2015-12-27T23:29:16Z","closed_at":null,"body":"When the Code Contracts rewriter is enabled (see DotNetAnalyzers/Proposals#1), the code fix behavior should change in two ways:\r\n\r\n1. The added code should be `Contract.Requires<ArgumentNullException>(p != null, nameof(p));`\r\n2. The refactoring should only apply to a base method, and not to methods which override a base implementation and/or implement an interface method."},"comment":{"url":"https://api.github.com/repos/DotNetAnalyzers/NullParameterCheckRefactoring/issues/comments/167447527","html_url":"https://github.com/DotNetAnalyzers/NullParameterCheckRefactoring/issues/2#issuecomment-167447527","issue_url":"https://api.github.com/repos/DotNetAnalyzers/NullParameterCheckRefactoring/issues/2","id":167447527,"user":{"login":"ddur","id":3501612,"avatar_url":"https://avatars.githubusercontent.com/u/3501612?v=3","gravatar_id":"","url":"https://api.github.com/users/ddur","html_url":"https://github.com/ddur","followers_url":"https://api.github.com/users/ddur/followers","following_url":"https://api.github.com/users/ddur/following{/other_user}","gists_url":"https://api.github.com/users/ddur/gists{/gist_id}","starred_url":"https://api.github.com/users/ddur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddur/subscriptions","organizations_url":"https://api.github.com/users/ddur/orgs","repos_url":"https://api.github.com/users/ddur/repos","events_url":"https://api.github.com/users/ddur/events{/privacy}","received_events_url":"https://api.github.com/users/ddur/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T23:29:16Z","updated_at":"2015-12-27T23:29:16Z","body":"Equality operators can be overridden\r\n1. The added code should be Contract.Requires<ArgumentNullException>(!object.ReferenceEquals(p, null), nameof(p));"}}