kubiix / resharper.stylecop Goto Github PK
View Code? Open in Web Editor NEWStyleCop support for ReSharper
License: GNU General Public License v3.0
StyleCop support for ReSharper
License: GNU General Public License v3.0
Whenever a file header contains an ampersand, the plugin destroys the whole file header on any code cleanup operation (even if I just tell ReSharper to remove unused usings, see #3 ).
//-----------------------------------------------------------------------
// <copyright file="Setup.cs" company="Meinefirma GmbH & Co. KG">
// Copyright (c) Meinefirma GmbH & Co. KG. All rights reserved.
// </copyright>
// <author>dfyx</author>
//-----------------------------------------------------------------------
becomes
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Setup.cs" company="">
//
// </copyright>
// <summary>
// Beschreibung der Setup Klasse.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
As you can see, the company
attribute, the content of the copyright
node and the whole author
node disappear.
When I either remove the ampersand (which I can't because it's part of the company name) or disable the ReSharper.StyleCop plugin, everything works as expected. I've also tried escaping the ampersand as &
but then it just gets unescaped on the first cleanup and the second cleanup leads to the situation described above.
actually there are two affords bringing StyleCop to ReSharper 9+
both are available in ReSharper directly as plugins.
This one needs a dedicate StyleCop Installation, else it will Show up
The one from JetBrains' guys doesn't need this anymore!
Would be great, you two guys talk to each other to bundle your effords and to not confuse users.
Thank you ;)
I've installed StyleCop for Resharper 9 and it constantly is throwing:
"Failed to find the StyleCop Assembly. Please check your StyleCop installation."
I wen't to R# settings, StyleCop plugin settings, unmarked checkbox for "Automatically Check location" and set the path to stylecop's dll (btw, there was like 5 or 6 copies all over place) and it complained, that it should be "StyleCop.dll" not "StyleCop.ReSharper900.dll", so I renamed, but that didn't helped.
Also, I've tried to see where it searches for the dll using Process Monitor there was couple records with operation CreateFile and result "NAME NOT FOUND", but I'm not sure if that somehow relates to the problem.
Please release a version for the current EAP release of resharper 9.1
This is needed to be able to work properly with VS 2015 CTP 6
Will it be soon new version that supports ReSharper 9.2?
Thanks in advance!
StyleCop has a number of rules that affect line formatting, such as: SA1116. Resharper then picks up when these rules are violated and it offers the option to have it automatically fixed (as you can see below).
The only problem is when I actually hit enter nothing happens. Well nothing happens 80% of the time for this rule violation as well as for a bunch of the other formatting issues such as a space between a cast and a variable (e.g. (double) myDouble;)
Resharper Ultimate Extensions attempts to install this extension in VS2015. But, DO NOT do it.
This extension is NOT compatible with VS2015, and causes an infinite pop up that cannot be cleared. You MUST use Task Manager to kill VS2015, then uninstall Resharper Ultimate entirely.
Big bad bug.
Looks like all the extensions went away when upgrading to R# 9.1 -
Kubiix, any plans to work out this extension?
The original StyleCop project is not updated since 2012 (according to http://stylecop.codeplex.com). There is a live fork of the project which supports the new language features - Visual StyleCop (https://visualstudiogallery.msdn.microsoft.com/cac2a05b-6eb6-4fa2-95b9-1f8d011e6cae). Please, consider supporting this library in your extension.
Hello,
after installing the StyleCop plugin 4.7.60 Alpha 2, I'm not able anymore to use the ReSharper feature of Cleanup Code (ReSharper->Tools->Cleanup Code...). This is again available after uninstalling the StyleCop plugin.
Regards,
Patrick
Having R# 9 and the StyleCop extension installed, operations like removing unused usings in a file seems to execute the silent cleanup which, unconfigurably, inserts file header and documents all class members.
I'm getting
All Constants must be placed before all Non-Constants [StyleCopy Rule: SA:1203]
but the ctrl-E,F (silent cleanup) isn't re-arranging the file.
Env: VS 2015, Resharper 10.0.1, StyleCop for R#10 EAP5
Problem: some resharper features, like "Use 'this' qualifier" cannot run for entire file/project/solution -> resharper error message appears: "Cannot perform this actions, most likely because of errors in the source code"
I've removed style cop extension from R# and problem disappeared. After that I've installed extension back and problem re-appeared
example project is included with screenshots.
We have an setting.stylecop file were we e.g. specified that calls to local members are NOT prefixed with the 'this.' notation This is the default setting in R# 9.2 too (C# code style).
After installing your extension we see under Options/Tools the message that the Resharper style code options are not fully compatible with the StyleCop options. After we press the Reset-Button and save the changes the R# code style setting "use this. qualifier" is set to true ??? This is the oposite of what is defined in our setting.stylecop file and also the oposite of what is default in R# ???
I am seeing some evidence that StyleCop/resharper is not seeing my Settings.StyleCop in the root of my repository.
I have several rules unchecked and the Button that aligns Resharper rules to StyleCop rules is setting them the wrong way.
Specifically SA1200, SA1101, SA1126 - the matching settings in resharper get reset the wrong way. I have these all unchecked in the Settings.StyleCop at the root of my repo.
Its also not seeming to see the Spelling Words that I defined in this file.
... so everyone eager to contribute and improve actually can.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.