Giter Club home page Giter Club logo

dotnetanalyzers's Introduction

DotNetAnalyzers

This project is for the community to make a common code base of .NET code analyzers using the new VS14 code analyzer functionality. Overview

dotnetanalyzers's People

Contributors

adamspeight2008 avatar billwagner avatar markmichaelis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar

dotnetanalyzers's Issues

What is the purpose of this repository?

As @AmadeusW commented in #3, what is the point of this repository? Based on its name and description, it sounds like it should be a starting point for developing a new analyzer. I..e, that instead of using VS’s templates mechanism, I would just clone this and start writing my analyzer. Then when things like nuget references need to be updated, I would just merge in changesets from this repository instead of doing that in my own. Except, as @AmadeusW said, this project also seems to act like it’s trying to be a repository of analyzers themselves instead of just a seed repo.

Where’s this seed repo we want?

Unnecessary parenthesis check is incompatible with `is` operator

Having the following expression:

var obj = new GetSome();
if (!(obj is null))
{
}

I'm getting a suggestion:

Statement must not use unnecessary parenthesis.

Removing the parenthesis:

var obj = new GetSome();
if (!obj is null)
{
}

leads to a compiler error:

Error CS0023 Operator '!' cannot be applied to operand of type 'Foo'

The version I'm using:

<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="All" />

Analyzer configuration guidelines

First of all. Great template is really useful to start
I have a big issue with it currently, the issue is 'how to treat settings/configuration required for the analyzer'. This is not straight forward:
For the nuget it can be an additional file declared at the .nuspec, currently I have:

<file src="configuration\Files\*.json" target="content\" />

But this wont work at the level of an analyzer as a VSIX extension. Any general guidelines for analyzer configuration?

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.