Skip to content

MPParsley/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/

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

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

Copyright

This engine is developed by Code Climate using SonarLint, it is not endorsed by SonarSoruce.

See LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 69.0%
  • Shell 17.8%
  • PHP 7.8%
  • Makefile 5.4%