forked from Aszusz/FileFilter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py.mve
31 lines (29 loc) · 1.13 KB
/
config.py.mve
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
from pathlib import Path
CONFIG = {
"directory_separator": "/",
"path_require_any": [
r"\.as$",
r"\.mxml$",
r"\.java$",
r"\.js$",
r"\.ts$",
],
"path_deny_all": [
r"/bin/doc/",
],
"content_require_any": [
],
"content_deny_all": [
r"http://www\.mongodb\.com/licensing/server-side-public-license",
r"^/////[\s\S]+(?:http://www\.apache\.org/licenses/LICENSE-2\.0)[\s\S]+/////$",
# r"Spark|spark|SPARK",
r"author|Author|AUTHOR",
r"copyright|Copyright|COPYRIGHT",
],
"remove_pattern": r"(?<=\<\?xml version=\"1.0\"\?>)\n",
"new_license": Path("./in/sspl-xml.txt").read_text()
}
# r"^/////[\s\S]+(?:Prominic)[\s\S]+(?:http://www\.apache\.org/licenses/LICENSE-2\.0)[\s\S]+/////$" # Prominic Apache License
# r"^/////[\s\S]+(?:http://www\.apache\.org/licenses/LICENSE-2\.0)[\s\S]+/////$", # Any Apache License with //
# r"^<!--\s+Licensed[\s\S]+(?:http://www\.apache\.org/licenses/LICENSE-2\.0)[\s\S]+License\.\s+-->$", # Any Apache License with <!--
# r"http://www\.mongodb\.com/licensing/server-side-public-license", # SSPL License