-
Notifications
You must be signed in to change notification settings - Fork 2
/
update-markings.yml
135 lines (116 loc) · 4.45 KB
/
update-markings.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# <legal>
# CERT Rosecheckers
# Copyright 2022 Carnegie Mellon University.
# NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN 'AS-IS' BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.
# Released under a BSD (SEI)-style license, please see license.txt or contact [email protected] for full terms.
# [DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.
# CERT(R) is registered in the U.S. Patent and Trademark Office by Carnegie Mellon University.
# This Software includes and/or makes use of Additional Software Dependencies, each subject to its own license.
# DM21-0505
# </legal>
# Main configuration file for update-markings.py script
# The recommended order of properties for file matching is:
# ExcludeExtensions, ExcludeFiles, FileMap, ExtensionMap
Name: "Rosecheckers"
Version: "2022"
Manifest: "./manifest.txt"
Markings: |-
CERT Rosecheckers
Copyright 2022 Carnegie Mellon University.
NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN 'AS-IS' BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.
Released under a BSD (SEI)-style license, please see license.txt or contact [email protected] for full terms.
[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.
CERT(R) is registered in the U.S. Patent and Trademark Office by Carnegie Mellon University.
This Software includes and/or makes use of Additional Software Dependencies, each subject to its own license.
DM21-0505
# This information is used for defining how to automate updating version strings
VersionMagicString: "{{BASP_VERSION}}"
VersionReplaceFiles: [
"./license.txt",
]
# Any file with one of these extensions does not need legal tags
ExcludeExtensions: [
# Binary
jpg,
png,
gif,
pdf,
docx,
xlsx,
pptx,
pyc,
zip,
so,
o,
elf,
class,
jar,
# Extensions with no commenting mechanism
json,
csv,
tsv,
ans, # usually these are a diff
# misc extensions
tag, TAG,
mf, MF,
lock,
swp,
bin,
probe,
]
# Any file that matches one of these globs does not need legal tags
# note: https://docs.python.org/3.13/library/pathlib.html#pathlib.PurePath.match
# when this was written for python 3.12, recursive wildcard ("**") is treated like the non-recursive wildcard ("*")
ExcludeFiles: [
".DS_Store",
"License.txt",
"manifest.txt",
".git",
".ccls-cache",
".project",
".cproject",
".gdbinit",
"Doxyfile",
]
# Any file here needs legal tags in an idiosyncratic format
# This matches exact filenames not as a glob expression
FileMap:
.gitignore: '# \1'
Dockerfile: '# \1'
Makefile: '# \1'
gcc_as_rosecheckers: '# \1'
g++_as_rosecheckers: '# \1'
README: '\1'
.gitkeep: None
# Every extension has a regex for how to comment legal tags.
ExtensionMap:
# These extensions need # prefixed, as in Bash
sh: '# \1'
py: '# \1'
rb: '# \1'
mk: '# \1'
properties: '# \1'
template: '# \1' # Gradle properties template file
yml: '# \1'
yaml: '# \1'
# These extensions need // prefixed, as in Java
java: '// \1'
c: '// \1'
cpp: '// \1'
cxx: '// \1'
h: '// \1'
hxx: '// \1'
hpp: '// \1'
C: '// \1'
H: '// \1'
js: '// \1'
kts: '// \1'
gradle: '// \1'
# These need idiosyncratic comments
erb: '<!-- \1 -->'
xml: '<!-- \1 -->'
sql: '-- \1'
ll: '; \1'
md: '\1 '
html: '<p>\1<p>'
txt: '\1'