File: style-check_build

package info (click to toggle)
squeekboard 1.43.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,284 kB
  • sloc: ansic: 2,730; xml: 1,247; python: 296; sh: 48; makefile: 10
file content (15 lines) | stat: -rwxr-xr-x 426 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# Enforces style check for the C parts of the project.

if [ -z "$1" ]; then
    echo "Please pass build directory to check."
    exit 1
fi

cd "$1"

clang-tidy --checks=-clang-diagnostic-missing-braces,readability-braces-around-statements, \
           --warnings-as-errors=readability-braces-around-statements \
           -extra-arg=-Wno-unknown-warning-option \
           ../src/*.c ../eek/*.c ../eekboard/*.c