Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 767 Bytes

linter_install.md

File metadata and controls

36 lines (28 loc) · 767 Bytes

Linter Installation

Linter Dependencies

  • pip install requests pyline yapf

  • clang-format: Compatible with clang-format-3.8 - 6.0

    • Ubuntu:
    sudo apt install clang-format-${VERSION}
    • macOS:
    brew install clang-format
    ln -s /usr/local/share/clang/clang-format-diff.py /usr/local/bin/clang-format-diff

Install Linter

cd SparkVIO
git submodule update --init
echo "source $(realpath ./dev_tools/linter/setup_linter.sh)" >> ~/.bashrc
# Or the matching file for your shell
bash

Finally, initialize linter:

cd SparkVIO
init_linter_git_hooks

For more information about the linter, check here.

Go back to Readme.