AUV-IITK/linter

Name: linter

Owner: AUV-IITK

Description: Generic (C++, python) linter and auto formatter package

Created: 2018-05-08 05:20:50.0

Updated: 2018-05-08 05:20:52.0

Pushed: 2018-05-03 16:32:48.0

Homepage:

Size: 169

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

linter

This repo contains a (C++, python (experimental)) linter and auto formatter package that can be included into your repository as a submodule. It provides the following git hooks:

Dependencies
Installation
YOUR_REPO
submodule add git@github.com:ethz-asl/linter.git
nter/init-git-hooks.py

You can also add the linter submodule in a subfolder of your repo, e.g.:

r $YOUR_REPO/dev_tools
submodule add git@github.com:ethz-asl/linter.git dev_tools/linter
v_tools/linter/init-git-hooks.py

Define the project-specific C++ format by adding a file .clang-format to your projects root folder. Example:


uage: Cpp
dOnStyle: Google
vePointerAlignment: false
terAlignment: Left
mnLimit: 80
wShortFunctionsOnASingleLine: Empty
wShortIfStatementsOnASingleLine: false
wShortLoopsOnASingleLine: false
nAfterOpenBracket: AlwaysBreak
udeCategories:
Regex:           '^<.*'
Priority:        1
Regex:           '.*'
Priority:        2

ASCII-Art Sources

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.