Skip to content

Analysis fails due to missing .pylintrc #1

Description

@sandermak

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)
..........

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions