Showing 384 of 1,490 total issues
Function choice
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const choice = (parent, node) => {
const shapeSvg = parent
.insert('g')
.attr('class', 'node default')
.attr('id', node.domId || node.id);
Function setClickFun
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const setClickFun = function (id, functionName, functionArgs) {
if (getConfig().securityLevel !== 'loose') {
return;
}
if (functionName === undefined) {
Function extractFrontMatter
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function extractFrontMatter(text: string): FrontMatterResult {
const matches = text.match(frontMatterRegex);
if (!matches) {
return {
text,
Function drawRels
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const drawRels = function (diagram, rels, getC4ShapeObj, diagObj) {
let i = 0;
for (let rel of rels) {
i = i + 1;
let relTextWrap = rel.wrap && conf.wrap;
Function calculatePoint
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const calculatePoint = (points: Point[], distanceToTraverse: number): Point => {
let prevPoint: Point | undefined = undefined;
let remainingDistance = distanceToTraverse;
for (const point of points) {
if (prevPoint) {
Function draw
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const draw = function (text, id, _version, diagObj) {
conf = getConfig().state;
const securityLevel = getConfig().securityLevel;
// Handle root and Document for when rendering in sandbox mode
let sandboxElement;
Function transformDataWithoutCategory
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function transformDataWithoutCategory(data: number[]): SimplePlotDataType {
let retData: SimplePlotDataType = [];
if (data.length === 0) {
return retData;
}
Function constructor
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(
private chartConfig: XYChartConfig,
private chartData: XYChartData,
chartThemeConfig: XYChartThemeConfig,
tmpSVGGroup: Group
Function byTspan
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function byTspan(content, g, x, y, width, height, textAttrs, conf) {
Function byFo
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function byFo(content, g, x, y, width, height, textAttrs, conf) {
Function byTspan
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function byTspan(content, g, x, y, width, height, textAttrs, conf) {
Function byText
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function byText(content, g, x, y, width, height, textAttrs, colour) {
Function drawExcludeDays
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function drawExcludeDays(theGap, theTopPad, theSidePad, w, h, tasks, excludes, includes) {
Function byFo
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function byFo(content, g, x, y, width, height, textAttrs, conf) {
Function byTspan
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function byTspan(content, g, x, y, width, height, textAttrs, conf) {
Function byFo
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function byFo(content, g, x, y, width, height, textAttrs, conf) {
Function byKatex
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
async function byKatex(content, g, x, y, width, height, textAttrs, conf) {
Function byFo
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function byFo(content, g, x, y, width, height, textAttrs, conf) {
Function byText
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function byText(content, g, x, y, width, height, textAttrs, colour) {
Function byFo
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function byFo(content, g, x, y, width, height, textAttrs, conf) {