Showing 36 of 82 total issues
Method CaribouSolveInstance
has a Cognitive Complexity of 24 (exceeds 20 allowed). Consider refactoring. Open
Open
protected override void CaribouSolveInstance(IGH_DataAccess da)
{
logger.Reset();
#region Input Parsing
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method CheckBounds
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static void CheckBounds(XmlNode node, ref double? currentMinLat, ref double? currentMinLon,
ref double? currentMaxLat, ref double? currentMaxLon)
Method CheckBounds
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static void CheckBounds(Tuple<Coord, Coord> bounds,
ref double? currentMinLat, ref double? currentMinLon, ref double? currentMaxLat, ref double? currentMaxLon)
Method CheckBounds
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static void CheckBounds(Tuple<Coord, Coord> bounds, ref double? currentMinLat, ref double? currentMinLon,
ref double? currentMaxLat, ref double? currentMaxLon)
Avoid too many return
statements within this method. Open
Open
return "Common";
Avoid too many return
statements within this method. Open
Open
if (this.CancellationToken.IsCancellationRequested) { done(); return; }
Avoid too many return
statements within this method. Open
Open
if (this.CancellationToken.IsCancellationRequested) { done(); return; }
Avoid too many return
statements within this method. Open
Open
if (this.CancellationToken.IsCancellationRequested) { done(); return; }
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return this.OSMData.NodeCount + this.OSMData.WayCount < OBSCURITY_THRESHOLD;
Avoid too many return
statements within this method. Open
Open
if (this.CancellationToken.IsCancellationRequested) { done(); return; }
Avoid too many return
statements within this method. Open
Open
return "Very Common";
Avoid too many return
statements within this method. Open
Open
return "Abundant";
Avoid too many return
statements within this method. Open
Open
return "Heaps";
Avoid too many return
statements within this method. Open
Open
return "Uncommon";
Avoid too many return
statements within this method. Open
Open
return;