codeclimate/codeclimate-sonar-java

Name: codeclimate-sonar-java

Owner: Code Climate

Description: Maintainability and reliability checks for Java

Created: 2017-02-27 21:52:48.0

Updated: 2018-04-23 15:03:32.0

Pushed: 2018-04-20 17:18:23.0

Homepage:

Size: 426

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Code Climate Sonar-Java Engine

Maintainability Test Coverage CircleCI

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

Installation
 image
Tests
 test
Usage
  1. If you haven't already, install the Code Climate CLI.
  2. Configure a .codeclimate.yml file in your repo.
    nes:
    r-java:
    led: true
    ig:
    nar.java.source: 7
    sts_patterns:
    - src/test/**
    ude_paths:
    
  3. build/
  4. Run codeclimate analyze.
Custom configurations
Java source version

It is possible to specifcy a Java version the code should be compliant to, it helps Sonar to use the proper rules.

nes:
nar-java:
enabled: true
config:
  sonar.java.source: 7
Tests

Specifying where the test classes are helps Sonar to use specific rules for those files.

nes:
nar-java:
enabled: true
config:
  tests_patterns:
    - src/test/**
    - app/src/test/**
Severity

Ignore issues with severity below the minimum:

nes:
nar-java:
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

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

See LICENSE


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.