Showing 1,088 of 2,665 total issues
Function dygraphGetSeriesStyle
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
NETDATA.dygraphGetSeriesStyle = function(dygraphOptions) {
const seriesStyleStr = dygraphOptions.perSeriesStyle;
let formattedStyles = {};
if (seriesStyleStr === '') {
Function handler
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handler: function (entries, observer) {
entries.forEach(function (entry) {
let state = NETDATA.chartState(entry.target);
let idx;
Function parsePersonUrls
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parsePersonUrls: function (person_urls) {
NETDATA.registry.person_urls = person_urls;
if (person_urls) {
NETDATA.registry.machines = {};
Function genLabel
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const genLabel = function (state, parent, dim, name, count) {
let color = state.__chartDimensionColor(name);
let user_element = null;
let user_id = NETDATA.dataAttribute(state.element, 'show-value-of-' + name.toLowerCase() + '-at', null);
Function handler
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handler: function (entries, observer) {
entries.forEach(function (entry) {
let state = NETDATA.chartState(entry.target);
let idx;
Function parsePersonUrls
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parsePersonUrls: function (person_urls) {
NETDATA.registry.person_urls = person_urls;
if (person_urls) {
NETDATA.registry.machines = {};
Function genLabel
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const genLabel = function (state, parent, dim, name, count) {
let color = state.__chartDimensionColor(name);
let user_element = null;
let user_id = NETDATA.dataAttribute(state.element, 'show-value-of-' + name.toLowerCase() + '-at', null);
Function updateProp
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3pie.prototype.updateProp = function(propKey, value) {
switch (propKey) {
case "header.title.text":
var oldVal = helpers.processObj(this.options, propKey);
helpers.processObj(this.options, propKey, value);
Function getCloudAccountAgents
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getCloudAccountAgents() {
if (!isSignedIn()) {
return [];
}
Function notifyForUpdate
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function notifyForUpdate(force) {
versionLog('<p>checking for updates...</p>');
var now = Date.now();
Consider simplifying this complex logical expression. Open
Open
if (document.location.hostname.endsWith('.my-netdata.io') ||
document.location.hostname.endsWith('.mynetdata.io') ||
document.location.hostname.endsWith('.netdata.rocks') ||
document.location.hostname.endsWith('.netdata.ai') ||
document.location.hostname.endsWith('.netdata.live') ||
Method Manager.dyncfgConfigTest
has 58 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *Manager) dyncfgConfigTest(fn functions.Function) {
id := fn.Args[0]
mn, ok := extractModuleName(id)
if !ok {
m.Warningf("dyncfg: test: could not extract module and job from id (%s)", id)
Function parseZpoolListVdevOutput
has 58 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func parseZpoolListVdevOutput(bs []byte) ([]vdevEntry, error) {
var headers []string
var vdevs []vdevEntry
sc := bufio.NewScanner(bytes.NewReader(bs))
Method intelGpuTopExec.run
has 58 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (e *intelGpuTopExec) run() error {
var cmd *exec.Cmd
if e.device != "" {
cmd = exec.Command(e.ndsudoPath, "igt-device-json", "--interval", e.calcIntervalArg(), "--device", e.device)
Method Litespeed.collectReport
has 58 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (l *Litespeed) collectReport(mx map[string]int64, filename string) error {
bs, err := os.ReadFile(filename)
if err != nil {
return err
}
Function underlayCallback
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
underlayCallback: function (canvas, area, g) {
// the chart is about to be drawn
// update history_tip_element
if (state.tmp.dygraph_history_tip_element) {
Function underlayCallback
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
underlayCallback: function (canvas, area, g) {
// the chart is about to be drawn
// update history_tip_element
if (state.tmp.dygraph_history_tip_element) {
Function initializeDynamicDashboardWithData
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initializeDynamicDashboardWithData(data) {
if (data !== null) {
options.hostname = data.hostname;
options.data = data;
options.version = data.version;
Function smoothPlotter
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smoothPlotter(e) {
var ctx = e.drawingContext,
points = e.points;
ctx.beginPath();
Function gotoServerModalHandler
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function gotoServerModalHandler(guid) {
// console.log('goto server: ' + guid);
gotoServerStop = false;
var checked = {};