Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ignore comment lines starting with certain prefixes #545
Ignore (ie output literally) any comment line starting with certain prefixes while formatting. Updated the comment regex, matching, and formatter. To prevent adding even more arguments to the function calls, two options classes have been added which are now used as arguments instead.
Lines starting with any of the tokens defined in the options for the Task List Window will be ignored. The tokens must be followed by a semicolon and a space to qualify, eg
In addition, there is a new entry in the settings file to defining other tokens to ignore. For the moment, this only contains
Added a few unit tests to cover some obvious cases.
Apr 28, 2018
1 check passed
I prefer to be on the "Joel Spolsky side" of things: don't bother users with too many settings ;) Yet I didn't want to hardcode ReSharper specific exceptions. As soon as more exceptions show up, or users request the ability to ignore more prefixes, we can either expose the settings or explain them how to manually edit the config.
Thanks for merging!