add lint workflow #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lint | |
on: | |
- push | |
- pull_request | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- run: pip3 install cpplint | |
- name: Run cpplint | |
run: > | |
cpplint | |
--linelength=120 | |
--filter=-build/c++11,-build/header_guard,-legal/copyright,-build/include_subdir | |
--exclude module/src/jni/include/rapidjson | |
--exclude module/src/jni/xdl | |
--exclude module/src/jni/zygisk.h | |
--recursive . |