Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Maintainability and reliability checks for Java

License

NotificationsYou must be signed in to change notification settings

codeclimate/codeclimate-sonar-java

Repository files navigation

MaintainabilityTest CoverageCircleCI

codeclimate-sonar-java is a Code Climate engine that wrapsSonarlint 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-java:enabled:trueconfig:sonar.java.source:7tests_patterns:        -src/test/**exclude_paths:  -build/
  1. Runcodeclimate 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.

engines:  sonar-java:    enabled: true    config:      sonar.java.source: 7

Tests

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

engines:  sonar-java:    enabled: true    config:      tests_patterns:        - src/test/**        - app/src/test/**

Severity

Ignore issues with severity below the minimum:

engines:  sonar-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 usingSonarLint, it is not endorsed by SonarSoruce.

SeeLICENSE

About

Maintainability and reliability checks for Java

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp