Idea detail
check_rq_syntax
reqlan rq/core_analysis/check.rq:460
Summary
check reports a syntax error when an `.rq` file fails to parse.
The parser ( `reqlan-parse` ) is the single source of the message and span.
Example message: `expected idea, ideaset, or one-liner`.
The language server already shows these diagnostics ( language_server_rust ).
check_rq_syntax must emit the same class of issue so CLI and CI catch what the editor underlines.
Issue kind is `syntax`. The label is the parser message. Severity follows the parser diagnostic.
A file that only fails to parse still appears in the issue list even when it contributes no ideas or references.
comment_reference_ignore suppresses a syntax error on the next line ( same rule as the language server ).
Comment-reference syntax in non- `.rq` files stays code_comment_syntax_errors.
Related: check check_rq_syntax grammar_and_parser
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | parser.rs, mod.rs, sync.rs, analysis.rs, check.ts |
| status | pending |
| todo | Surface `reqlan-parse` diagnostics through `check_references`; cover CLI/JSON and `//rq-ignore-error`. |
Ancestor context
No ancestor chain recorded.
Outbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | check | reqlan rq/core_analysis/check.rq | check |
| references | language_server_rust | reqlan rq/extension/language/support/language-server-rust.rq | language_server_rust |
| references | comment_reference_ignore | reqlan rq/language/syntax.rq | comment_reference_ignore |
| references | code_comment_syntax_errors | reqlan rq/core_analysis/check.rq | code_comment_syntax_errors |
| references | grammar_and_parser | reqlan rq/core-architecture.rq | grammar_and_parser |
| file_reference | "../../crates/reqlan-parse/src/parser.rs" | crates/reqlan-parse/src/parser.rs | parser.rs |
| file_reference | "../../crates/reqlan-index/src/check/mod.rs" | crates/reqlan-index/src/check/mod.rs | mod.rs |
| file_reference | "../../crates/reqlan-index/src/sync.rs" | crates/reqlan-index/src/sync.rs | sync.rs |
| file_reference | "../../crates/reqlan-lsp/src/analysis.rs" | crates/reqlan-lsp/src/analysis.rs | analysis.rs |
| file_reference | "../../packages/cli/src/commands/check.ts" | packages/cli/src/commands/check.ts | check.ts |
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | check | reqlan rq/core_analysis/check.rq | check_rq_syntax |
| references | code_comment_syntax_errors | reqlan rq/core_analysis/check.rq | check_rq_syntax |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…