-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force use shortnames #48
Comments
Not currently. The easiest way to do that would be to go to ast.py where it says
And remove the if statement (i.e. just put name = name.rpartition('.')[2]). I'm not sure if it's useful enough to warrant adding as a commandline option. |
It would. Because there are times when this switch is needed. Ex. when obfuscation is used. |
Wouldn't obfuscation be the worst time for short names? Since in that case you'd typically have tons of different classes named a. |
That's my point. Turned on by default with the option of turning it off when confident obfuscation is not used, as determined by user. Commenting and un-commenting the if statement is a cause of subtle bugs especially when a recompilation does not occur to overwrite. |
It seems to me like having it off by default would be more useful. |
In my opinion it should be the fully qualified name by default, however it would be useful if there was a command line flag to toggle it. |
Is there a switch I can use to force the use of shortnames instead of fully qualified names when referring to non-object references? For example, I want View v instead of android.view.View v
The text was updated successfully, but these errors were encountered: