howardjones/network-weathermap

View on GitHub

Showing 463 of 1,093 total issues

Class "ConfigReader" has 30 methods, which is greater than 20 authorized. Split it into smaller classes.
Open

class ConfigReader

A class that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and therefore to maintain. Above a specific threshold, it is strongly advised to refactor the class into smaller ones which focus on well defined topics.

Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed.
Open

    public function renameNode($oldName, $newName)
Severity: Critical
Found in lib/Weathermap/Editor/Editor.php by sonar-php

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.
Open

    private function handleInheritance($inheritables, $params)
Severity: Critical
Found in lib/Weathermap/Editor/Editor.php by sonar-php

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Severity
Category
Status
Source
Language