Git Product home page Git Product logo

pronto-clang_tidy's Introduction

Pronto runner for clang-tidy

Code Climate Build Status Gem Version

Pronto runner for clang-tidy, a clang-based C++ "linter" tool. What is Pronto?

This runner can be used after running clang-tidy on a codebase to submit the reported offences to web-based git repo managers (e.g. github, gitlab, ...) as comments using Pronto.

Installation:

First, the following prerequisites need to be installed:

  1. clang-tidy
  2. Ruby
  3. Pronto, this can be done after installing Ruby using:
    gem install pronto
    

After that, pronto-clang_tidy can be installed using:

gem install pronto-clang_tidy

Pronto will look for clang-tidy output file and submit its contents as soon as this runner is installed.

Configuration:

After configuring and running clang-tidy on your codebase, redirect and save its standard output to a file (e.g. clang-tidy.out).

To do that, you can use my modified version of run-clang-tidy.py to automatically save clang-tidy output into clang-tidy.out:

python run-clang-tidy.py -checks=* -p build

where build is your build directory (that is, the directory that contains the generated file compile_commands.json).

The name of the clang-tidy output file can be configured by setting the environment variable PRONTO_CLANG_TIDY_OUTFILE prior to running pronto. If it is not set, the runner will assume the file name is clang-tidy.out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.