Skip to content
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

docs: analysis rules #303

Merged
merged 2 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions wdl-analysis/RULES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Rules

This table documents all implemented `wdl` analysis rules implemented on the `main`
branch of the `stjude-rust-labs/wdl` repository. Note that the information may
be out of sync with released packages.

## Analysis Rules

| Name | Description |
|:------------------------|:----------------------------------------------------------------------------------------------------------|
| UnnecessaryFunctionCall | Ensures that function calls are necessary. |
| UnusedCall | Ensures that outputs of a call statement are used in the declaring workflow. |
| UnusedDeclaration | Ensures that private declarations in tasks or workspaces are used within the declaring task or workspace. |
| UnusedImport | Ensures that import namespaces are used in the importing document. |
| UnusedInput | Ensures that task or workspace inputs are used within the declaring task or workspace. |
3 changes: 2 additions & 1 deletion wdl-analysis/src/rules.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Implementation of analysis rule configuration.
//! Implementation of analysis rules.
#![doc = include_str!("../RULES.md")]

use wdl_ast::Severity;

Expand Down
Loading