1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 21:07:35 +00:00

Meta: Update lint-{clang-format,shell-scripts}.sh to take a list of files

This should speed up pre-commit a bit as only files that are staged will
be processed, and clang-format and shellcheck are only invoked once, not
for every file. When no arguments are given (e.g. on CI), it still uses
'git ls-files'.
This commit is contained in:
Linus Groh 2020-12-27 15:34:06 +01:00 committed by Andreas Kling
parent a56b3cbf7c
commit 51bcfb5a44
4 changed files with 56 additions and 43 deletions

View file

@ -5,4 +5,3 @@ repos:
name: Running Meta/lint-ci.sh to ensure changes will pass linting on CI
entry: bash Meta/lint-ci.sh
language: system
pass_filenames: false