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

Analysis fails due to missing .pylintrc #1

Open
sandermak opened this issue Mar 13, 2012 · 1 comment
Open

Analysis fails due to missing .pylintrc #1

sandermak opened this issue Mar 13, 2012 · 1 comment

Comments

@sandermak
Copy link

In the sonar-project.properties file, the following line is defined:

sonar.python.pylint_config=.pylintrc

However, there is no .pylintrc in the root of repository, so sonar-runner fails with the exception:

Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.util
s.SonarException: Cannot analyse the file 'C:\temp\sample_sonar_python\src\badfortune.py', det
ails: 'org.sonar.api.utils.SonarException: Cannot find the pylint configuration file: c:\temp
sample_sonar_python.pylintrc'
at org.sonar.runner.Runner.delegateExecution(Runner.java:189)
at org.sonar.runner.Runner.execute(Runner.java:78)
at org.sonar.runner.Main.main(Main.java:61)
Caused by: org.sonar.api.utils.SonarException: Cannot analyse the file 'C:\temp\sample_sonar_p
ython\src\badfortune.py', details: 'org.sonar.api.utils.SonarException: Cannot find the pylint
configuration file: c:\temp\sample_sonar_python.pylintrc'
at org.sonar.plugins.python.PythonSensor.analyse(PythonSensor.java:48)
at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
at org.sonar.batch.phases.Phases.execute(Phases.java:93)
at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:111)
..........

@wenns
Copy link
Owner

wenns commented Mar 13, 2012

Am 13. Mrz 2012 09:39 schrieb Sander Mak <
[email protected]

:

In the sonar-project.properties file, the following line is defined:

sonar.python.pylint_config=.pylintrc

However, there is no .pylintrc in the root of repository, so sonar-runner
fails with the exception:

Youre right. I'll fix it. You can either disable the property or use "mvn
sonar:sonar" in the meanwhile.

Exception in thread "main"
org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.util
s.SonarException: Cannot analyse the file
'C:\temp\sample_sonar_python\src\badfortune.py', det
ails: 'org.sonar.api.utils.SonarException: Cannot find the pylint
configuration file: c:\temp
sample_sonar_python.pylintrc'
at org.sonar.runner.Runner.delegateExecution(Runner.java:189)
at org.sonar.runner.Runner.execute(Runner.java:78)
at org.sonar.runner.Main.main(Main.java:61)
Caused by: org.sonar.api.utils.SonarException: Cannot analyse the file
'C:\temp\sample_sonar_p
ython\src\badfortune.py', details: 'org.sonar.api.utils.SonarException:
Cannot find the pylint
configuration file: c:\temp\sample_sonar_python.pylintrc'
at
org.sonar.plugins.python.PythonSensor.analyse(PythonSensor.java:48)
at
org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
at org.sonar.batch.phases.Phases.execute(Phases.java:93)
at
org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at
org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:111)
..........


Reply to this email directly or view it on GitHub:
#1

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

2 participants