File Query.ts
has 1466 lines of code (exceeds 300 allowed). Consider refactoring. Open
// Generated from src/query/parser/Query.g4 by ANTLR 4.9.0-SNAPSHOT
import { ATN } from 'antlr4ts/atn/ATN';
import { ATNDeserializer } from 'antlr4ts/atn/ATNDeserializer';
import { ParserATNSimulator } from 'antlr4ts/atn/ParserATNSimulator';
Function expr
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public expr(_p?: number): ExprContext {
if (_p === undefined) {
_p = 0;
}
- 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
Query
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
export class Query extends Parser {
public static readonly COMMA = 1;
public static readonly OPEN_PAREN = 2;
public static readonly CLOSE_PAREN = 3;
public static readonly OPEN_BRACKET = 4;
Function stringLiteral
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public stringLiteral(): StringLiteralContext {
const _localctx: StringLiteralContext = new StringLiteralContext(this._ctx, this.state);
this.enterRule(_localctx, 24, Query.RULE_stringLiteral);
let _la: number;
try {
- 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 isOp
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public isOp(): IsOpContext {
const _localctx: IsOpContext = new IsOpContext(this._ctx, this.state);
this.enterRule(_localctx, 12, Query.RULE_isOp);
let _la: number;
try {
- 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 compOp
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public compOp(): CompOpContext {
const _localctx: CompOpContext = new CompOpContext(this._ctx, this.state);
this.enterRule(_localctx, 10, Query.RULE_compOp);
let _la: number;
try {
- 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 likeOp
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public likeOp(): LikeOpContext {
const _localctx: LikeOpContext = new LikeOpContext(this._ctx, this.state);
this.enterRule(_localctx, 14, Query.RULE_likeOp);
let _la: number;
try {
- 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 numberLiteral
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public numberLiteral(): NumberLiteralContext {
const _localctx: NumberLiteralContext = new NumberLiteralContext(this._ctx, this.state);
this.enterRule(_localctx, 26, Query.RULE_numberLiteral);
let _la: number;
try {
- 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 booleanLiteral
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public booleanLiteral(): BooleanLiteralContext {
const _localctx: BooleanLiteralContext = new BooleanLiteralContext(this._ctx, this.state);
this.enterRule(_localctx, 28, Query.RULE_booleanLiteral);
let _la: number;
try {
- 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 valueList
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public valueList(): ValueListContext {
const _localctx: ValueListContext = new ValueListContext(this._ctx, this.state);
this.enterRule(_localctx, 20, Query.RULE_valueList);
let _la: number;
try {
- 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 inOp
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public inOp(): InOpContext {
const _localctx: InOpContext = new InOpContext(this._ctx, this.state);
this.enterRule(_localctx, 16, Query.RULE_inOp);
let _la: number;
try {
- 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"