Showing 1,379 of 1,379 total issues
Avoid deeply nested control flow statements. Open
Open
if (!items.some((item) => item === lineObj.mnemonic.item)) {
problemLines.push({
...lineObj,
error: `Item "${target} ${packet} ${lineObj.mnemonic.item}" does not exist.`,
})
Avoid deeply nested control flow statements. Open
Open
if (x1 >= x2) {
// Overlap detected.
return this.diff_bisectSplit_(text1, text2, x1, y1, deadline)
}
Avoid deeply nested control flow statements. Open
Open
if (commonlength !== 0) {
diffs[pointer][1] =
text_insert.substring(text_insert.length - commonlength) +
diffs[pointer][1]
text_insert = text_insert.substring(
Function protocol_cmd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def protocol_cmd(
Avoid deeply nested control flow statements. Open
Open
if (nibble.length < 2) {
nibble = '0' + nibble
}
Avoid deeply nested control flow statements. Open
Open
if (best_loc > loc) {
// When passing loc, don't exceed our current distance from loc.
start = Math.max(1, 2 * loc - best_loc)
} else {
// Already passed loc, downhill from here on in.
Avoid deeply nested control flow statements. Open
Open
if (diff_text == bigpatch.diffs[0][1]) {
bigpatch.diffs.shift()
} else {
bigpatch.diffs[0][1] = bigpatch.diffs[0][1].substring(
diff_text.length,
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Avoid deeply nested control flow statements. Open
Open
if (x1 >= x2) {
// Overlap detected.
return this.diff_bisectSplit_(text1, text2, x1, y1, deadline)
}
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _cmd_disconnect
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _cmd_disconnect(cmd, raw, no_range, no_hazardous, *args, scope):
Function prompt_for_critical_cmd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def prompt_for_critical_cmd(uuid, _username, _target_name, _cmd_name, _cmd_params, cmd_string):
Function inject_tlm
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def inject_tlm(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function raise_critical_cmd_error
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def raise_critical_cmd_error(cls, msg_hash, username, target_name, cmd_name, cmd_params, cmd_string):
Avoid deeply nested control flow statements. Open
Open
if (diff_type === DIFF_EQUAL) {
patch.length2 += diff_text.length
start2 += diff_text.length
} else {
empty = false
Function running_script_prompt
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def running_script_prompt(
Function read_all
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def read_all(
Avoid deeply nested control flow statements. Open
Open
if msg_type == "reject_subscription":
raise RuntimeError("Subscription Rejected")
if timeout:
Function create_timeline_activity
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_timeline_activity(name, kind, start, stop, data={}, scope=OPENC3_SCOPE):