jonasfranz / resharper-to-codeclimate

dotnet tool to convert resharper inspectcode reports to codeclimate format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

resharper-to-codeclimate

converts an xml file containing resharper inspectcode results to a json file that follows the code climate spec.

note, currently only converts to the subset of the code climate spec required for gitlab-ci.

usage

dotnet tool install -g resharper-to-codeclimate
dotnet resharper-to-codeclimate results.xml results.json

example .gitlab-ci.yml

variables:
  DOTNET_PACKAGES: '$CI_PROJECT_DIR\.nuget\packages'
  DOTNET_CLI_HOME: '$CI_PROJECT_DIR\.dotnet'
  DOTNET_NOLOGO: 'true'

codequality:
  stage: codequality
  script:
    - dotnet tools restore
    - dotnet jb inspectcode Project.sln -o=results.xml
    - dotnet resharper-to-codeclimate results.xml results.json
  cache:
    key:
      files: 
        - .config/dotnet-tools.json
    paths:
      - .nuget/
  artifacts:
    when: always
    reports:
      codequality:
        - results.json

About

dotnet tool to convert resharper inspectcode reports to codeclimate format

License:MIT License


Languages

Language:C# 100.0%