forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
50 lines (49 loc) · 2.06 KB
/
.pre-commit-config.yaml
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
50
# This file is part of eyeo Chromium SDK,
# Copyright (C) 2006-present eyeo GmbH
# eyeo Chromium SDK is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
# eyeo Chromium SDK is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with eyeo Chromium SDK. If not, see <http://www.gnu.org/licenses/>.
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# Motivation to use hooks and internal agreements are discussed here:
# https://confluence.eyeo.com/display/DP/Using+pre-commit+to+make+better+commits
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.31.0
hooks:
- id: yamllint
args: [-d relaxed]
- repo: https://github.com/bjd2385/pre-commit-gitlabci-lint
rev: v1.3.0
hooks:
- id: gitlabci-lint
files: .gitlab-ci.yml
# argument: Gitlab Project ID
args: ['-p','26591639']
- repo: git@gitlab.com:eyeo/distpartners/chromium-precommit-hooks.git
rev: c630073b3d10e5345a2e4f4d6e83dbdf21a6e9cb
hooks:
- id: no-forbidden-words-in-branch-name
- id: no-forbidden-words-in-diff
- id: eyeo-license-headers-check
- id: no-cc-includes
- repo: "local"
hooks:
- id: clang-format
name: clang-format
description: Print formatting errors found with ClangFormat.
entry: "third_party/depot_tools/clang-format"
language: system
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|mm|proto|textproto|vert)$
args: ['-fallback-style=none', '-i', '--dry-run', '--Werror']