To be able to parse the Bash scripts into a syntax tree may allow for easier anaysis/parsing of the Bash code at later stages of the project.
[ ] Determine whether a language tree can be built for bash. If not, determine up to what extent it is possible, and whether this checkstyle could be opinionated such that it only allows for scripts that are suitable to be put into a language tree.
[ ] Determine whether it is valuable for checkstyle for bash.
[ ] If considered valuable, determine if there already is such a parser available. If yes, determine if it is better to use that existing code, or to rebuild.
[ ] If considered valuable, implement the parser such that Bash syntax trees can be generated for the bash scripts.
[ ] Determine up to what extend Python functions should be rewritten to work on the parser/tree instead of on the bash scripts. And rewrite where necessary.
To be able to parse the Bash scripts into a syntax tree may allow for easier anaysis/parsing of the Bash code at later stages of the project.
https://www.oilshell.org/blog/2019/02/07.html https://hackage.haskell.org/package/language-bash