Ejemplo n.º 1
0
 public IAnalysisRule Apply(FileAnalysisResult file)
 => file.Value[CountType.Null.ToString()] > 0
         ? new NoFilesWithNull(Count + 1, Violators.Concat(file.FileName))
         : this;
Ejemplo n.º 2
0
 public IAnalysisRule Apply(FileAnalysisResult file)
 {
     return(file.Value[CountType.SourceLines.ToString()] > _maxLines
         ? new MaxSourceFileLines(_maxLines, Count + 1, Violators.Concat(file.FileName))
         : this);
 }
 public IAnalysisRule Apply(FileAnalysisResult file)
 => new CountAvgSourceFileLines(_totalLines + file.Value[CountType.SourceLines.ToString()], _numFiles + 1);
 public IAnalysisRule Apply(FileAnalysisResult file)
 => file.Value[CountType.StaticNonExtensionClass.ToString()] > 0
         ? new NoStaticNonExtensionClasses(Count + 1, Violators.Concat(file.FileName))
         : this;