Showing 1,485 of 3,294 total issues
Function doSearchInScope
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function doSearchInScope(queryInfo, scope, filter, replaceText, candidateFilesPromise) {
Function searchAndShowResults
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function searchAndShowResults(queryInfo, scope, filter, replaceText, candidateFilesPromise) {
Function showModalDialog
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function showModalDialog(dlgClass, title, message, buttons, autoDismiss) {
Function searchAndReplaceResults
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function searchAndReplaceResults(queryInfo, scope, filter, replaceText, candidateFilesPromise) {
Function getParameters
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function getParameters(inferFnType) {
// work around define functions before use warning.
var recordTypeToString, inferTypeToString, processInferFnTypeParameters, inferFnTypeToString;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function parseQueryInfo
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function parseQueryInfo(queryInfo) {
var queryExpr;
// TODO: only major difference between this one and the one in FindReplace is that
// this always returns a regexp even for simple strings. Reconcile.
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function notify
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
LanguageClient.prototype.notify = function (params) {
var messageParams = params.params;
if (messageParams && messageParams.messageType === MESSAGE_TYPE.BRACKETS) {
if (!messageParams.type) {
console.log("Invalid brackets notification");
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function doSearch
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function doSearch(searchObject, nextPages) {
savedSearchObject = searchObject;
if (!files) {
console.log("no file object found");
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method writeParams
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def writeParams(domain, params, prefixLine = false)
return unless params
write prefixLine if prefixLine
write "<dl>"
params.each do |p|
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Avoid too many return
statements within this function. Open
return;
Avoid too many return
statements within this function. Open
return $relativeElement;
Avoid too many return
statements within this function. Open
return false;
Avoid too many return
statements within this function. Open
return $relativeElement;
Avoid too many return
statements within this function. Open
return this._codeMirror.getOption("mode");
Avoid too many return
statements within this function. Open
return 0;
Avoid too many return
statements within this function. Open
return result;
Avoid too many return
statements within this function. Open
return true;
Avoid too many return
statements within this function. Open
return null;
Avoid too many return
statements within this function. Open
return null;
Avoid too many return
statements within this function. Open
return value;