Find unused code in a Rails app

后端 未结 11 1462
南方客
南方客 2020-12-01 02:35

How do I find what code is and isn\'t being run in production ?

The app is well-tested, but there\'s a lot of tests that test unused code.

11条回答
  •  执笔经年
    2020-12-01 03:20

    It is not the perfect solution, but for example in NetBeans you can find usages of the methods by right click on them (or press Alt+F7).
    So if method is unused, you will see it.

提交回复
热议问题