Showing 1,088 of 2,665 total issues
Function notifyAll
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
notifyAll: function () {
// console.log('FETCHING ALARM LOG');
NETDATA.alarms.get_log(NETDATA.alarms.last_notification_id, function (data) {
// console.log('ALARM LOG FETCHED');
Function update_netdata_badges
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update_netdata_badges() {
netdata_loops++;
netdata_is_live = false;
var updated = 0;
Function positionLabelGroups
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
positionLabelGroups: function(pie, section) {
if (pie.options.labels[section].format === "none")
return;
pie.__labels[section]
Function notifyForDeleteRegistry
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function notifyForDeleteRegistry() {
const responseEl = document.getElementById('deleteRegistryResponse');
if (deleteRegistryUrl) {
if (isSignedIn()) {
Function __init__
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self, stream, canonical=None, indent=None, width=None,
allow_unicode=None, line_break=None):
# The stream should have the methods `write` and possibly `flush`.
self.stream = stream
Method KubeState.collectNodesState
has 54 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (ks *KubeState) collectNodesState(mx map[string]int64) {
now := time.Now()
for _, ns := range ks.state.nodes {
if ns.deleted {
delete(ks.state.nodes, nodeSource(ns.name))
Method Dnsmasq.collectCacheStatistics
has 54 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (d *Dnsmasq) collectCacheStatistics(mx map[string]int64) error {
/*
;; flags: qr aa rd ra; QUERY: 7, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
Method SquidLog.createCharts
has 54 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (s *SquidLog) createCharts(line *logLine) error {
if line.empty() {
return errors.New("empty line")
}
charts := &Charts{
Function prepare
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prepare: function (state) {
let has_custom_colors = false;
if (typeof state.tmp.__commonColors === 'undefined') {
let defname = state.chart.context;
Function touchend
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
touchend: function (event, dygraph, context) {
state.tmp.dygraph_mouse_down = false;
if (NETDATA.options.debug.dygraph || state.debug) {
state.log('interactionModel.touchend()');
Function easypiechartSetSelection
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
NETDATA.easypiechartSetSelection = function (state, t) {
if (state.timeIsVisible(t) !== true) {
return NETDATA.easypiechartClearSelection(state, true);
}
Function resetChart
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.resetChart = function (dontClearMaster, dontUpdate) {
if (this.debug) {
this.log('resetChart(' + dontClearMaster + ', ' + dontUpdate + ') called');
}
Function resetChart
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.resetChart = function (dontClearMaster, dontUpdate) {
if (this.debug) {
this.log('resetChart(' + dontClearMaster + ', ' + dontUpdate + ') called');
}
Function easypiechartSetSelection
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
NETDATA.easypiechartSetSelection = function (state, t) {
if (state.timeIsVisible(t) !== true) {
return NETDATA.easypiechartClearSelection(state, true);
}
Function touchend
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
touchend: function (event, dygraph, context) {
state.tmp.dygraph_mouse_down = false;
if (NETDATA.options.debug.dygraph || state.debug) {
state.log('interactionModel.touchend()');
Function prepare
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prepare: function (state) {
let has_custom_colors = false;
if (typeof state.tmp.__commonColors === 'undefined') {
let defname = state.chart.context;
Function getIncludes
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getIncludes: function(val) {
var addMainLabel = false;
var addValue = false;
var addPercentage = false;
Method Manager.dyncfgConfigRestart
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *Manager) dyncfgConfigRestart(fn functions.Function) {
id := fn.Args[0]
mn, jn, ok := extractModuleJobName(id)
if !ok {
m.Warningf("dyncfg: restart: could not extract module from id (%s)", id)
Method SystemdUnits.collectUnits
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (s *SystemdUnits) collectUnits(mx map[string]int64, conn systemdConnection) error {
var units []dbus.UnitStatus
var err error
if s.systemdVersion >= 230 {
Function collectSystemRebuild
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func collectSystemRebuild(sm *systemMetrics, ss client.SystemStatistics) {
m := &sm.Rebuild
m.Forward.BW.set(
calcBW(ss.FwdRebuildReadBwc),