Skip to content

[postgresql] Fix for #4291 -- non-idiomatic usage of "(foo | )" instead of "foo?" #5210

[postgresql] Fix for #4291 -- non-idiomatic usage of "(foo | )" instead of "foo?"

[postgresql] Fix for #4291 -- non-idiomatic usage of "(foo | )" instead of "foo?" #5210

Triggered via pull request November 1, 2024 08:23
Status Success
Total duration 6m 26s
Artifacts

main.yml

on: pull_request
Matrix: static-check
Matrix: build-pwsh
Fit to window
Zoom out
Zoom in

Annotations

42 warnings
static-check (ubuntu-latest, format): sql/postgresql#L1
one or more grammars do not conform to the Antlr grammar coding standard format for this repo. Reformat using antlr-format.
static-check (ubuntu-latest, useless-parens): sql/postgresql#L1
grammar contains useless parentheses. Check log for more details.
static-check (ubuntu-latest, ambiguity): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1652
warning(146): PostgreSQLLexer.g4:1652:0: non-fragment lexer rule AfterEscapeStringConstantMode_NotContinued can match the empty string
static-check (ubuntu-latest, ambiguity): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1668
warning(146): PostgreSQLLexer.g4:1668:0: non-fragment lexer rule AfterEscapeStringConstantWithNewlineMode_NotContinued can match the empty string
static-check (ubuntu-latest, ambiguity): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5090
warning(154): PostgreSQLParser.g4:5090:0: rule stmt_case contains an optional block with at least one alternative that can match an empty string
static-check (ubuntu-latest, ambiguity): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5180
warning(154): PostgreSQLParser.g4:5180:0: rule stmt_return contains an optional block with at least one alternative that can match an empty string
static-check (ubuntu-latest, ambiguity): sql/postgresql/Generated-CSharp/MyParserInterpreter.cs#L31
The field 'MyParserInterpreter._grammarFileName' is never used
static-check (ubuntu-latest, ambiguity): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1652
warning(146): PostgreSQLLexer.g4:1652:0: non-fragment lexer rule AfterEscapeStringConstantMode_NotContinued can match the empty string
static-check (ubuntu-latest, ambiguity): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1668
warning(146): PostgreSQLLexer.g4:1668:0: non-fragment lexer rule AfterEscapeStringConstantWithNewlineMode_NotContinued can match the empty string
static-check (ubuntu-latest, ambiguity): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5090
warning(154): PostgreSQLParser.g4:5090:0: rule stmt_case contains an optional block with at least one alternative that can match an empty string
static-check (ubuntu-latest, ambiguity): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5180
warning(154): PostgreSQLParser.g4:5180:0: rule stmt_return contains an optional block with at least one alternative that can match an empty string
static-check (ubuntu-latest, ambiguity): sql/postgresql/Generated-CSharp/MyParserInterpreter.cs#L31
The field 'MyParserInterpreter._grammarFileName' is never used
build-pwsh (ubuntu-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1652
warning(146): PostgreSQLLexer.g4:1652:0: non-fragment lexer rule AfterEscapeStringConstantMode_NotContinued can match the empty string
build-pwsh (ubuntu-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1668
warning(146): PostgreSQLLexer.g4:1668:0: non-fragment lexer rule AfterEscapeStringConstantWithNewlineMode_NotContinued can match the empty string
build-pwsh (ubuntu-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5090
warning(154): PostgreSQLParser.g4:5090:0: rule stmt_case contains an optional block with at least one alternative that can match an empty string
build-pwsh (ubuntu-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5180
warning(154): PostgreSQLParser.g4:5180:0: rule stmt_return contains an optional block with at least one alternative that can match an empty string
build-pwsh (ubuntu-latest, CSharp): sql/postgresql/Generated-CSharp/MyParserInterpreter.cs#L31
The field 'MyParserInterpreter._grammarFileName' is never used
build-pwsh (ubuntu-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1652
warning(146): PostgreSQLLexer.g4:1652:0: non-fragment lexer rule AfterEscapeStringConstantMode_NotContinued can match the empty string
build-pwsh (ubuntu-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1668
warning(146): PostgreSQLLexer.g4:1668:0: non-fragment lexer rule AfterEscapeStringConstantWithNewlineMode_NotContinued can match the empty string
build-pwsh (ubuntu-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5090
warning(154): PostgreSQLParser.g4:5090:0: rule stmt_case contains an optional block with at least one alternative that can match an empty string
build-pwsh (ubuntu-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5180
warning(154): PostgreSQLParser.g4:5180:0: rule stmt_return contains an optional block with at least one alternative that can match an empty string
build-pwsh (ubuntu-latest, CSharp): sql/postgresql/Generated-CSharp/MyParserInterpreter.cs#L31
The field 'MyParserInterpreter._grammarFileName' is never used
build-pwsh (windows-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1652
warning(146): PostgreSQLLexer.g4:1652:0: non-fragment lexer rule AfterEscapeStringConstantMode_NotContinued can match the empty string
build-pwsh (windows-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1668
warning(146): PostgreSQLLexer.g4:1668:0: non-fragment lexer rule AfterEscapeStringConstantWithNewlineMode_NotContinued can match the empty string
build-pwsh (windows-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5090
warning(154): PostgreSQLParser.g4:5090:0: rule stmt_case contains an optional block with at least one alternative that can match an empty string
build-pwsh (windows-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5180
warning(154): PostgreSQLParser.g4:5180:0: rule stmt_return contains an optional block with at least one alternative that can match an empty string
build-pwsh (windows-latest, CSharp): sql/postgresql/Generated-CSharp/MyParserInterpreter.cs#L31
The field 'MyParserInterpreter._grammarFileName' is never used
build-pwsh (windows-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1652
warning(146): PostgreSQLLexer.g4:1652:0: non-fragment lexer rule AfterEscapeStringConstantMode_NotContinued can match the empty string
build-pwsh (windows-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1668
warning(146): PostgreSQLLexer.g4:1668:0: non-fragment lexer rule AfterEscapeStringConstantWithNewlineMode_NotContinued can match the empty string
build-pwsh (windows-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5090
warning(154): PostgreSQLParser.g4:5090:0: rule stmt_case contains an optional block with at least one alternative that can match an empty string
build-pwsh (windows-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5180
warning(154): PostgreSQLParser.g4:5180:0: rule stmt_return contains an optional block with at least one alternative that can match an empty string
build-pwsh (windows-latest, CSharp): sql/postgresql/Generated-CSharp/MyParserInterpreter.cs#L31
The field 'MyParserInterpreter._grammarFileName' is never used
build-pwsh (macos-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1652
warning(146): PostgreSQLLexer.g4:1652:0: non-fragment lexer rule AfterEscapeStringConstantMode_NotContinued can match the empty string
build-pwsh (macos-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1668
warning(146): PostgreSQLLexer.g4:1668:0: non-fragment lexer rule AfterEscapeStringConstantWithNewlineMode_NotContinued can match the empty string
build-pwsh (macos-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5090
warning(154): PostgreSQLParser.g4:5090:0: rule stmt_case contains an optional block with at least one alternative that can match an empty string
build-pwsh (macos-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5180
warning(154): PostgreSQLParser.g4:5180:0: rule stmt_return contains an optional block with at least one alternative that can match an empty string
build-pwsh (macos-latest, CSharp): sql/postgresql/Generated-CSharp/MyParserInterpreter.cs#L31
The field 'MyParserInterpreter._grammarFileName' is never used
build-pwsh (macos-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1652
warning(146): PostgreSQLLexer.g4:1652:0: non-fragment lexer rule AfterEscapeStringConstantMode_NotContinued can match the empty string
build-pwsh (macos-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLLexer.g4#L1668
warning(146): PostgreSQLLexer.g4:1668:0: non-fragment lexer rule AfterEscapeStringConstantWithNewlineMode_NotContinued can match the empty string
build-pwsh (macos-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5090
warning(154): PostgreSQLParser.g4:5090:0: rule stmt_case contains an optional block with at least one alternative that can match an empty string
build-pwsh (macos-latest, CSharp): sql/postgresql/Generated-CSharp/PostgreSQLParser.g4#L5180
warning(154): PostgreSQLParser.g4:5180:0: rule stmt_return contains an optional block with at least one alternative that can match an empty string
build-pwsh (macos-latest, CSharp): sql/postgresql/Generated-CSharp/MyParserInterpreter.cs#L31
The field 'MyParserInterpreter._grammarFileName' is never used