dotnetanalyzers / dotnetanalyzers Goto Github PK
View Code? Open in Web Editor NEWThis project is for the community to make a common code base of .NET code analyzers using the new VS14 code analyzer functionality.
License: MIT License
This project is for the community to make a common code base of .NET code analyzers using the new VS14 code analyzer functionality.
License: MIT License
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?
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" />
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?
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.