-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoodcheck.yml
49 lines (49 loc) · 1.35 KB
/
goodcheck.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
# Config file for https://github.com/sider/goodcheck
---
rules:
- id: com.tloekkeb.latex.section.uppercased
pattern:
regexp: '^ *\\(((sub)*section)|(\w*[Tt]itle\w*))(\[[^\]]*\])?{[\w ]*\b(?!((is)|(in)|(of)))[a-z]\w*\b[\w ]*}'
case_sensitive: true
multiline: true
message: Words in (sub)*sections and titles should start with an uppercase letter, except for words like of, is, ...
glob:
- 'main.tex'
pass:
- '\section{Koko}'
- '\section{Koko is Kaka of Kiki}'
- ' \section{Koko}'
- '\subsection{Koko Kaka}'
- '\subsubsection{Koko Kiki Keke}'
- '\frameTitle{Koko Kyky}'
- '% \section{koko}'
- '\title[]{Docker Image Testing in GitLab CI}'
- '
\whatevertitle[
koko=keke,
]{Docker Image}
'
fail:
- '\section{koko}'
- '\subsection{Koko kaka}'
- '\subsubsection{Koko Kiki keke}'
- '\frameTitle{Koko kyky}'
- '\title[]{Docker image testing in GitLab CI}'
- '
\whatevertitle[
koko=keke,
]{Docker image}
'
- id: com.tloekkeb.gitlab
pattern:
regexp: '((Gitlab)|(gitlab))(?![-\.])'
case_sensitive: true
multiline: false
message: Should be written as GitLab
glob:
- 'main.tex'
pass:
- 'GitLab'
fail:
- 'gitlab'
- 'Gitlab'