-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
49 lines (42 loc) · 1.05 KB
/
Taskfile.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
version: "3"
set: [errexit, nounset, pipefail]
shopt: [globstar]
includes:
lint:
taskfile: https://github.com/nikaro/meta/raw/main/taskfiles/lint.yml
internal: true
format:
taskfile: https://github.com/nikaro/meta/raw/main/taskfiles/format.yml
internal: true
tasks:
init:
desc: Initialize repositry
cmds:
- git config core.hooksPath .githooks
- git config commit.template .gitmessage
lint:
desc: Run linters
cmds:
- task: lint:default
- task: lint:brew
lint:brew:
desc: Lint Hombrew formulae
sources:
- ./Casks/*.rb
- ./Formula/*.rb
cmds:
- brew style ./Casks/*.rb ./Formula/*.rb
- brew rubocop --lint ./Casks/*.rb ./Formula/*.rb
format:
desc: Run formatters
cmds:
- task: format:default
- task: format:brew
format:brew:
desc: Format Hombrew formulae
sources:
- ./Casks/*.rb
- ./Formula/*.rb
cmds:
- brew style --fix ./Casks/*.rb ./Formula/*.rb
- brew rubocop --autocorrect ./Casks/*.rb ./Formula/*.rb