Repository navigation
Expand file tree
/
Copy path.headerrc.yml
More file actions
74 lines (59 loc) · 2.15 KB
/
Copy path.headerrc.yml
File metadata and controls
74 lines (59 loc) · 2.15 KB
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
name: This file is used to set configuration for the add-header action
# Choose what to do with the header.
# remove = Remove an existing header from matching files.
# add = Add the header to any matching files.
header_action: add # Default: add
# Decide the method for choosing which files to add headers to
# opt-out = all files will be selected unless the file path matches untracked_files
# opt-in = no files will be selected unless the file path matches anything in tracked_files
file_mode: opt-out
tracked_files:
- ^README.md$
# Remove items from the default values by using a !. Like "!^.git/"
untracked_files:
- ^\.git/ # Very important to ignore
- ^.github/
- ^.devcontainer/
- .pytest_cache
- ^headerrc-default.yml$
- \.headerrc.yml$
- docker-compose.yml
- action.yml
- __init__.py
- requirements.txt
- app/
- ^Dockerfile$
- test/
- htmlcov/
- .coverage
- coverage.xml
# - pytest.ini
# Automatically add everything in the .gitignore file into the untracked_files section
# This can save lots of time because most of these files can be ignored.
untrack_gitignore: false
negate_characters: "!"
use_default_file_settings: true
header: |
SUPER SECRET CONFIDENTIAL
[2023] - [Infinity and Beyond] ACME CO
All Rights Reserved.
NOTICE: This is super secret info that
must be protected at all costs.
# Group mulitple items by the comment value
file_associations_by_comment: #Format = Comment: List[Regex for file match]
"#":
- "^.gitignore$"
- "!^.gitignore$" # <--- Negate items like this (it must match exactly the default value)
- ".gitignore$" # <-- Because it allows reassignment
"//":
- ".js$"
- ".ts$"
# The item extension and the assocated comment. Overrides file_associations_by_comment
# Remember the escape charter for yml \
# Here, you can only negate items by their key
file_associations_by_extension: # Format = Regex for file match: List[prefix, suffix]|str.
".*\\.ya?ml$": "#"
".md": ["<!--", "-->"]
# For files that have 'important' first lines, use this setting to move the header below that line
skip_lines_that_have: # Format = Regex for file match: List|str
".sh$": ["#!"]