-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.28 KB
/
cpplint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Cpplint
on:
workflow_dispatch:
schedule:
- cron: "0 5 * * 1"
push:
tags: ["v*"]
branches: ["*"]
paths: ["**/*.h", "**/*.cpp"]
pull_request:
paths: ["**/*.h", "**/*.cpp"]
jobs:
cpplint:
name: cpplint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
key: ${{ runner.os }}-cpplint
path: ~/.cache/pip
- name: Pyhton
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: cpplint
run: |
python -m pip install --upgrade pip
pip install --upgrade cpplint
cpplint \
--repository=. \
--recursive \
--filter=-whitespace/line_length,-whitespace/braces,-whitespace/comments,-runtime/indentation_namespace,-whitespace/indent,-readability/braces,-whitespace/newline,-readability/todo,-build/c++11,-runtime/references \
--exclude=lib/DimmableLight \
--exclude=lib/ESPDASHPro \
--exclude=lib/MycilaDimmer/doc \
--exclude=lib/WebSerialPro \
lib \
include \
src