Finding unused (aka “dead”) code in Delphi

后端 未结 8 2178
忘掉有多难
忘掉有多难 2021-01-01 23:51

Are there any tools that can determine if a function/procedure/method/entire class is used?

I\'ve seen tools that can help a knowledgeable developer track down unus

8条回答
  •  没有蜡笔的小新
    2021-01-02 00:17

    Maybe CodeHealer could help you with unused code

    CodeHealer performs an in-depth analysis of source code, looking for problems in the following areas:

    Audits: Quality control rules such as unused or unreachable code, use of Delphi directive names and keywords as identifiers, identifiers hiding others of the same name at a higher scope, and more. Checks: Potential errors such as uninitialised or unreferenced identifiers, dangerous type casting, automatic type conversions, undefined function return values, unused assigned values, and more. Metrics: Quantification of code properties such as cyclomatic complexity, coupling between objects (Data Abstraction Coupling), comment ratio, number of classes, lines of code, and more.

提交回复
热议问题