AnalyzersFeaturehelp wanted
Metriche repository
- Star
- (3873 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
From @marcind on September 12, 2016 20:2
Rule xUnit2000 has logic for determining whether an expression is a "literal". Change the logic to implement a scoring mechanism. Something like the following (most "literal" first)
null, Literal Expressions,typeof,nameof,sizeof,default, enum values- Consts and static read-only fields/properties (include reference types or not?)
- New "instances" of structs
- Certain factory methods on structs (e.g. DateTime.Parse)
- Everything else.
If the second arg has a lower score than the first arg, trigger the rule.
Copied from original issue: xunit/xunit.analyzers#27