Query module DuplicateFunction

name
Duplicate function
description
There is another function that shares a lot of code with this function. Extract the common parts to a shared utility function to improve maintainability.
kind
problem
problem.severity
recommendation
id
js/duplicate-function
tags
testability useless-code maintainability statistical non-attributable duplicate-code
precision
medium

Imports

CodeDuplication

Provides classes for detecting duplicate or similar code.

RestrictedLocations

Provides classes for restricting the locations reported for program elements.

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.