Giter Site home page Giter Site logo

resharper.stylecop's People

Contributors

kubiix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

resharper.stylecop's Issues

Cleanup destroys file headers with ampersands

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 &amp; but then it just gets unescaped on the first cleanup and the second cleanup leads to the situation described above.

Bundle affords with JetBrains

actually there are two affords bringing StyleCop to ReSharper 9+

both are available in ReSharper directly as plugins.
2015-11-23 09_15_40-resharper10stylecop_jetbrains

This one needs a dedicate StyleCop Installation, else it will Show up
2015-11-23 09_15_40-resharper10stylecop_error

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 ;)

Failed to find the StyleCop Assembly. Please check your StyleCop installation.

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.

Format Line not actually formatting.

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).

kuquj

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;)

Must use Task Manager to kill VS2015 if installed

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.

Needs a release for R#9.1

Looks like all the extensions went away when upgrading to R# 9.1 -

Kubiix, any plans to work out this extension?

ReSharper Cleanup Code and StyleCop plugin

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

Not sorting yet

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.

Resharper 10.0.1. "Cannot perform this actions, most likely because of errors in the source code"

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.

ResharperBug.zip

R# 9.2: StyleCop Settings not implemented correctly?

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# ???

Not reading nested StyleCops Rules

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.