Hi,
I’m trying to test the python analysis using the Github intergrgation of Sonarcloud, but my python code issues are not being flagged at all after a new commit has been pushed. The python files just come up as fine with no errors and I can’t figure out why?
Hello, thanks for reporting this.
Python analyzer currently has limitation to find such type of issues only on function/method level. We have a SONARPY-834 ticket for it .
So please try to wrap the following code snippet with function declaration like below:
import pandas as pd
import os
def foo():
os.system('echo Hello World')
test_list = []
test_tuple = tuple()
test_list = []
test_tuple = tuple()
test_list = []
test_tuple = tuple()
test_output = test_list + test_tuple()
obvious_github_token = "<some token>"
obvious_github_token = "<some token>"
obvious_github_token = "<some token>"
obvious_github_token = "<some token>"
Regarding GitHub tokens detection - we don’t support it yet, we plans to add it in the future, it is planned to be done this quarter.
Thanks,
Maksim Grebeniuk
2 Likes