{"action":"closed","issue":{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/830","labels_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/830/labels{/name}","comments_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/830/comments","events_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/830/events","html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/830","id":75256136,"number":830,"title":"SA1114 (Parameter list must follow declaration): Should ignore #pragma directives","user":{"login":"oatkins","id":10925800,"avatar_url":"https://avatars.githubusercontent.com/u/10925800?v=3","gravatar_id":"","url":"https://api.github.com/users/oatkins","html_url":"https://github.com/oatkins","followers_url":"https://api.github.com/users/oatkins/followers","following_url":"https://api.github.com/users/oatkins/following{/other_user}","gists_url":"https://api.github.com/users/oatkins/gists{/gist_id}","starred_url":"https://api.github.com/users/oatkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oatkins/subscriptions","organizations_url":"https://api.github.com/users/oatkins/orgs","repos_url":"https://api.github.com/users/oatkins/repos","events_url":"https://api.github.com/users/oatkins/events{/privacy}","received_events_url":"https://api.github.com/users/oatkins/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"macpak","id":1065792,"avatar_url":"https://avatars.githubusercontent.com/u/1065792?v=3","gravatar_id":"","url":"https://api.github.com/users/macpak","html_url":"https://github.com/macpak","followers_url":"https://api.github.com/users/macpak/followers","following_url":"https://api.github.com/users/macpak/following{/other_user}","gists_url":"https://api.github.com/users/macpak/gists{/gist_id}","starred_url":"https://api.github.com/users/macpak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macpak/subscriptions","organizations_url":"https://api.github.com/users/macpak/orgs","repos_url":"https://api.github.com/users/macpak/repos","events_url":"https://api.github.com/users/macpak/events{/privacy}","received_events_url":"https://api.github.com/users/macpak/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-05-11T15:18:35Z","updated_at":"2015-08-08T17:56:13Z","closed_at":"2015-08-08T17:56:13Z","body":"The following code is *not* reported by legacy SC, but fails the new version of SA1114:\r\n\r\n    using System;\r\n\r\n    public class SomeOtherClass\r\n    {\r\n        private void SomeMethod()\r\n        {\r\n            this.SomeOtherMethod(\r\n    #pragma warning disable 618\r\n                    this.SomeObsoleteMethod());\r\n    #pragma warning restore 618\r\n        }\r\n\r\n        [Obsolete(\"Don't use me!\")]\r\n        private int SomeObsoleteMethod()\r\n        {\r\n            return 0;\r\n        }\r\n\r\n        private void SomeOtherMethod(int someParameter)\r\n        {\r\n        }\r\n    }\r\n\r\n\r\nLines that contain `#pragma` directives should generally be ignored by SC rules.\r\n\r\nWarning 618 relates to the use of a member marked obsolete. The `#pragma` line can be moved to resolve the warning. However, it would be better not to have to move it. (Doing so might unintentionally suppress other errors.)"}}