Automatically identify dead code

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: L3 - Default
    • None
    • Affects Version/s: None
    • Component/s: frontend
    • M

      We have a linter plugin that produces warning if an import or variable is not used in a file or function. And we have a test that makes sure we use all the libraries we import.

      However, we have nothing that makes sure that the files we have in the repo are actually used anywhere. For example, on March 12 2018, we created an Async component file. One day later we decided that we want to solve the problem differently. However, we never deleted the then obsolete Async file. Until we noticed it more than a year later.

      Maybe we can have a static code analysis tool that helps us keep the codebase alive free of dead code.

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Sebastian Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: