Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Analysis fails due to missing .pylintrc #1

Copy link
Copy link
@sandermak

Description

@sandermak
Issue body actions

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

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.