-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Resharper settings to remove redundant hints & warnings #22
Comments
Having performed this configuration many times in the past, I'd highlight that ReSharper's concept of configuration layers means we'll struggle to create a lightweight configuration for the solution which adequately overrides all users machine level settings, not without some decent effort and testing. It's not insurmountable by any means, but it's never easy to get the configuration spot-on when working outside of a single team environment. |
This is a much wider point on static analysis, but I suggest we split this issue up: StyleCop
ReSharper
Code Analysis
Misc Analysis
|
@jimmyheaddon thanks for chiming in. As you suggest we should split these up. This issue can be the "Resharper" part of your comment. The other bits can be other issues/PR's. |
Since dumping Resharper from my toolkit for the second time, I'm once again shying away from this. The ubiquitous static analysis solution is promising to be Roslyn based analysers and I think we should lean on them for code consistency using whatever mechanisms they provide for rule customisation. Resharper is a personal tooling choice and if it doesn't respect Roslyn analyser settings then it should be made to do so, using whatever extensions, etc. are required. |
@adamralph, I'm not sure I understand what you're saying. I think you're coming down on closing this...
mean "… without any changes to the FakeItEasy codebase"? Like I should run off and update my personal settings and get extensions in order to comply? I don't mind doing this. In fact, I have been. (Or ignoring the odd warning from ReSharper, because I am familiar enough with FIE's settings.) |
(Feel free to substitute "R#" in the following for the refactoring/static analysis tool(s) of your choice.) For example, we currently use StyleCop and have a Settings.StyleCop file to define our settings. R# should have some kind of facility to respect that settings file. StyleCop is in its death throes (although there are current efforts at salvation) but long term I don't see it winning out against Roslyn analysers. StyleCopAnalyzers looks like it may be the solution going forward and, again, R# should have the facility to respect the settings that come along with them (whether built in or via extensions). If R# doesn't have a nice way to play along with Roslyn analysers then I predict its demise. As a maintainer who doesn't use R#, I don't want the burden of (somehow) maintaining a settings file for it. However, I'm only one of two maintainers. If I'm outvoted and the other two maintainers are users of R# and are happy to maintain a settings file for it then I'll happily go with the majority. |
Oh, I don't think we should outvote anyone—much better to come to a consensus. I'd hate for someone to go away feeling like they were forced into anything. The only reason I'd consider moving forward with this issue is that even though ReSharper isn't universal, I believe it to be quite popular, and I experienced the (minor) frustration of having it try to take away all the Certainly in the short term, I'd be more than happy to muck about with a ReSharper settings file for the solution. But I'd have no objection to removing such a settings file once it became onerous, for example, if it started fighting with our preferred settings and nobody on the team had interest in working on it. |
Isn't there a StyleCop extension for Resharper which will use the Settings.StyleCop file? |
Could be. You're suggesting giving ReSharper users the advice to pick that up instead of us maintaining a dotsettings file? |
I'd certainly prefer it. |
Works for me. @thomaslevesque, you're okay with this being closed as a wont-fix? |
Sure, i don't mind. I can always have my own per-user R# settings anyway ;) |
Do you want to confirm that you can indeed point R# at the StyleCop.Settings file? |
For me, and for @thomaslevesque it sound, nah. I'm okay with a personal file. |
competing label updates… |
Just tried the StyleCop R# extension, it seems to work fine. |
@thomaslevesque great, so if anyone comes knocking on this door again, we can just point them at that. |
No description provided.
The text was updated successfully, but these errors were encountered: