New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 636646 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 475714
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Add python utility for detecting duplicate class names in python file

Project Member Reported by nedngu...@google.com, Aug 11 2016

Issue description

There have been many cases which multiple classes with same name are defined in the python files which results in one of those classes ended up being dead code.
Example:  issue 636401 , https://github.com/catapult-project/catapult/blob/master/devil/devil/android/decorators_test.py

We should add a python utility for detecting duplicate class names in python file that can be used in PRESUBMIT.


 
Actually it looks like all we need is to enable function-redefined check in pylintrc file.
Mergedinto: 475714
Status: Duplicate (was: Started)

Sign in to add a comment