Problem:The methods in this class lacks cohesion (higher score is better). This leads to code harder to understand and maintain.
Solution:You can apply the Extract Class or Extract Subclass refactoring.
6 defect(s) found:
Target: NauckIT.NAnt.Tasks.FxCopTask
Assembly: NauckIT.NAnt, Version=1.0.20.237, Culture=neutral, PublicKeyToken=null
Severity: High
Confidence: Normal
Details: Type cohesiveness : 17%
Go to AvoidLackOfCohesionOfMethodsRule description
Target: NauckIT.NAnt.Tasks.GendarmeTask
Assembly: NauckIT.NAnt, Version=1.0.20.237, Culture=neutral, PublicKeyToken=null
Severity: High
Confidence: Normal
Source: d:\Build\Projects\NauckIT.NAnt\SCM\src\Tasks\GendarmeTask.cs(≈54)
Details: Type cohesiveness : 7%
Go to AvoidLackOfCohesionOfMethodsRule description
Target: NauckIT.NAnt.Tasks.MSBuildTask
Assembly: NauckIT.NAnt, Version=1.0.20.237, Culture=neutral, PublicKeyToken=null
Severity: High
Confidence: Normal
Details: Type cohesiveness : 17%
Go to AvoidLackOfCohesionOfMethodsRule description
Target: NauckIT.NAnt.Tasks.NDependTask
Assembly: NauckIT.NAnt, Version=1.0.20.237, Culture=neutral, PublicKeyToken=null
Severity: Medium
Confidence: Normal
Details: Type cohesiveness : 20%
Go to AvoidLackOfCohesionOfMethodsRule description
Target: NauckIT.NAnt.Tasks.NUnitTask
Assembly: NauckIT.NAnt, Version=1.0.20.237, Culture=neutral, PublicKeyToken=null
Severity: High
Confidence: Normal
Details: Type cohesiveness : 12%
Go to AvoidLackOfCohesionOfMethodsRule description
Target: NauckIT.NAnt.Types.Category
Assembly: NauckIT.NAnt, Version=1.0.20.237, Culture=neutral, PublicKeyToken=null
Severity: Medium
Confidence: Normal
Details: Type cohesiveness : 33%
Go to AvoidLackOfCohesionOfMethodsRule description
Problem:This method has a parameter whose type is more specialized than necessary. It can be harder to reuse and/or extend the method in derived types.
Solution:Replace parameter type with the least specialized type necessary, or make use of the specifics of the actual parameter type.
1 defect(s) found:
Target: System.String NauckIT.NAnt.Tasks.NUnitTask::GetCategoryList(NauckIT.NAnt.Types.CategoryCollection)
Assembly: NauckIT.NAnt, Version=1.0.20.237, Culture=neutral, PublicKeyToken=null
Severity: Medium
Confidence: High
Source: d:\Build\Projects\NauckIT.NAnt\SCM\src\Tasks\NUnitTask.cs(≈191)
Details: Parameter 'categories' could be of type 'System.Collections.Generic.IEnumerable<T>'.
Go to AvoidUnnecessarySpecializationRule description