Skip to content

Commit

Permalink
complexity warning waivers
Browse files Browse the repository at this point in the history
  • Loading branch information
drom committed Jan 8, 2023
1 parent 69fe95d commit 5f6866d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/arc-shape.js
Expand Up @@ -112,6 +112,6 @@ function arcShape (Edge, from, to) { /* eslint complexity: [warn, 30] */
d: d,
style: style
};
}
} /* eslint complexity: [1, 40] */

module.exports = arcShape;
2 changes: 1 addition & 1 deletion lib/gen-first-wave-brick.js
Expand Up @@ -32,6 +32,6 @@ function genFirstWaveBrick (text, extra, times) {
default: tmp = genBrick(['xxx'], extra, times); break;
}
return tmp;
}
} /* eslint complexity: [1, 30] */

module.exports = genFirstWaveBrick;
2 changes: 1 addition & 1 deletion lib/parse-config.js
Expand Up @@ -85,6 +85,6 @@ function parseConfig (source, lane) {
lane.foot.text = source.foot.text;
}
}
}
} /* eslint complexity: [1, 40] */

module.exports = parseConfig;
2 changes: 1 addition & 1 deletion lib/render-marks.js
Expand Up @@ -84,7 +84,7 @@ function ticktock (cxt, ref1, ref2, x, dx, y, len) {
res.push(['text', {x: i * dx + x, y: y}].concat(tspan.parse(L[i])));
}
return [res];
}
} /* eslint complexity: [1, 30] */

function renderMarks (content, index, lane, source) {
var mstep = 2 * (lane.hscale);
Expand Down
6 changes: 4 additions & 2 deletions lib/render-piece-wise.js
Expand Up @@ -3,7 +3,9 @@
const onml = require('onml');

const scaled = (d, sx, sy) => {
if (sy === undefined) { sy = sx; }
if (sy === undefined) {
sy = sx;
}
let i = 0;
while (i < d.length) {
switch (d[i]) {
Expand Down Expand Up @@ -38,7 +40,7 @@ const scaled = (d, sx, sy) => {
i++;
}
return d;
};
} /* eslint complexity: [1, 30] */;

function scale (d, cfg) {
if (typeof d === 'string') {
Expand Down

0 comments on commit 5f6866d

Please sign in to comment.