Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 07 16:22
    haro2 opened #263
  • Sep 03 06:56
    zhenghao9929 opened #262
  • Jul 31 14:12
    KieranDevvs edited #261
  • Jul 31 14:11
    KieranDevvs opened #261
  • May 19 20:17
    darora10 commented #244
  • May 17 03:24
    davkean commented #259
  • May 16 01:53
    csdahlberg commented #259
  • May 15 13:44

    csdahlberg on master

    Handle exception when trying to… Merge pull request #260 from Sa… (compare)

  • May 15 13:44
    csdahlberg closed #260
  • May 15 13:44
    csdahlberg closed #259
  • May 15 04:02
    SanjayGuntur opened #260
  • May 15 04:02
    SanjayGuntur review_requested #260
  • Mar 30 17:54
    DarkCloud14 closed #164
  • Mar 16 00:58
    robertlarkins commented #256
  • Mar 15 21:49
    robertlarkins commented #256
  • Mar 15 21:43
    robertlarkins commented #256
  • Feb 19 00:30
    sishik1 commented #259
  • Feb 18 22:33
    davkean commented #259
  • Feb 18 14:43
    sishik1 commented #259
  • Feb 17 23:37
    davkean commented #259
Sam Harwell
@sharwell
On a totally separate note, did you mean to file an issue on this project?
Joseph Musser
@jnm2
Oops, no.
Sam Harwell
@sharwell
:laughing:
I regret implementing SA1629. We should have intentionally omitted it with some of the others like spelling.
Joseph Musser
@jnm2
I like it, actually. It's an inconsistency that's really hard to keep track of.

It's an inconsistency that's really hard to keep track of.

Even in my own code, let alone my team's.

lvxg177177
@lvxg177177
why I Cant find the styleCop in Resharper Extensions?
mohamed es-sanousy
@essanousy
is there a document containing all the rules for C# naming convention ?
mohamed es-sanousy
@essanousy
@jnm2 yes, thank you
Rafael
@Escoto
is there a expected date for a stable v6?
Chris Dahlberg
@csdahlberg
@SanjayGuntur do you have any in-progress work or any other reason to postpone a stable release? if not, i can make one soon.
Rafael
@Escoto
so, beta is working for me, but people here is panicking because of a 'beta' nuget that checks styles
Chris Dahlberg
@csdahlberg
I don't remember seeing any new bugs reported due to changes in v6, so unless Sanjay wants to wrap up something he's working on I don't have a reason to not publish a stable version.
Rafael
@Escoto
Hi @csdahlberg @SanjayGuntur any updates on the v6 release? :v
Chris Dahlberg
@csdahlberg
I'm tentatively planning to publish a stable build sometime this weekend (possibly tonight).
Rafael
@Escoto
Great, hope you find the time ;)
Chris Dahlberg
@csdahlberg
@Escoto I just published a stable build of v6.0.0 for both the VS extension and the NuGet packages
Rafael
@Escoto
Awesome thanks!
Michał Szewczak
@michasacuer
Hi! Can i install StyleCop on Visual Studio 2019?
Because when i try, i get an error that there is no installed instance of supported software
Simon Novak
@snovak7
Hello, does style cop works as MSBuild on .NET Core projects, mine somehow doesn't want to read stylecop.json
Sam Harwell
@sharwell
stylecop.json is the configuration file for a difference project (StyleCop Analyzers).
Simon Novak
@snovak7
@sharwell ?
Sam Harwell
@sharwell
Yes, that's a different project. I'll get a link to the gitter room for it.
Simon Novak
@snovak7
With this package it works :)
what’s the difference
Sam Harwell
@sharwell
They are totally different projects. The only thing they share is part of a name
Simon Novak
@snovak7
but what is weird warning codes are the same
or at least similar
So they must share something
Pavilion Sahota
@pavilionuk

Hey guys, I want your opinion(s) on something, what are your thoughts on using var over strongly typing in C#? Personally, I feel that when you declare a variable, you're almost always assigning type, E.g. MyObject myObj = new MyObject();
I feel like you repeat yourself when strongly typing, It also keeps all your variables nice and inline

var myObj = new MyObject();
var usersTable = new DataTable();
var builder = new Builder();
^ nice and neat

whereas strongly typing your variables strews them from side to side

MyObject myObj = new MyObject();
DataTable usersTable = new DataTable();
Builder builder = new Builder();

I'd love to hear your thoughts :)

shayslonim
@shayslonim
@pavilionuk personally I prefer the second option over the first one.
I find it more readable, and using var doesn't make the code significantly better looking - this is only a small change
Nambi
@nambi_r_twitter
Does stylecop can be added as part of Task in Azure Devops build pipeline. I see it as deprecated. ANy idea. I need to use for dotnet core 3.0
Nambi
@nambi_r_twitter
hello cops
Pavilion Sahota
@pavilionuk
@nambi_r_twitter Not entirely sure, but I know you can treat stylecop warnings as errors which will fail the build.
Marcelo Maia
@marcelomaia
HI! Do we have some integration with vscode or rider? thanks!
tolpawsta
@tolpawsta
HI! How can i appent my custom rules in StyleCop? In documcentaition is: Build project and copy to directory with StyleCop, but Stylecop dotn't installed in PC.
Chris Dahlberg
@csdahlberg
Are you using StyleCop "Classic" (e.g. the StyleCop.MSBuild NuGet package) or StyleCopAnalyzers (the StyleCopAnalyzers NuGet package)?
tolpawsta
@tolpawsta
I use StyleCopAnalyzers (the StyleCopAnalyzers NuGet package). 1. Create .net framework class libruary. 2. Add references StyleCop.Analysers, Stylecop, StyleCop.CSharp from Nuget. 3. Create class SomeRules derived from SoursAnalizer and add SomeRule.xml file (with properties EmbendedResorce). 4. Build project. And so. In documentation describe that i must copy builded Dll in dyrectory with StyleCop.dll but Stylecop not installed. That wat i must to do? The standart stylecop rules work, but my own custom rule doesn't.
Chris Dahlberg
@csdahlberg

This channel (and the StyleCop project on github) is for StyleCop "Classic". The StyleCopAnalyzers channel can be found at https://gitter.im/DotNetAnalyzers/StyleCopAnalyzers, but I don't think you actually need to do anything specific to StyleCopAnalyzers to create your custom rules.

StyleCopAnalyzers is based on Roslyn. You can create your own Roslyn-based rules and use them without any StyleCop integration. See https://docs.microsoft.com/en-us/visualstudio/extensibility/getting-started-with-roslyn-analyzers.

tolpawsta
@tolpawsta
This channel (and the StyleCop project on github) is for StyleCop "Classic"
Ok. How can i resolve the issue with StyleCop "Classic", without StyleCopAnalyzers. I install StyleCop extention for Visual Studio but i can't add my custom rules for StyleCop, but there is no such parameter in stylecop.settings.
thealexparshin
@thealexparshin
Hello, I'm using VS extension StyleCop "Classic". If Run StyleCop is executed from menu, it shows error box "Specified method is not supported". If executed for a file' popup menu in VS Project Explorer, it shows number of issues found, then crushes VS.
thealexparshin
@thealexparshin
Visual studio version is the latest, 16.8.5
Chris Dahlberg
@csdahlberg
thanks for the report. this was also just recently reported at #259 . i couldn't immediately repro it, but plan to look into it further in the next day or two.
Chris Dahlberg
@csdahlberg
@thealexparshin do you happen to have a codebase i could use to try to repro?