Showing 357 of 7,143 total issues
Function sizePane
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
, sizePane = function (evt_or_pane, size, skipCallback, noAnimation, force) {
Function switchClass
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
switchClass: function( remove, add, speed, easing, callback) {
Function createQuery
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
createQuery(val, childExists) {
var queryParam = {
query: "*",
field: "*",
queryFlag: true,
- 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 ngOnInit
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
ngOnInit() {
this.options = JSON.parse(JSON.stringify(this.default_options));
try {
if (this.appliedQuery[this.current_query][this.selectedField]) {
this.inputs.input.value = this.appliedQuery[this.current_query][this.fieldName].value;
- 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 ngOnInit
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
ngOnInit() {
this.options = JSON.parse(JSON.stringify(this.default_options));
try {
if(this.appliedQuery[this.current_query]['field']) {
this.appliedQuery[this.current_query]['field'] = this.fieldName;
- 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 ngOnInit
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
ngOnInit() {
this.options = JSON.parse(JSON.stringify(this.default_options));
try {
if(this.appliedQuery['range'][this.fieldName]['gte']) {
this.inputs.gte.value = this.appliedQuery['range'][this.fieldName]['gte']
- 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 ngOnInit
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
ngOnInit() {
this.options = JSON.parse(JSON.stringify(this.default_options));
try {
if (this.appliedQuery[this.current_query]['match']['span_term'][this.selectedField]) {
this.inputs.input.value = this.appliedQuery[this.current_query]['match']['span_term'][this.fieldName].value;
- 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 ngOnInit
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
ngOnInit() {
this.options = JSON.parse(JSON.stringify(this.default_options));
try {
if(this.appliedQuery['range'][this.fieldName]['lt']) {
this.inputs.lt.value = this.appliedQuery['range'][this.fieldName]['lt']
- 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 ngOnInit
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
ngOnInit() {
this.options = JSON.parse(JSON.stringify(this.default_options));
try {
if(this.appliedQuery['range'][this.fieldName][this.current_query]) {
this.inputs.gt.value = this.appliedQuery['range'][this.fieldName]['gt'];
- 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
if (y < x) return 1
Avoid too many return
statements within this function. Open
return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
Avoid too many return
statements within this function. Open
return fromArrayLike(that, obj.data)
Avoid too many return
statements within this function. Open
return 0;
Avoid too many return
statements within this function. Open
return false; // no match, so cannot - or don't need to - track zoom
Avoid too many return
statements within this function. Open
if (x < y) return -1
Avoid too many return
statements within this function. Open
return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
Avoid too many return
statements within this function. Open
return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
Avoid too many return
statements within this function. Open
return 0
Avoid too many return
statements within this function. Open
return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
Avoid too many return
statements within this function. Open
return calc(sW, cW);