{"action":"created","issue":{"url":"https://api.github.com/repos/codecadwallader/codemaid/issues/347","repository_url":"https://api.github.com/repos/codecadwallader/codemaid","labels_url":"https://api.github.com/repos/codecadwallader/codemaid/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/codecadwallader/codemaid/issues/347/comments","events_url":"https://api.github.com/repos/codecadwallader/codemaid/issues/347/events","html_url":"https://github.com/codecadwallader/codemaid/issues/347","id":178961535,"number":347,"title":"Format Comments breaks ReSharper code inspection configuration comments","user":{"login":"Kagern","id":1835797,"avatar_url":"https://avatars.githubusercontent.com/u/1835797?v=3","gravatar_id":"","url":"https://api.github.com/users/Kagern","html_url":"https://github.com/Kagern","followers_url":"https://api.github.com/users/Kagern/followers","following_url":"https://api.github.com/users/Kagern/following{/other_user}","gists_url":"https://api.github.com/users/Kagern/gists{/gist_id}","starred_url":"https://api.github.com/users/Kagern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kagern/subscriptions","organizations_url":"https://api.github.com/users/Kagern/orgs","repos_url":"https://api.github.com/users/Kagern/repos","events_url":"https://api.github.com/users/Kagern/events{/privacy}","received_events_url":"https://api.github.com/users/Kagern/received_events","type":"User","site_admin":false},"labels":[{"id":344434946,"url":"https://api.github.com/repos/codecadwallader/codemaid/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":352365433,"url":"https://api.github.com/repos/codecadwallader/codemaid/labels/feature:%20formatting","name":"feature: formatting","color":"057363","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-23T20:00:12Z","updated_at":"2016-12-02T15:31:55Z","closed_at":null,"body":"### Environment\n- Visual Studio version: Visual Studio 2015 Professional 14.0.25431.01 Update 3\n- CodeMaid version: 10.1.93\n- ReSharper version: ReSharper Ultimate 2016.1.2\n- Code language: C#\n### Description\n\nCodeMaid's 'Format Comments' command concatenates/splits comments used by ReSharper for code inspection configuration, causing them to not be recognized by ReSharper.\n### Steps to recreate\n1. Add ReSharper code inspection configuration comments in a C# source code file.\n   // ReSharper disable UnusedMember.Global\n   // ReSharper disable MemberCanBePrivate.Global\n   // ReSharper disable UnusedAutoPropertyAccessor.Global\n   // ReSharper disable AutoPropertyCanBeMadeGetOnly.Local\n2. Run the 'format comment' command on the block comments.\n### Current behavior\n\nReShaper allows the use of comments to enable/disable/configure code inspections in the source code file.  There are inserted with one option per line.  When 'Format Comment' is run on a block of these comments, it concatenates them together based on the 'Wrap comments at column' value.  Doing so causes ReSharper to not recognize them.  _This probably only effects folks who enable the 'Run format comments during cleanup' option, as it is unlikely that anyone would explicitly run the 'Format Comment' command the ReSharper block._\n### Expected behavior\n\nDon't break things / do not format comment lines which contain ReSharper code inspection configuration options.\n\nMy CheapHack(tm) fix would be to have CodeMaid.Helpers.CodeCommentHelper.IsCommentLine return false if the line starts with \"// ReSharper disable\" or \"// ReSharper enable\".\n"},"comment":{"url":"https://api.github.com/repos/codecadwallader/codemaid/issues/comments/264481197","html_url":"https://github.com/codecadwallader/codemaid/issues/347#issuecomment-264481197","issue_url":"https://api.github.com/repos/codecadwallader/codemaid/issues/347","id":264481197,"user":{"login":"willemduncan","id":8154807,"avatar_url":"https://avatars.githubusercontent.com/u/8154807?v=3","gravatar_id":"","url":"https://api.github.com/users/willemduncan","html_url":"https://github.com/willemduncan","followers_url":"https://api.github.com/users/willemduncan/followers","following_url":"https://api.github.com/users/willemduncan/following{/other_user}","gists_url":"https://api.github.com/users/willemduncan/gists{/gist_id}","starred_url":"https://api.github.com/users/willemduncan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willemduncan/subscriptions","organizations_url":"https://api.github.com/users/willemduncan/orgs","repos_url":"https://api.github.com/users/willemduncan/repos","events_url":"https://api.github.com/users/willemduncan/events{/privacy}","received_events_url":"https://api.github.com/users/willemduncan/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T15:31:55Z","updated_at":"2016-12-02T15:31:55Z","body":"Feel closely related to #350, I guess we should start defining an exclusion list for formatting. So far it seems to be as easy as \"ignore comments that start with certain keywords when reformatting all comments\". "}}
{"actor":{"display_login":"willemduncan"}}