mirror of
https://github.com/github/codeql.git
synced 2025-12-27 14:16:34 +01:00
23 lines
577 B
Plaintext
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()
|