This repository has been archived by the owner on Aug 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codetag.yaml.dist
74 lines (65 loc) · 2.62 KB
/
codetag.yaml.dist
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
# codetag tool configuration file
# Parsed by: github.com/kylelemons/go-gypsy/yaml
# Paths to scan, "~" will be expanded to $HOME or pw_dir
paths:
- ~/hatch/codetag
- ~/hatch/go
- ~/hatch/fgtk
# List of filters for paths to crawl and files to tag
filter:
# Go regexp patterns to match relative (to source.path, starting with "/") paths to tag.
# Patterns are matched against each path in order they're listed here.
# Each pattern must start with "+" or "-", "+" meaning that matched path will
# be tagged/traversed and "-" for the opposite.
# Leaf directories are matched with the trailing slash
# (as with rsync) to be distinguishable from files with the same name.
# If path doesn't match any regexp on the list, it will be tagged.
# Excluded directories won't be traversed.
# Go/re2 regexp syntax ref: https://code.google.com/p/re2/wiki/Syntax
# Enclose regexps in single quotes to make sure "-regexp" won't be interpreted as yaml list.
#
# Examples:
# - '+/\.git/config$' # tag git repository config files
# - '-/\.git/.' # *don't* tag any repository objects
# - '-/\.(hg|bzr|redo)/' # these won't be traversed at all
# - '-(?i)/\.?svn(/|ignore)$' # exclude svn (or .svn) paths (case-insensitive) and ignore-lists
- '+/\.git/config$'
- '-/\.git/.'
- '-/\.(hg|bzr|redo)/'
- '-(?i)/\.?svn(/|ignore)$'
# Taggers are configurable plugins that return a string tag for a file,
# given it's location. What they do to that path (or files) is plugin-specific.
# "taggers" should be a map, with tag namespace (e.g. "lang" part in "lang:py")
# as a key and either scalar plugin name or map with "name: config..." as value.
# Special-case namespace "_none" can be used to use returned tags w/o prefix.
# Universally-recognized "fallback" config value, if set to "true", will make
# tagger run only if previous taggers haven't added anything to the same namespace.
taggers:
host:
- scm_config_git:
host_tags:
github: '^github\.com$'
local: '^fraggod\.net$'
- scm_config_hg:
host_tags:
bitbucket: '^bitbucket\.org$'
lang:
- lang_detect_paths
- lang_detect_shebang:
# don't peek into files if extension was recognized
fallback: true
scm: scm_detect_paths
# See go-logging docs (github.com/vaughan0/go-logging) for format specs
logging:
loggers:
root: TRACE, console
vaughan0: FATAL
console:
type: console
stream: stderr
# go-gypsy/yaml is kinda bad at parsing colons in strings, watch out
format: $time $level ($file:$line) $msg
# logfile:
# type: file
# file: file.log
# format: '$time $level ($logger) $msg'