File: lint.bat

package info (click to toggle)
libvpl 1%3A2.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,584 kB
  • sloc: cpp: 92,593; ansic: 6,143; python: 4,312; sh: 323; makefile: 7
file content (29 lines) | stat: -rw-r--r-- 705 bytes parent folder | download | duplicates (2)
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
@REM ------------------------------------------------------------------------------
@REM Copyright (C) Intel Corporation
@REM 
@REM SPDX-License-Identifier: MIT
@REM ------------------------------------------------------------------------------
@REM Check code for issues.

@ECHO off
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION 

@REM Set project folder
FOR /D %%i IN ("%~dp0\..") DO (
	SET PROJ_DIR=%%~fi
)

@REM Set script folder
FOR /D %%i IN ("%~dp0") DO (
	SET SCRIPT_DIR=%%~fi
)

PUSHD %PROJ_DIR%
    echo Check commit-msg
    pre-commit run --hook-stage manual gitlint-ci || EXIT /b 1

    echo Check commit
	pre-commit run --all-files || EXIT /b 1
POPD

ENDLOCAL