Dead code detection in shell scripts

As far as I know there are tools for dead code detection in C/C++, Python etc. Is there such tool for shell scripts ?

To be more specific. I have a huge set of legacy bash scripts. They’ve been modified by lots of people, so there are tons of unused lines. Manual checking is not an option.

Source: bash

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.