Skip to content

Commit 266ba86

Browse files
committed
adapt config files
1 parent e3e856f commit 266ba86

3 files changed

Lines changed: 35 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ repos:
1616
hooks:
1717
- id: check-yaml
1818
- id: end-of-file-fixer
19-
exclude: requirements_lock.txt
19+
exclude: requirements_lock.txt|\.svg$
2020
- id: trailing-whitespace
2121
- id: check-shebang-scripts-are-executable
2222
- id: check-executables-have-shebangs
2323
- id: check-added-large-files
2424
args: [--maxkb=100, --enforce-all] # increase or add git lfs if too strict
25-
exclude: org.eclipse.dash.licenses-1.1.0.jar|blanket_index.html
25+
exclude: org.eclipse.dash.licenses-1.1.0.jar|blanket_index.html$
2626
- repo: https://github.com/google/yamlfmt
2727
rev: 21ca5323a9c87ee37a434e0ca908efc0a89daa07 # v0.21.0
2828
hooks:
@@ -31,11 +31,13 @@ repos:
3131
rev: a1bb792acda6fd0724936b4ebbdbc8eceb9c0459 # v6.2.0
3232
hooks:
3333
- id: reuse-lint-file
34+
exclude: \.svg$
3435
- repo: local
3536
hooks:
3637
- id: copyright
3738
name: Check and fix copyright headers with cr_checker
3839
entry: cr_checker/tool/pre-commit_wrapper --extensions h hpp c cpp rs rst py sh bzl ini yml yaml BUILD bazel --fix
40+
exclude: \.svg$
3941
# this would be the better language implementation, but struggle with python tooling
4042
# language: python
4143
language: script

BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ copyright_checker(
2828
"python_basics",
2929
"starpls",
3030
"tools",
31-
"plantuml",
3231
"lobster_bazel",
32+
"bazel",
33+
"manual_analysis",
34+
"plantuml",
35+
"validation",
3336

3437
# Add other directories/files you want to check
3538
],

cr_checker/resources/templates.ini

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
13-
[cpp,c,h,hpp]
13+
[cpp,c,h,hpp,trlc,rsl]
1414
/********************************************************************************
1515
* Copyright (c) {year} {author}
1616
*
@@ -63,3 +63,29 @@
6363
//
6464
// SPDX-License-Identifier: Apache-2.0
6565
// *******************************************************************************
66+
[puml]
67+
' *******************************************************************************
68+
' Copyright (c) {year} Contributors to the Eclipse Foundation
69+
'
70+
' See the NOTICE file(s) distributed with this work for additional
71+
' information regarding copyright ownership.
72+
'
73+
' This program and the accompanying materials are made available under the
74+
' terms of the Apache License Version 2.0 which is available at
75+
' https://www.apache.org/licenses/LICENSE-2.0
76+
'
77+
' SPDX-License-Identifier: Apache-2.0
78+
' *******************************************************************************
79+
[md]
80+
<!-- ----------------------------------------------------------------------------
81+
Copyright (c) {year} {author}
82+
83+
See the NOTICE file(s) distributed with this work for additional
84+
information regarding copyright ownership.
85+
86+
This program and the accompanying materials are made available under the
87+
terms of the Apache License Version 2.0 which is available at
88+
https://www.apache.org/licenses/LICENSE-2.0
89+
90+
SPDX-License-Identifier: Apache-2.0
91+
----------------------------------------------------------------------------- -->

0 commit comments

Comments
 (0)