-
Notifications
You must be signed in to change notification settings - Fork 1
/
update_markings.yml
127 lines (115 loc) · 3.25 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
# Data used by update_markings.py
# <legal>
# 'Redemption' Automated Code Repair Tool
#
# Copyright 2023, 2024 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.
#
# Licensed under a MIT (SEI)-style license, please see License.txt or
# contact permission@sei.cmu.edu 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.
#
# This Software includes and/or makes use of Third-Party Software each
# subject to its own license.
#
# DM23-2165
# </legal>
# Any file with one of these extensions need no <legal> tags
Exempt_Extensions: [
# Binary
jpg,
png,
gif,
pdf,
docx,
xlsx,
pptx,
pyc,
zip,
class,
so,
o,
elf,
# Extensions with no commenting mechanism
json,
csv,
tsv,
ans, # usually these are a diff
crt
]
# Any file that matches one of these regexps needs no <legal> tags.
Exempt_Files: [
".git.*",
"ABOUT",
"License.*",
"code/acr/llvm/CMakeLists.txt",
"code/acr/llvm/CMakeCache.txt",
"code/acr/SortedCollection.py",
"code/acr/test/.*.c",
"code/acr/test/.*.h",
"code/acr/test/.*.ll",
"code/clang/.*.h",
"code/clang/.*.cpp",
"data/cppcheck/.*/cppcheck.xml",
"data/clang-tidy/.*/clang-tidy.txt",
"data/rosecheckers/.*/rosecheckers.txt",
"data/test/.*.test.yml",
"data/test/sample.alerts.txt",
"data/test/toy/.*.c",
"data/test/toy/.*.h",
"data/test/llm/[-0-9a-f]*.*",
"data/zeek5/.*.txt",
"doc/examples/.*/good/.*",
"doc/examples/.*/.*.c",
"doc/examples/codebase/dos2unix.*/.*",
]
# Every extension has a regex for how to comment <legal> tags.
Extension_Map:
# These extensions need # prefixed, as in Bash
sh: '# \1'
py: '# \1'
rb: '# \1'
mk: '# \1'
properties: '# \1'
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'
# These need idiosyncratic comments
erb: '<!-- \1 -->'
sql: '-- \1'
ll: '; \1'
html: '<p>\1'
# REM-218 removed trailing whitespace
md: '\1'
txt: '\1'
# Any file here needs <legal> tags in an idiosyncratic format
File_Map:
.gitignore: '# \1'
Dockerfile: '# \1'
Dockerfile.distrib: '# \1'
Dockerfile.prereq: '# \1'
Dockerfile.test: '# \1'
Dockerfile.rosecheckers: '# \1'
Makefile: '# \1'
Vagrantfile: '# \1'