Skip to content
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

[IMP] Detected use exec, eval and inferred cases #98

Closed
JesusZapata opened this issue Dec 27, 2016 · 0 comments
Closed

[IMP] Detected use exec, eval and inferred cases #98

JesusZapata opened this issue Dec 27, 2016 · 0 comments

Comments

@JesusZapata
Copy link

Detected use exec and eval
Example use of exec and eval
eval('os.listdir(".")')
exec('ls')
Example inferred use

def func2(param): 
       param("c = 2")
 def func3():
     my_dict = {
         'my_eval': eval,  # [eval-used]
     }
     my_list = [eval]  # [eval-used]
 
     my_var = eval  # [eval-used]
     # inferred case
     my_var('d = 3')  # [eval-used]
     func2(eval)  # [eval-used]
     return my_dict, my_list
moylop260 pushed a commit to vauxoo-dev/pylint-odoo that referenced this issue Jan 26, 2017
…h-moy

[FIX] method-NAME: Fix if value is not a string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant