-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1008 Bytes
/
lint.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
---
name: Lint Project
on:
merge_group:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
permissions: read-all
jobs:
super-lint:
# Name the Job
name: Lint code base
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/[email protected]
with:
# Get all history to be able to identify changed files
fetch-depth: 0
# Runs the Super-Linter action
- name: Run Super-Linter
uses: super-linter/super-linter/[email protected]
env:
DEFAULT_BRANCH: main
# only log identified linting issues
LOG_LEVEL: NOTICE
# Only lint new and modified files
VALIDATE_ALL_CODEBASE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Disable cpplint as it conflicts with clang-format
VALIDATE_CPP: false