Skip to content

kalpit-addweb/codeclimate-sonar-php

 
 

Repository files navigation

Code Climate Sonar-PHP Engine

CircleCI Maintainability Test Coverage

codeclimate-sonar-php is a Code Climate engine that wraps Sonarlint in standalone mode.

Installation

make image

Tests

make test

Usage

  1. If you haven't already, install the Code Climate CLI.
  2. Configure a .codeclimate.yml file in your repo.
engines:
  sonar-php:
    enabled: true
    config:
      tests_patterns:
        - src/test/**
exclude_paths:
  - build/
  1. Run codeclimate analyze.

Custom configurations

Severity

Ignore issues with severity below the minimum:

engines:
  sonar-php:
    enabled: true
    config:
      minimum_severity: critical  # default: major
                                  # valid values are: info, minor, major, critical, blocker

Sonar Documentation

http://www.sonarlint.org/commandline http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner

Issue Tracker: http://jira.sonarsource.com/browse/SLCLI

Copyright

See LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 69.4%
  • Shell 17.3%
  • PHP 7.9%
  • Makefile 5.4%