Default coding standards of ReSharper?

Hi,

I looked for a while now, but I couldn't find a document about the coding standards on which the default rules or ReSharper base on. Is there any kind of document that explains why the default settings of ReSharper suggest and warn like they do?

7 comments
Comment actions Permalink

Hello
     There's no dedicated document, however you can find some information regarding ReSharper inspections here: http://confluence.jetbrains.net/display/ReSharper/Code+Inspection+Wiki. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Shame it's not really a Wiki!

For example, this page is wrong:
http://confluence.jetbrains.net/display/ReSharper/Possible+compare+of+value+type+with+null

It suggests replacing "i != null" with "i != default(T)", which won't compile, or "!Equals(i, default(T))", which will box the value. In the majority of cases, skipping the comparison for value types is exactly what the developer intended.

0
Comment actions Permalink

Andrey,

I hate to open up a previous question, but I want to make sure there is no way to get to this information. I am currently working to establish a set of style, design, coding and other standards and guidelines for a large team. While we are likely to be using Resharpre, it will not be the only tool in use with these capabilities. I need to be able to review and discuss the defaults that are currently in place for inspections, naming, style, and other standards and guidelines in Resharper. Multiple team members need to take part in this review, and sitting in front of the tool's options selector will not really work. Are the specific rules and items enforced listed in a help file somewhere, or available in a configuration file that can be reviewed? I am looking for something like this:

http://msdn.microsoft.com/en-us/library/ms182125(VS.110).aspx

The link posted above is over a year out of date and is not close to being complete. Is there another source for this information?

Thanks for your help.

J Frysinger

0
Comment actions Permalink

@J Frysinger

I can confirm that at this point unfortunately there's no document similar to what you're looking for.

0
Comment actions Permalink

Its 2018 now, 4 years past last comment.

Surely, there would be some standards defined somewhere by now?

We need it to ensure that the developers follow it and then use resharper to validate it.

1
Comment actions Permalink

I'm looking for the standards document as well. 

0
Comment actions Permalink

Hello!

 

Unfortunately we cannot provide standards document cause we don't have one:

  • Out of the box, ReSharper comes with the default set of preferences, which are based on conventions and best practices in the .NET world. These default settings are hard-coded in the product and you can always reset to the defaults if necessary.

https://www.jetbrains.com/help/resharper/Sharing_Configuration_Options.html#layers

0

Please sign in to leave a comment.