tree: c4c064c6797b2feea9da4e5854a1d3ed6792e0d2 [path history] [tgz]
  1. cpp.sh
  2. py.sh
  3. README.md
tool/linting/README.md

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