blob: 8f2476191977ac6623987eb58c78eb9ab3e41280 [file] [log] [blame]
Justin Wood0c46b2e2020-04-17 14:20:48 -07001# Do anything at all
2enabled: true
3
4# Push the style fixes directly to the original PR
5auto: false
6
7# Open Restyle PRs?
8pull_requests: true
9
10# Add labels to any created Restyle PRs
11labels:
12 - restyled
13
14# Labels to ignore
15ignore_labels:
16 - restyled-ignore
17
18# Leave comments on the original PR linking to the Restyle PR?
19comments: false
20
21# Request review on the Restyle PR
22request_review: none
23
24# Patterns to exclude from all Restylers
25exclude:
26 - ".github/workflows/**/*" # https://github.com/restyled-io/restyler/issues/73
27 - "third_party/**/*"
28 - "third_party/**"
29 - "third_party/*"
Justin Wood0a9545e2020-04-20 18:15:21 -070030 - "third_party"
31 - "**/third_party/**/*"
32 - "**/third_party/*"
33 - "**/third_party/**"
34 - "**/third_party/**/*"
35 - "examples/lock-app/efr32/third_party/**/*"
36 - "examples/lock-app/efr32/third_party/*"
37 - "examples/lock-app/efr32/third_party/**"
Justin Wood0c46b2e2020-04-17 14:20:48 -070038 - "build/**/*"
39 - "autom4te.cache/**/*"
Andrei Litvin9063f482020-05-26 15:14:50 -040040 - "scripts/tests/save_logs.sh" # quotes $(...) in a for loop
Justin Wood0c46b2e2020-04-17 14:20:48 -070041
42# Restylers to run, and how
43restylers:
Rob Walker5a9f46d2020-05-26 14:32:28 -070044 - name: whitespace
45 enabled: true
46 image: restyled/restyler-whitespace:v0.1.0.0-2
47 command:
48 - whitespace
49 arguments: []
50 include:
Rob Walker84781242020-06-03 18:15:33 -070051 - "**/Dockerfile"
Rob Walkerafdc90d2020-06-03 20:07:26 -070052 - "**/*.yml"
53 - "**/*.yaml"
Rob Walker84781242020-06-03 18:15:33 -070054 - "**/*.sh"
Rob Walker5a9f46d2020-05-26 14:32:28 -070055 - "**/*.c"
56 - "**/*.cc"
57 - "**/*.cpp"
58 - "**/*.cxx"
59 - "**/*.c++"
60 - "**/*.C"
61 - "**/*.cs"
62 - "**/*.h"
63 - "**/*.hh"
64 - "**/*.hpp"
65 - "**/*.hxx"
66 - "**/*.h++"
67 - "**/*.H"
68 - "**/*.java"
69 - "**/*.js"
Rob Walkerafdc90d2020-06-03 20:07:26 -070070 - "**/*.json"
Rob Walker5a9f46d2020-05-26 14:32:28 -070071 - "**/*.m"
72 - "**/*.mm"
randyrossic4964e32020-06-23 19:14:03 -040073 - name: google-java-format
74 enabled: true
75 image: restyled/restyler-google-java-format:v1.6
76 command:
77 - google-java-format
78 - "--replace"
79 arguments: []
80 include:
81 - "**/*.java"
82 interpreters: []
Justin Wood0c46b2e2020-04-17 14:20:48 -070083 - name: clang-format
84 enabled: true
85 image: restyled/restyler-clang-format:v9.0.0
86 command:
87 - clang-format
88 - "-i"
89 arguments: []
90 include:
91 - "**/*.c"
92 - "**/*.cc"
93 - "**/*.cpp"
94 - "**/*.cxx"
95 - "**/*.c++"
96 - "**/*.C"
97 - "**/*.cs"
98 - "**/*.h"
99 - "**/*.hh"
100 - "**/*.hpp"
101 - "**/*.hxx"
102 - "**/*.h++"
103 - "**/*.H"
Justin Wood0c46b2e2020-04-17 14:20:48 -0700104 - "**/*.js"
105 - "**/*.m"
Rob Walker5a9f46d2020-05-26 14:32:28 -0700106 - "**/*.mm"
Justin Wood0c46b2e2020-04-17 14:20:48 -0700107 interpreters: []
Justin Wood0a9545e2020-04-20 18:15:21 -0700108 - name: prettier-json
109 image: restyled/restyler-prettier:v1.19.1-2
Justin Wood0c46b2e2020-04-17 14:20:48 -0700110 enabled: true
Justin Wood0a9545e2020-04-20 18:15:21 -0700111 command:
112 - prettier
113 - "--write"
114 arguments: []
Justin Wood0c46b2e2020-04-17 14:20:48 -0700115 include:
116 - "**/*.json"
Justin Wood0a9545e2020-04-20 18:15:21 -0700117 interpreters: []
Justin Wood0c46b2e2020-04-17 14:20:48 -0700118 - name: prettier-markdown
Justin Wood0a9545e2020-04-20 18:15:21 -0700119 image: restyled/restyler-prettier:v1.19.1-2
120 command:
121 - prettier
122 - "--write"
123 arguments: []
Justin Wood0c46b2e2020-04-17 14:20:48 -0700124 enabled: true
125 include:
126 - "**/*.md"
127 - "**/*.markdown"
128 - name: prettier-yaml
Justin Wood0a9545e2020-04-20 18:15:21 -0700129 image: restyled/restyler-prettier:v1.19.1-2
Justin Wood0c46b2e2020-04-17 14:20:48 -0700130 enabled: true
131 include:
132 - "**/*.yml"
133 - "**/*.yaml"
134 - name: shellharden
Justin Wood0a9545e2020-04-20 18:15:21 -0700135 image: restyled/restyler-shellharden:v4.1.1-2
Justin Wood0c46b2e2020-04-17 14:20:48 -0700136 enabled: true
137 include:
138 - "**/*.sh"
139 - "**/*.bash"
140 - name: shfmt
Justin Wood0a9545e2020-04-20 18:15:21 -0700141 image: restyled/restyler-shfmt:v3.0.1
Justin Wood0c46b2e2020-04-17 14:20:48 -0700142 enabled: true
Justin Wooda923ce72020-05-13 18:59:48 -0700143 command:
144 - shfmt
145 - "-w"
146 arguments:
147 - "-i"
148 - "4"
149 - "-ci"
150 interpreters:
151 - sh
152 - bash
Justin Wood0c46b2e2020-04-17 14:20:48 -0700153 include:
154 - "**/*.sh"
155 - "**/*.bash"