Skip to content

Commit 7dc833a

Browse files
author
xin.wang
committed
feat: add configuration file of vale
1 parent 3a04358 commit 7dc833a

29 files changed

Lines changed: 3505 additions & 0 deletions
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# ---------------> | 正则表达式
2+
[a-zA-z]+://[^\s]*
3+
4+
# ---------------> | 专有名词,公司名
5+
graviti
6+
Graviti
7+
GRAVITI
8+
Neolix
9+
tensorbay
10+
TensorBay
11+
accesskey
12+
AccessKey
13+
pytorch
14+
PyTorch
15+
github
16+
GitHub
17+
18+
keypoint
19+
keypoints
20+
polyline
21+
polylines
22+
dataloader
23+
Dataloader
24+
25+
pythonic
26+
27+
28+
Qingdao
29+
Hangzhou
30+
31+
32+
33+
# ---------------> | CS术语
34+
rst
35+
csv
36+
txt
37+
json
38+
39+
png
40+
jpg
41+
42+
http
43+
Http
44+
https
45+
Https
46+
ip
47+
IP
48+
49+
url
50+
URL
51+
config
52+
Config
53+
54+
autodoc
55+
todo
56+
ctx
57+
cli
58+
CLI
59+
60+
61+
62+
# ---------------> | 第三方包
63+
Zsh
64+
NumPy
65+
pytest
66+
Pytest
67+
xmltodict
68+
pyyaml
69+
mypy
70+
pylint
71+
tqdm
72+
toolbelt
73+
filetype
74+
oss
75+
76+
# ---------------> | 常用变量
77+
trainval
78+
79+
dev
80+
attr
81+
usr
82+
env
83+
enum
84+
tbrn
85+
86+
rf
87+
API
88+
noqa
89+
param
90+
uuid
91+
92+
kwargs
93+
args
94+
95+
boolean
96+
97+
98+
99+
# ---------------> | 其他
100+
sublicense
101+
opendataset
102+
subfolder
103+
abyssinian
104+
subcatalog
105+
unmodify
106+
Makefile
107+
iterable
108+

.github/styles/Vocab/Graviti/reject.txt

Whitespace-only changes.
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
extends: substitution
2+
message: "Consider using '%s' instead of '%s'."
3+
link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-simple-words-concise-sentences
4+
ignorecase: true
5+
level: suggestion
6+
7+
action:
8+
name: replace
9+
swap:
10+
"approximate(?:ly)?": about
11+
abundance: plenty
12+
accelerate: speed up
13+
accentuate: stress
14+
accompany: go with
15+
accomplish: carry out|do
16+
accorded: given
17+
accordingly: so
18+
accrue: add
19+
accurate: right|exact
20+
acquiesce: agree
21+
acquire: get|buy
22+
additional: more|extra
23+
address: discuss
24+
addressees: you
25+
adjacent to: next to
26+
adjustment: change
27+
admissible: allowed
28+
advantageous: helpful
29+
advise: tell
30+
aggregate: total
31+
aircraft: plane
32+
alleviate: ease
33+
allocate: assign|divide
34+
alternatively: or
35+
alternatives: choices|options
36+
ameliorate: improve
37+
amend: change
38+
anticipate: expect
39+
apparent: clear|plain
40+
ascertain: discover|find out
41+
assistance: help
42+
attain: meet
43+
attempt: try
44+
authorize: allow
45+
belated: late
46+
bestow: give
47+
cease: stop|end
48+
collaborate: work together
49+
commence: begin
50+
compensate: pay
51+
component: part
52+
comprise: form|include
53+
concept: idea
54+
concerning: about
55+
confer: give|award
56+
consequently: so
57+
consolidate: merge
58+
constitutes: forms
59+
contains: has
60+
convene: meet
61+
demonstrate: show|prove
62+
depart: leave
63+
designate: choose
64+
desire: want|wish
65+
determine: decide|find
66+
detrimental: bad|harmful
67+
disclose: share|tell
68+
discontinue: stop
69+
disseminate: send|give
70+
eliminate: end
71+
elucidate: explain
72+
employ: use
73+
enclosed: inside|included
74+
encounter: meet
75+
endeavor: try
76+
enumerate: count
77+
equitable: fair
78+
equivalent: equal
79+
exclusively: only
80+
expedite: hurry
81+
facilitate: ease
82+
females: women
83+
finalize: complete|finish
84+
frequently: often
85+
identical: same
86+
incorrect: wrong
87+
indication: sign
88+
initiate: start|begin
89+
itemized: listed
90+
jeopardize: risk
91+
liaise: work with|partner with
92+
maintain: keep|support
93+
methodology: method
94+
modify: change
95+
monitor: check|watch
96+
multiple: many
97+
necessitate: cause
98+
notify: tell
99+
numerous: many
100+
objective: aim|goal
101+
obligate: bind|compel
102+
optimum: best|most
103+
permit: let
104+
portion: part
105+
possess: own
106+
previous: earlier
107+
previously: before
108+
prioritize: rank
109+
procure: buy
110+
provide: give|offer
111+
purchase: buy
112+
relocate: move
113+
solicit: request
114+
state-of-the-art: latest
115+
subsequent: later|next
116+
substantial: large
117+
sufficient: enough
118+
terminate: end
119+
transmit: send
120+
utilization: use
121+
utilize: use
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extends: existence
2+
message: Use 'July 31, 2016' format, not '%s'.
3+
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/date-time-terms
4+
ignorecase: true
5+
level: error
6+
7+
nonword: true
8+
tokens:
9+
- '\d{1,2} (?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)|May|Jun(?:e)|Jul(?:y)|Aug(?:ust)|Sep(?:tember)?|Oct(?:ober)|Nov(?:ember)?|Dec(?:ember)?) \d{4}'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
extends: existence
2+
message: "Try to avoid using '%s'."
3+
ignorecase: true
4+
level: suggestion
5+
tokens:
6+
- am
7+
- are
8+
- aren't
9+
- be
10+
- been
11+
- being
12+
- he's
13+
- here's
14+
- here's
15+
- how's
16+
- i'm
17+
- is
18+
- isn't
19+
- she's
20+
- that's
21+
- there's
22+
- they're
23+
- was
24+
- wasn't
25+
- we're
26+
- were
27+
- weren't
28+
- what's
29+
- where's
30+
- who's
31+
- you're
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extends: repetition
2+
message: "'%s' is repeated!"
3+
level: warning
4+
alpha: true
5+
action:
6+
name: edit
7+
params:
8+
- truncate
9+
- " "
10+
tokens:
11+
- '[^\s]+'

.github/styles/style-p1/Ranges.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
extends: existence
2+
message: "In most cases, use 'from' or 'through' to describe a range of numbers."
3+
link: 'https://docs.microsoft.com/en-us/style-guide/numbers'
4+
nonword: true
5+
level: warning
6+
7+
tokens:
8+
- '\b\d+\s?[-–]\s?\d+\b'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extends: occurrence
2+
message: "Try to keep sentences short (< 30 words)."
3+
scope: sentence
4+
level: suggestion
5+
max: 30
6+
token: \b(\w+)\b
7+

.github/styles/style-p1/So.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
extends: existence
2+
message: "Don't start a sentence with '%s'."
3+
level: error
4+
raw:
5+
- '(?:[;-]\s)so[\s,]|\bSo[\s,]'
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
extends: consistency
2+
message: "Inconsistent spelling of '%s'."
3+
level: error
4+
ignorecase: true
5+
either:
6+
advisor: adviser
7+
centre: center
8+
colour: color
9+
emphasise: emphasize
10+
finalise: finalize
11+
focussed: focused
12+
labour: labor
13+
learnt: learned
14+
organise: organize
15+
organised: organized
16+
organising: organizing
17+
recognise: recognize

0 commit comments

Comments
 (0)