Create a way to emit lint warnings #10
Labels
No labels
bug
crate/cli
crate/core
crate/parser
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rokc/rokc#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Find a way to emit lint warnings, optionally with metadata only available in the evaluator stage. E.g. this could be used to emit a lint (and maybe even a formatting fix) if the attribute of a node is not indented as expected.
This could e.g. be implemented with a special (and without any tokens)
S_LINT->S_LINT_MISSING_INDENTATIONnode emitted in the parser step and converted to a lint/evaluator message in the evaluator stageAnother lint would be
select XwithXnot existing.This would mostly make sense in its own stage (perhaps own command) given that you can only check for this once all config nodes are evaluated.
This also only has limited use, as this is a patterned used in the kernel for arch specific options. So this might need some way of specifying known options from another arch or some way to parse all arch options that are available