Files
codeql/python/ql/src/external/MostlyDuplicateClass.ql
2021-03-25 15:27:55 +01:00

23 lines
577 B
Plaintext

/**
* @deprecated
* @name Mostly duplicate class
* @description More than 80% of the methods in this class are duplicated in another class. Create a common supertype to improve code sharing.
* @kind problem
* @tags testability
* maintainability
* useless-code
* duplicate-code
* statistical
* non-attributable
* @problem.severity recommendation
* @sub-severity high
* @precision high
* @id py/mostly-duplicate-class
*/
import python
from Class c, Class other, string message
where none()
select c, message, other, other.getName()