Showing 842 of 1,379 total issues
Method spawn
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def self.spawn(scope, name, suite_runner = nil, disconnect = false, environment = nil, user_full_name = nil, username = nil)
Avoid deeply nested control flow statements. Open
Open
for (const param of lineObj.mnemonic.params) {
if (!items.some((item) => item === param)) {
problemLines.push({
...lineObj,
error: `Command "${target} ${packet}" param "${param}" does not exist.`,
Avoid deeply nested control flow statements. Open
Open
for (var y = 0; y < patches[x].diffs.length; y++) {
var mod = patches[x].diffs[y]
if (mod[0] !== DIFF_EQUAL) {
index2 = this.diff_xIndex(diffs, index1)
}
Avoid deeply nested control flow statements. Open
Open
if msg_type == "disconnect":
if json_hash["reason"] == "unauthorized":
raise RuntimeError("Unauthorized")
if msg_type == "reject_subscription":
Function _log_cmd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _log_cmd(target_name, cmd_name, cmd_params, raw, no_range, no_hazardous):
Function build_cmd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_cmd(cls, target_name, cmd_name, cmd_params, range_check, raw, scope=OPENC3_SCOPE):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function prompt
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def prompt(
Avoid deeply nested control flow statements. Open
Open
if (commonlength !== 0) {
if (
pointer - count_delete - count_insert > 0 &&
diffs[pointer - count_delete - count_insert - 1][0] ==
DIFF_EQUAL
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 (!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)
}