Skip to content
Discussion options

You must be logged in to vote

Linters can only do static analysis and so won't be able to alert you if a runtime parameter has been set to an invalid value. However, if the file location is hard coded in the nextflow file then you can detect this. You could also scan a config file to detect one there.

To make a new rule you generally make a class that overrides the org.codenarc.rule.AbstractAstVisitor class and visits the appropriate AST nodes in the parse tree. To find out what type of language constructs you want to visit and inspect you can run the ASTEcho application to dump out the AST for the nf or config file.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jaamarks
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants