-
Notifications
You must be signed in to change notification settings - Fork 42
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
Search for print statements and report them #19
Comments
@razzeee are you already working on this? |
No, just came to the conclusion seeing the other pr. Basically there should
be everything in place, we just need to change the regex it's looking for.
…On Thu, 14 Dec 2017, 17:13 Rechi, ***@***.***> wrote:
@razzeee <https://github.com/razzeee> are you already working on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFqyZL6wD1S7ujHSMPUmtWWr5_08eStwks5tAUkMgaJpZM4RBymi>
.
|
Remember that some use print statements for unit tests |
So, should we just grep for print statements in the code and report something like "hey, are you sure this print is intended"? And by grep I actually mean something python-code-aware like the python's |
Code aware would be awesome, but I'm not sure how it will handle third party deps like our kodi classes, which are nowhere to be found here :) |
We could classify using print statements only as warnings. |
so basically we want to search for print statement in all the addon files(.py) and if it's there then they should be reported right? |
Yes, as a warning. But we're not sure how useful a check like this will be in reality. So it might just turn out to be useless. But we need to try. |
Technically, in Kodi ``print` is is implemented is implemented as xbmc.log(message, DEBUG): https://github.com/xbmc/xbmc/blob/master/xbmc/interfaces/python/AddonPythonInvoker.cpp#L19 So I'm not sure if we need to bother with |
unit testing outside kodi |
No description provided.
The text was updated successfully, but these errors were encountered: