Showing 6 of 41 total issues
Consider simplifying this complex logical expression. Open
Open
if (
// Skip when the range contains an excluded mark.
(invalidMarks && markActiveInRange({ $from, $to }, invalidMarks)) ||
(rule.invalidMarks && markActiveInRange({ $from, $to }, rule.invalidMarks)) ||
// Skip pure whitespace updates
Consider simplifying this complex logical expression. Open
Open
if (
key === 'Home' ||
(key === 'ArrowUp' && metaKeyPressed) ||
key === 'End' ||
(key === 'ArrowDown' && metaKeyPressed)
Function handleMouseMove
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
view,
event,
handleWidth,
cellMinWidth,
lastColumnResizable,
Function buildPackageJson
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
packageDir: string,
/**
* The absolute path to the directory that include the package.json file. This directory may be the same as the packageDir or it may be a subdirectory of the packageDir.
*/
packageJsonDir: string,
Function offsetIncrement
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
source: string,
initialCursor: number,
formatted: string,
endCursor: number,
replacementPairs: Array<[string, string]>,
Function showButton
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
trigger: HTMLElement,
findTable: FindTable,
type: TriggerAreaType,
axis: CellAxis,
view: EditorView,