Check rule-specific references also in dryrun
Snakemake version 7.8, and all versions before
Describe the bug The dryrun should also catch, if possible, rule-specific errors such as referencing {input.bam} in other rule sections(message, or shell) when in fact, {input.bam} doesnt exist. Currently, the dryrun works fine and doesnt catch this, and only in a real run snakemake aborts with an error. From a dev and user perspective, would be great if such thing can be checked already with a dryrun.
Minimal example I can add if needed, but I think this fairly straight forward to construct
You mean when the shell section refers to {input.bam}, while there is no bam file defined in the input section of the rule? It might be better to check that in the linting rather then dry-run