Skip to content

Latest commit

 

History

History
 
 

linting

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Linting check

This guide is for singa devoloper who should sanitize the code before merging into the main branch.

linting tools

Install cpplint for C++: pip install cpplint

Install pylint for Python: pip install pylint

Linting a single file

For C++ code: cpplint path/to/file

For Python Code: pylint path/to/file

Linting the whole project

usage: bash tool/linting/py.sh usage: bash tool/linting/cpp.sh

Configuration

Currently the configuration are customized to respect google style. Update of configuration could be done at .pylintrc and CPPLINT.cfg