pylint #21862 warn when derived class has same method implementation [open]

sometimes, after a refactoring, a method in a derived class ends up with the same implementation as the one in the parent class (generally copy pasted, and forgot to remove). I would find it helpful if Pylint could help me hunt these.

The duplicated code tool in pylint does some of the job, but :

  • it does not check for duplication inside a given module
  • it does not check for code chunks shorter than N lines, N being configurable

The target for this check is typically short methods (2-3 lines) which would not be flagged by the duplicate code tool.

done in<not specified>
closed by<not specified>