-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: description missing lint rule #113
Conversation
Co-authored-by: Clay McLeod <3411613+claymcleod@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this lint doesn't fire if there is no meta section, right? Are we sure that's the right behavior? Presumably sometime soon we're going to implement a lint for "must have a meta section". Should that be handled all at once?
@a-frantz - I think you're already handling that case here: https://github.com/stjude-rust-labs/wdl/blob/main/wdl-lint/src/rules/missing_metas.rs |
Right, I forgot about that 🤦 . But should we consolidate these rules somehow? Maybe I'm over complicating things, but I'm concerned with the case that a user gets the |
I'm not sure it matters. If we fold it into the |
Maybe |
Yea good points. OOS for this PR, but another idea: can we link rules somehow? Like in the output of |
Just added #116 to track that issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright this should be good to merge then 🚀
This pull request adds a new rule to
wdl-lint
.DescriptionMissing
This rule ensures that each meta section includes a
description
keyword.Before submitting this PR, please make sure:
CHANGELOG.md
(see["keep a changelog"] for more information).
Rule specific checks:
RULES.md
.rules()
function inwdl-lint/src/lib.rs
.wdl-lint/tests/lints
that covers everypossible diagnostic emitted for the rule within the file where the rule
is implemented.
wdl-gauntlet --refresh
to ensure that there are nounintended changes to the baseline configuration file (
Gauntlet.toml
).wdl-gauntlet --refresh --arena
to ensure that all of therules added/removed are now reflected in the baseline configuration file
(
Arena.toml
).