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

No violations shown in Sonar analysis #2

Open
sandermak opened this issue Mar 13, 2012 · 3 comments
Open

No violations shown in Sonar analysis #2

sandermak opened this issue Mar 13, 2012 · 3 comments

Comments

@sandermak
Copy link

When fixing issue #1 (by removing the .pylintrc line from sonar-project.properties), the analysis runs to completion successfully. However, when looking at the analysis, no violations are reported. I observed the same with one of my own Python projects, even though running pylint manually on the source files reveals many violations. The default Python profile is selected for analysis.

Environment:

Win7, Python 2.7, Sonar 2.13.1 and the latest version of the Python plugin

@wenns
Copy link
Owner

wenns commented Mar 13, 2012

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

:

When fixing issue #1 (by removing the .pylintrc line from
sonar-project.properties), the analysis runs to completion successfully.
However, when looking at the analysis, no violations are reported. I
observed the same with one of my own Python projects, even though running
pylint manually on the source files reveals many violations. The default
Python profile is selected for analysis.

Environment:

Win7, Python 2.7, Sonar 2.13.1 and the latest version of the Python plugin

Strange. Looking at the sample project: it may be due to the scm-access
violations do to the other advance parameter defined.
Anyway, can you please run "sonar-runner -X", look for the list of used
sensors and also for the invocations of pylint?


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

@sandermak
Copy link
Author

Pylint is invoked and the PythonComplexitySensor and PythonViolationsSensor both seem to run. See below for the full log:

C:\tools\sonar-runner-1.2\bin\..
Runner configuration file: C:\tools\sonar-runner-1.2\bin\..\conf\sonar-runner.properties
Project configuration file: c:\temp\sample_sonar_python\sonar-project.properties
Runner version: 1.2
Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
OS name: "Windows 7", version: "6.1", arch: "amd64"
Server: http://localhost:9000
Work directory: C:\temp\sample_sonar_python\.sonar
10:35:39.714 DEBUG Temporary directory: C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947
10:35:39.717 DEBUG Downloading JDBC driver to C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\jdbc-driver.jar
10:35:39.717 DEBUG Download: http://localhost:9000/deploy/jdbc-driver.jar (no proxy)
10:35:39.759 WARN  Derby database should be used for evaluation purpose only
10:35:39.759 INFO  Create JDBC datasource
10:35:40.259 DEBUG Logging initialized using 'org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
10:35:40.294 INFO  Initializing Hibernate
10:35:40.297 DEBUG hibernate.generate_statistics: false
10:35:40.297 DEBUG hibernate.dialect: org.sonar.core.persistence.dialect.Derby$DerbyWithDecimalDialect
10:35:40.298 DEBUG hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider
10:35:40.298 DEBUG hibernate.hbm2ddl.auto: validate
10:35:41.427 DEBUG Downloading index of plugins
10:35:41.427 DEBUG Download: http://localhost:9000/deploy/plugins/index.txt (no proxy)
10:35:41.438 DEBUG Downloading plugin findbugs into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\findbugs
10:35:41.438 DEBUG Download: http://localhost:9000/deploy/plugins/findbugs/sonar-findbugs-plugin-2.13.1.jar (no proxy)
10:35:41.613 DEBUG Excluded plugin: findbugs
10:35:41.613 DEBUG Downloading plugin jacoco into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\jacoco
10:35:41.613 DEBUG Download: http://localhost:9000/deploy/plugins/jacoco/sonar-jacoco-plugin-2.13.1.jar (no proxy)
10:35:41.630 DEBUG Excluded plugin: jacoco
10:35:41.630 DEBUG Downloading plugin l10nen into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\l10nen
10:35:41.630 DEBUG Download: http://localhost:9000/deploy/plugins/l10nen/sonar-l10n-en-plugin-2.13.1.jar (no proxy)
10:35:41.638 DEBUG Excluded plugin: l10nen
10:35:41.639 DEBUG Downloading plugin python into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\python
10:35:41.639 DEBUG Download: http://localhost:9000/deploy/plugins/python/sonar-python-plugin-0.1.jar (no proxy)
10:35:41.663 DEBUG Excluded plugin: python
10:35:41.664 DEBUG Downloading plugin surefire into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\surefire
10:35:41.664 DEBUG Download: http://localhost:9000/deploy/plugins/surefire/sonar-surefire-plugin-2.13.1.jar (no proxy)
10:35:41.670 DEBUG Excluded plugin: surefire
10:35:41.670 DEBUG Downloading plugin cpd into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\cpd
10:35:41.671 DEBUG Download: http://localhost:9000/deploy/plugins/cpd/sonar-cpd-plugin-2.13.1.jar (no proxy)
10:35:41.698 DEBUG Excluded plugin: cpd
10:35:41.723 DEBUG Downloading plugin checkstyle into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\checkstyle
10:35:41.724 DEBUG Download: http://localhost:9000/deploy/plugins/checkstyle/sonar-checkstyle-plugin-2.13.1.jar (no proxy)
10:35:41.738 DEBUG Download: http://localhost:9000/deploy/plugins/checkstyle/README.txt (no proxy)
10:35:41.762 DEBUG Excluded plugin: checkstyle
10:35:41.763 DEBUG Downloading plugin pmd into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\pmd
10:35:41.764 DEBUG Download: http://localhost:9000/deploy/plugins/pmd/sonar-pmd-plugin-2.13.1.jar (no proxy)
10:35:41.804 DEBUG Download: http://localhost:9000/deploy/plugins/pmd/README.txt (no proxy)
10:35:41.872 DEBUG Excluded plugin: pmd
10:35:41.873 DEBUG Downloading plugin core into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\core
10:35:41.873 DEBUG Download: http://localhost:9000/deploy/plugins/core/sonar-core-plugin-2.13.1.jar (no proxy)
10:35:41.881 DEBUG Excluded plugin: core
10:35:41.882 DEBUG Downloading plugin dbcleaner into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\dbcleaner
10:35:41.882 DEBUG Download: http://localhost:9000/deploy/plugins/dbcleaner/sonar-dbcleaner-plugin-2.13.1.jar (no proxy)
10:35:41.887 DEBUG Excluded plugin: dbcleaner
10:35:41.887 DEBUG Downloading plugin cobertura into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\cobertura
10:35:41.887 DEBUG Download: http://localhost:9000/deploy/plugins/cobertura/sonar-cobertura-plugin-2.13.1.jar (no proxy)
10:35:41.893 DEBUG Excluded plugin: cobertura
10:35:41.893 DEBUG Downloading plugin squidjava into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\squidjava
10:35:41.893 DEBUG Download: http://localhost:9000/deploy/plugins/squidjava/sonar-squid-java-plugin-2.13.1.jar (no proxy)
10:35:41.920 DEBUG Excluded plugin: squidjava
10:35:41.920 DEBUG Downloading plugin design into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\design
10:35:41.920 DEBUG Download: http://localhost:9000/deploy/plugins/design/sonar-design-plugin-2.13.1.jar (no proxy)
10:35:41.931 DEBUG Excluded plugin: design
10:35:41.932 DEBUG Downloading plugin emailnotifications into C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947\plugins\emailnotifications
10:35:41.932 DEBUG Download: http://localhost:9000/deploy/plugins/emailnotifications/sonar-email-notifications-plugin-2.13.1.jar (no proxy)
10:35:41.949 DEBUG Excluded plugin: emailnotifications
10:35:42.848 INFO  -------------  Analyzing sample_sonar_python
10:35:43.516 INFO  Selected quality profile : [name=Default Python Profile,language=py]
10:35:43.543 INFO  Configure maven plugins...
10:35:43.626 INFO  Compare to previous analysis (2012-03-13)
10:35:43.811 INFO  Compare over 5 days (2012-03-08, analysis of 2012-03-13 09:35:54.605)
10:35:43.824 INFO  Compare over 30 days (2012-02-12, analysis of 2012-03-13 09:35:54.605)
10:35:43.843 DEBUG Initializers : ProjectFileSystemLogger
10:35:43.844 INFO  Initializer ProjectFileSystemLogger...
10:35:43.849 INFO  Source directories:
10:35:43.849 INFO    C:\temp\sample_sonar_python\src
10:35:43.850 INFO  Initializer ProjectFileSystemLogger done: 6 ms
10:35:43.867 DEBUG Sensors : org.sonar.plugins.python.PythonSourceImporter@12781046 -> org.sonar.plugins.python.PythonSquidSensor@8746d23 -> org.sonar.plugins.python.PythonComplexitySensor@13a9192b -> org.sonar.plugins.python.PythonViolationsSensor@42b36022 -> CpdSensor -> ProfileSensor -> ProfileEventsSensor -> VersionEventsSensor
10:35:43.867 INFO  Sensor org.sonar.plugins.python.PythonSourceImporter@12781046...
10:35:44.321 INFO  Sensor org.sonar.plugins.python.PythonSourceImporter@12781046 done: 454 ms
10:35:44.321 INFO  Sensor org.sonar.plugins.python.PythonSquidSensor@8746d23...
10:35:44.363 INFO  Sensor org.sonar.plugins.python.PythonSquidSensor@8746d23 done: 42 ms
10:35:44.363 INFO  Sensor org.sonar.plugins.python.PythonComplexitySensor@13a9192b...
10:35:44.368 DEBUG Calling command: 'python c:\temp\sample_sonar_python\.sonar\org\sonar\plugins\python\pygenie\pygenie.py all -v  C:\temp\sample_sonar_python\src\badfortune.py'
10:35:44.651 DEBUG Calling command: 'python c:\temp\sample_sonar_python\.sonar\org\sonar\plugins\python\pygenie\pygenie.py all -v  C:\temp\sample_sonar_python\src\directory\file_in_directory.py'
10:35:44.715 DEBUG Calling command: 'python c:\temp\sample_sonar_python\.sonar\org\sonar\plugins\python\pygenie\pygenie.py all -v  C:\temp\sample_sonar_python\src\package\file_in_package.py'
10:35:44.780 DEBUG Calling command: 'python c:\temp\sample_sonar_python\.sonar\org\sonar\plugins\python\pygenie\pygenie.py all -v  C:\temp\sample_sonar_python\src\package\__init__.py'
10:35:44.846 DEBUG Calling command: 'python c:\temp\sample_sonar_python\.sonar\org\sonar\plugins\python\pygenie\pygenie.py all -v  C:\temp\sample_sonar_python\src\samples\fortune.py'
10:35:44.918 DEBUG Calling command: 'python c:\temp\sample_sonar_python\.sonar\org\sonar\plugins\python\pygenie\pygenie.py all -v  C:\temp\sample_sonar_python\src\samples\letters.py'
10:35:45.006 DEBUG Calling command: 'python c:\temp\sample_sonar_python\.sonar\org\sonar\plugins\python\pygenie\pygenie.py all -v  C:\temp\sample_sonar_python\src\samples\strfile.py'
10:35:45.079 DEBUG Calling command: 'python c:\temp\sample_sonar_python\.sonar\org\sonar\plugins\python\pygenie\pygenie.py all -v  C:\temp\sample_sonar_python\src\samples\__init__.py'
10:35:45.145 DEBUG Calling command: 'python c:\temp\sample_sonar_python\.sonar\org\sonar\plugins\python\pygenie\pygenie.py all -v  C:\temp\sample_sonar_python\src\__init__.py'
10:35:45.210 INFO  Sensor org.sonar.plugins.python.PythonComplexitySensor@13a9192b done: 847 ms
10:35:45.211 INFO  Sensor org.sonar.plugins.python.PythonViolationsSensor@42b36022...
10:35:45.216 DEBUG Calling command: 'C:/tools/Python27/Scripts/pylint.bat -i y -f parseable -r n C:\temp\sample_sonar_python\src\badfortune.py'
10:35:48.912 DEBUG Calling command: 'C:/tools/Python27/Scripts/pylint.bat -i y -f parseable -r n C:\temp\sample_sonar_python\src\directory\file_in_directory.py'
10:35:49.121 DEBUG Calling command: 'C:/tools/Python27/Scripts/pylint.bat -i y -f parseable -r n C:\temp\sample_sonar_python\src\package\file_in_package.py'
10:35:49.332 DEBUG Calling command: 'C:/tools/Python27/Scripts/pylint.bat -i y -f parseable -r n C:\temp\sample_sonar_python\src\package\__init__.py'
10:35:49.543 DEBUG Calling command: 'C:/tools/Python27/Scripts/pylint.bat -i y -f parseable -r n C:\temp\sample_sonar_python\src\samples\fortune.py'
10:35:49.855 DEBUG Calling command: 'C:/tools/Python27/Scripts/pylint.bat -i y -f parseable -r n C:\temp\sample_sonar_python\src\samples\letters.py'
10:35:50.206 DEBUG Calling command: 'C:/tools/Python27/Scripts/pylint.bat -i y -f parseable -r n C:\temp\sample_sonar_python\src\samples\strfile.py'
10:35:50.463 DEBUG Calling command: 'C:/tools/Python27/Scripts/pylint.bat -i y -f parseable -r n C:\temp\sample_sonar_python\src\samples\__init__.py'
10:35:50.672 DEBUG Calling command: 'C:/tools/Python27/Scripts/pylint.bat -i y -f parseable -r n C:\temp\sample_sonar_python\src\__init__.py'
10:35:50.888 INFO  Sensor org.sonar.plugins.python.PythonViolationsSensor@42b36022 done: 5677 ms
10:35:50.888 INFO  Sensor CpdSensor...
10:35:50.888 INFO  PmdEngine is used
10:35:51.019 INFO  Sensor CpdSensor done: 131 ms
10:35:51.020 INFO  Sensor ProfileSensor...
10:35:51.339 INFO  Sensor ProfileSensor done: 319 ms
10:35:51.339 INFO  Sensor ProfileEventsSensor...
10:35:51.368 INFO  Sensor ProfileEventsSensor done: 29 ms
10:35:51.368 INFO  Sensor VersionEventsSensor...
10:35:51.419 INFO  Sensor VersionEventsSensor done: 51 ms
10:35:51.724 INFO  Execute decorators...
10:35:51.724 DEBUG Decorators: ManualMeasureDecorator -> ManualViolationInjector -> SumDuplicationsDecorator -> UnitTestDecorator -> org.sonar.plugins.core.security.ApplyProjectRolesDecorator@4aa594e1 -> org.sonar.plugins.core.sensors.DirectoriesDecorator@12dfbabd -> org.sonar.plugins.core.sensors.FilesDecorator@1e5cd7f9 -> ViolationTrackingDecorator -> org.sonar.plugins.core.timemachine.TimeMachineConfigurationPersister@470ae2bf -> org.sonar.plugins.core.timemachine.NewCoverageFileAnalyzer@3c7a279c -> org.sonar.plugins.core.timemachine.NewItCoverageFileAnalyzer@77be91c8 -> org.sonar.plugins.core.timemachine.NewCoverageAggregator@551ee3 -> org.sonar.plugins.design.batch.ProjectDsmDecorator@1bac8e09 -> FileTangleIndexDecorator -> org.sonar.plugins.design.batch.SuspectLcom4DensityDecorator@2d6d03ba -> f(lines) -> f(generated_lines) -> f(ncloc) -> f(generated_ncloc) -> f(classes) -> f(packages) -> f(functions) -> f(accessors) -> f(paragraphs) -> f(statements) -> f(public_api) -> f(comment_lines) -> f(comment_blank_lines) -> f(public_undocumented_api) -> f(commented_out_code_lines) -> f(complexity) -> f(class_complexity_distribution) -> f(function_complexity_distribution) -> f(file_complexity_distribution) -> f(paragraph_complexity_distribution) -> f(lines_to_cover) -> f(uncovered_lines) -> f(conditions_to_cover) -> f(uncovered_conditions) -> f(it_lines_to_cover) -> f(it_uncovered_lines) -> f(it_conditions_to_cover) -> f(it_uncovered_conditions) -> f(rfc) -> f(rfc_distribution) -> f(lcom4) -> f(lcom4_distribution) -> f(package_cycles) -> f(package_tangles) -> f(package_feedback_edges) -> f(package_edges_weight) -> ViolationSeverityUpdater -> f(new_lines_to_cover) -> f(new_uncovered_lines) -> f(new_conditions_to_cover) -> f(new_uncovered_conditions) -> f(new_it_lines_to_cover) -> f(new_it_uncovered_lines) -> f(new_it_conditions_to_cover) -> f(new_it_uncovered_conditions) -> org.sonar.plugins.cpd.decorators.DuplicationDensityDecorator@879f5eb -> CommentDensityDecorator -> PackageTangleIndexDecorator -> f(class_complexity) -> f(function_complexity) -> f(file_complexity) -> f(paragraph_complexity) -> ViolationsDecorator -> org.sonar.plugins.core.sensors.LineCoverageDecorator@3c939d40 -> org.sonar.plugins.core.sensors.CoverageDecorator@7f38f3d1 -> org.sonar.plugins.core.sensors.BranchCoverageDecorator@740f5f97 -> org.sonar.plugins.core.sensors.ItLineCoverageDecorator@1d4cee08 -> org.sonar.plugins.core.sensors.ItCoverageDecorator@259f5e3f -> org.sonar.plugins.core.sensors.ItBranchCoverageDecorator@1e48d65 -> org.sonar.plugins.core.timemachine.ViolationPersisterDecorator@9f357d3 -> NewViolationsDecorator -> org.sonar.plugins.core.sensors.WeightedViolationsDecorator@67219b8c -> org.sonar.plugins.core.sensors.CloseReviewsDecorator@3cd16610 -> ViolationsDensityDecorator -> org.sonar.plugins.core.sensors.UpdateReviewsDecorator@305866c1 -> org.sonar.plugins.core.timemachine.TendencyDecorator@6326c98 -> VariationDecorator
10:35:51.730 DEBUG ooo Connection Opened
10:35:51.807 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:51.807 DEBUG ==> Parameters: 347(Integer), OPEN(String), true(Boolean)
10:35:51.824 DEBUG xxx Connection Closed
10:35:51.874 DEBUG ooo Connection Opened
10:35:51.877 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:51.877 DEBUG ==> Parameters: 348(Integer), OPEN(String), true(Boolean)
10:35:51.878 DEBUG xxx Connection Closed
10:35:51.911 DEBUG ooo Connection Opened
10:35:51.914 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:51.914 DEBUG ==> Parameters: 350(Integer), OPEN(String), true(Boolean)
10:35:51.917 DEBUG xxx Connection Closed
10:35:51.950 DEBUG ooo Connection Opened
10:35:51.954 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:51.954 DEBUG ==> Parameters: 351(Integer), OPEN(String), true(Boolean)
10:35:51.955 DEBUG xxx Connection Closed
10:35:51.987 DEBUG ooo Connection Opened
10:35:51.990 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:51.990 DEBUG ==> Parameters: 349(Integer), OPEN(String), true(Boolean)
10:35:51.991 DEBUG xxx Connection Closed
10:35:52.101 DEBUG ooo Connection Opened
10:35:52.105 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:52.105 DEBUG ==> Parameters: 353(Integer), OPEN(String), true(Boolean)
10:35:52.106 DEBUG xxx Connection Closed
10:35:52.138 DEBUG ooo Connection Opened
10:35:52.141 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:52.141 DEBUG ==> Parameters: 354(Integer), OPEN(String), true(Boolean)
10:35:52.142 DEBUG xxx Connection Closed
10:35:52.174 DEBUG ooo Connection Opened
10:35:52.178 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:52.178 DEBUG ==> Parameters: 355(Integer), OPEN(String), true(Boolean)
10:35:52.179 DEBUG xxx Connection Closed
10:35:52.214 DEBUG ooo Connection Opened
10:35:52.216 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:52.216 DEBUG ==> Parameters: 356(Integer), OPEN(String), true(Boolean)
10:35:52.217 DEBUG xxx Connection Closed
10:35:52.249 DEBUG ooo Connection Opened
10:35:52.251 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:52.251 DEBUG ==> Parameters: 352(Integer), OPEN(String), true(Boolean)
10:35:52.252 DEBUG xxx Connection Closed
10:35:52.327 DEBUG ooo Connection Opened
10:35:52.330 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:52.330 DEBUG ==> Parameters: 357(Integer), OPEN(String), true(Boolean)
10:35:52.331 DEBUG xxx Connection Closed
10:35:52.363 DEBUG ooo Connection Opened
10:35:52.366 DEBUG ==>  Executing: select id, created_at, updated_at, user_id, assignee_id, title,status,resolution,rule_failure_permanent_id,project_id, resource_id, resource_line, severity, rule_id, manual_violation from reviews WHERE resource_id = ? AND status = ? AND manual_violation = ? 
10:35:52.366 DEBUG ==> Parameters: 346(Integer), OPEN(String), true(Boolean)
10:35:52.367 DEBUG xxx Connection Closed
10:35:52.451 DEBUG - 0 reviews set to 'closed' on project #1126
10:35:52.539 DEBUG Decorator time:
    ManualMeasureDecorator: 14ms
    ManualViolationInjector: 144ms
    SumDuplicationsDecorator: 2ms
    UnitTestDecorator: 0ms
    org.sonar.plugins.core.security.ApplyProjectRolesDecorator@4aa594e1: 17ms
    org.sonar.plugins.core.sensors.DirectoriesDecorator@12dfbabd: 0ms
    org.sonar.plugins.core.sensors.FilesDecorator@1e5cd7f9: 0ms
    ViolationTrackingDecorator: 2ms
    org.sonar.plugins.core.timemachine.TimeMachineConfigurationPersister@470ae2bf: 18ms
    org.sonar.plugins.core.timemachine.NewCoverageFileAnalyzer@3c7a279c: 0ms
    org.sonar.plugins.core.timemachine.NewItCoverageFileAnalyzer@77be91c8: 0ms
    org.sonar.plugins.core.timemachine.NewCoverageAggregator@551ee3: 1ms
    org.sonar.plugins.design.batch.ProjectDsmDecorator@1bac8e09: 0ms
    FileTangleIndexDecorator: 0ms
    org.sonar.plugins.design.batch.SuspectLcom4DensityDecorator@2d6d03ba: 1ms
    f(lines): 0ms
    f(generated_lines): 0ms
    f(ncloc): 0ms
    f(generated_ncloc): 0ms
    f(classes): 0ms
    f(packages): 0ms
    f(functions): 0ms
    f(accessors): 0ms
    f(paragraphs): 0ms
    f(statements): 1ms
    f(public_api): 1ms
    f(comment_lines): 1ms
    f(comment_blank_lines): 0ms
    f(public_undocumented_api): 0ms
    f(commented_out_code_lines): 0ms
    f(complexity): 0ms
    f(class_complexity_distribution): 1ms
    f(function_complexity_distribution): 2ms
    f(file_complexity_distribution): 1ms
    f(paragraph_complexity_distribution): 0ms
    f(lines_to_cover): 0ms
    f(uncovered_lines): 0ms
    f(conditions_to_cover): 0ms
    f(uncovered_conditions): 0ms
    f(it_lines_to_cover): 2ms
    f(it_uncovered_lines): 0ms
    f(it_conditions_to_cover): 1ms
    f(it_uncovered_conditions): 1ms
    f(rfc): 0ms
    f(rfc_distribution): 0ms
    f(lcom4): 0ms
    f(lcom4_distribution): 0ms
    f(package_cycles): 0ms
    f(package_tangles): 0ms
    f(package_feedback_edges): 0ms
    f(package_edges_weight): 0ms
    ViolationSeverityUpdater: 0ms
    f(new_lines_to_cover): 0ms
    f(new_uncovered_lines): 0ms
    f(new_conditions_to_cover): 0ms
    f(new_uncovered_conditions): 0ms
    f(new_it_lines_to_cover): 0ms
    f(new_it_uncovered_lines): 0ms
    f(new_it_conditions_to_cover): 0ms
    f(new_it_uncovered_conditions): 1ms
    org.sonar.plugins.cpd.decorators.DuplicationDensityDecorator@879f5eb: 2ms
    CommentDensityDecorator: 0ms
    PackageTangleIndexDecorator: 0ms
    f(class_complexity): 0ms
    f(function_complexity): 2ms
    f(file_complexity): 0ms
    f(paragraph_complexity): 0ms
    ViolationsDecorator: 8ms
    org.sonar.plugins.core.sensors.LineCoverageDecorator@3c939d40: 1ms
    org.sonar.plugins.core.sensors.CoverageDecorator@7f38f3d1: 0ms
    org.sonar.plugins.core.sensors.BranchCoverageDecorator@740f5f97: 0ms
    org.sonar.plugins.core.sensors.ItLineCoverageDecorator@1d4cee08: 1ms
    org.sonar.plugins.core.sensors.ItCoverageDecorator@259f5e3f: 1ms
    org.sonar.plugins.core.sensors.ItBranchCoverageDecorator@1e48d65: 0ms
    org.sonar.plugins.core.timemachine.ViolationPersisterDecorator@9f357d3: 3ms
    NewViolationsDecorator: 4ms
    org.sonar.plugins.core.sensors.WeightedViolationsDecorator@67219b8c: 6ms
    org.sonar.plugins.core.sensors.CloseReviewsDecorator@3cd16610: 350ms
    ViolationsDensityDecorator: 2ms
    org.sonar.plugins.core.sensors.UpdateReviewsDecorator@305866c1: 17ms
    org.sonar.plugins.core.timemachine.TendencyDecorator@6326c98: 55ms
    VariationDecorator: 142ms

10:35:52.539 DEBUG 292 measures to dump
10:35:52.960 INFO  ANALYSIS SUCCESSFUL, you can browse http://localhost:9000
10:35:52.961 DEBUG Post-jobs : org.sonar.plugins.core.batch.IndexProjectPostJob@266286e3 -> org.sonar.plugins.dbcleaner.runner.PurgeRunner@e85b4c5
10:35:52.961 INFO  Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob
10:35:52.961 DEBUG ooo Connection Opened
10:35:52.973 DEBUG ==>  Executing: select p.name as "name", p.id as "id", p.scope as "scope", p.qualifier as "qualifier", s.root_project_id as "rootId" from projects p, snapshots s WHERE p.enabled=? and p.copy_resource_id is null and p.id=s.project_id and s.islast=? and p.scope in (?) and p.qualifier in (? ,? ,? ) and s.root_project_id=? and not exists(select * from resource_index ri where ri.resource_id=p.id) 
10:35:52.973 DEBUG ==> Parameters: true(Boolean), true(Boolean), FIL(String), FIL(String), UTS(String), CLA(String), 346(Integer)
10:35:52.990 DEBUG ==>  Executing: select p.name as "name", p.id as "id", p.scope as "scope", p.qualifier as "qualifier", s.root_project_id as "rootId" from projects p, snapshots s WHERE p.enabled=? and p.copy_resource_id is null and p.id=s.project_id and s.islast=? and p.scope in (?) and p.qualifier in (? ,? ,? ,? ) and s.root_project_id=? 
10:35:52.991 DEBUG ==> Parameters: true(Boolean), true(Boolean), PRJ(String), TRK(String), BRC(String), VW(String), SVW(String), 346(Integer)
10:35:52.993 DEBUG <==    Columns: name, id, scope, qualifier, rootId
10:35:52.993 DEBUG <==        Row: sample_sonar_python, 346, PRJ, TRK, 346
10:35:53.015 DEBUG xxx Connection Closed
10:35:53.015 INFO  Executing post-job class org.sonar.plugins.dbcleaner.runner.PurgeRunner
10:35:53.015 INFO  Database optimization...
10:35:53.030 DEBUG Snapshots to purge: org.sonar.plugins.dbcleaner.runner.DefaultPurgeContext@326d234c[currentSid=1126,previousSid=1114]
10:35:53.030 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeOrphanResources...
10:35:53.045 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeOrphanResources done: 15 ms
10:35:53.045 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeEntities...
10:35:53.047 INFO  Deleting files data before Mon Mar 12 22:35:53 CET 2012
10:35:53.058 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeEntities done: 13 ms
10:35:53.058 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeRuleMeasures...
10:35:53.070 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeRuleMeasures done: 12 ms
10:35:53.070 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeUnprocessed...
10:35:53.070 INFO  Deleting unprocessed data before Mon Mar 12 22:35:53 CET 2012
10:35:53.081 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeUnprocessed done: 11 ms
10:35:53.081 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeDeletedResources...
10:35:53.092 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeDeletedResources done: 11 ms
10:35:53.092 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeDeprecatedLast...
10:35:53.106 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeDeprecatedLast done: 13 ms
10:35:53.106 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeDisabledResources...
10:35:53.125 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeDisabledResources done: 19 ms
10:35:53.125 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeResourceRoles...
10:35:53.147 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeResourceRoles done: 22 ms
10:35:53.147 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeEventOrphans...
10:35:53.158 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeEventOrphans done: 11 ms
10:35:53.158 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgePropertyOrphans...
10:35:53.178 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgePropertyOrphans done: 20 ms
10:35:53.178 INFO  Purge org.sonar.plugins.dbcleaner.period.PeriodPurge...
10:35:53.180 DEBUG Keep only one snapshot by week after : 13-2-12 10:35
10:35:53.180 DEBUG Keep only one snapshot by month after : 13-3-11 10:35
10:35:53.180 DEBUG Delete all snapshots after : 13-3-07 10:35
10:35:53.201 DEBUG The project 'sample_sonar_python' has 3 snapshots.
10:35:53.201 INFO  There are no snapshots to purge
10:35:53.202 INFO  Purge org.sonar.plugins.dbcleaner.period.PeriodPurge done: 24 ms
10:35:53.202 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeDependencies...
10:35:53.212 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeDependencies done: 10 ms
10:35:53.213 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeOrphanReviews...
10:35:53.218 DEBUG - 0 reviews deleted.
10:35:53.225 DEBUG - 0 review comments deleted.
10:35:53.225 INFO  Purge org.sonar.plugins.dbcleaner.purges.PurgeOrphanReviews done: 12 ms
10:35:53.226 INFO  Database optimization done: 211 ms
10:35:53.230 DEBUG To prevent a memory leak, the JDBC Driver [org.apache.derby.jdbc.ClientDriver] has been forcibly deregistered
10:35:53.484 DEBUG Delete temporary directory: C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch32056499325873655681277362454608947
10:35:53.508 DEBUG Delete temporary directory: C:\Users\SANDER~1.CRO\AppData\Local\Temp\sonar-batch89436413609672195831277334881595411
Total time: 15.554s
Final Memory: 9M/180M

@sandermak
Copy link
Author

And FYI, this is what I see in Sonar as result:

Screenshot

I see the same behavior with my own Python project, which does not have any advanced parameters set.

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