Git Product home page Git Product logo

wintellect.analyzers's People

Contributors

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

wintellect.analyzers's Issues

Built-in types do not vary in size

AvoidPredefinedTypes

The predefined types, such as int, should not be used. When defining a type the built in types can be different sizes on different versions of .NET (e.g., desktop and Internet of Things) so you want to be as explicit about types as possible. "

This is incorrect. See section 4.1.4 of the C# specification.

C# provides a set of predefined struct types called the simple types. The simple types are identified through reserved words, but these reserved words are simply aliases for predefined struct types in the System namespace, as described in the table below.

Reserved word Aliased type
sbyte System.SByte
byte System.Byte
short System.Int16
ushort System.UInt16
int System.Int32
uint System.UInt32
long System.Int64
ulong System.UInt64
char System.Char
float System.Single
double System.Double
bool System.Boolean
decimal System.Decimal

Custom rule limit for sonarqube

Hi,
I wrote 3 custom rules using wintellect roslyn.But I just use one custum rule.I can’t activate more than one rule.rule ids are different.how can I use more than one rule.I use community sonarqube version.

Thank You,
Best Regards
customrule

MissingAnalyzerReference warning

Hi,
I have created a fresh Win10 VM with VS2015 (from Azure catalog) and then created an empty C# console-project, added the Wintellect.Analyzers with nuget and built it.
The following warning appeared in the "Error List"-Window:

Warning MissingAnalyzerReference Analyzer assembly 'c:\users\fk\documents\visual studio 2015\Projects\ConsoleApplication1\packages\Wintellect.Analyzers.1.0.0.0\analyzers\dotnet\cs\Wintellect.Analyzers.Test.dll' depends on 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' but it was not found. Analyzers may not run correctly.

Predefined type analyzer

Why would I want to pick the defined types in System namespace when 99.9% of the code I see everywhere, on Github, at work...at my previous company all use the built in C# aliases.

Don't you find that using the built in System types can become a little confusing when comparing to important objects/structs in the Framework?

Using the C# pre-defined keyword seems much clearer to a developer that the person does indeed mean to use System.String when they use 'string'.

What if I made a custom Object in my own namespace named Int32 or String like

namespace PatrickMagee
{
       public class String 
       {


       }
}

Then used the return type String (from my namespace).

Where is this Analyzer useful? 🎱

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.