blob: 06c991894d01cc87969d7f00d112dc970a838c99 [file] [log] [blame]
Robert Szewczyk38cf7312020-06-29 09:07:49 -07001#
2# Copyright (c) 2020 Project CHIP Authors
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
Justin Wood0c46b2e2020-04-17 14:20:48 -070017# Do anything at all
18enabled: true
19
20# Push the style fixes directly to the original PR
21auto: false
22
23# Open Restyle PRs?
24pull_requests: true
25
26# Add labels to any created Restyle PRs
27labels:
28 - restyled
29
30# Labels to ignore
31ignore_labels:
32 - restyled-ignore
33
34# Leave comments on the original PR linking to the Restyle PR?
35comments: false
36
37# Request review on the Restyle PR
38request_review: none
39
40# Patterns to exclude from all Restylers
41exclude:
42 - ".github/workflows/**/*" # https://github.com/restyled-io/restyler/issues/73
43 - "third_party/**/*"
44 - "third_party/**"
45 - "third_party/*"
Justin Wood0a9545e2020-04-20 18:15:21 -070046 - "third_party"
47 - "**/third_party/**/*"
48 - "**/third_party/*"
49 - "**/third_party/**"
50 - "**/third_party/**/*"
51 - "examples/lock-app/efr32/third_party/**/*"
52 - "examples/lock-app/efr32/third_party/*"
53 - "examples/lock-app/efr32/third_party/**"
Justin Wood0c46b2e2020-04-17 14:20:48 -070054 - "build/**/*"
55 - "autom4te.cache/**/*"
Andrei Litvin9063f482020-05-26 15:14:50 -040056 - "scripts/tests/save_logs.sh" # quotes $(...) in a for loop
Justin Wood0c46b2e2020-04-17 14:20:48 -070057
58# Restylers to run, and how
59restylers:
Rob Walker5a9f46d2020-05-26 14:32:28 -070060 - name: whitespace
61 enabled: true
62 image: restyled/restyler-whitespace:v0.1.0.0-2
63 command:
64 - whitespace
65 arguments: []
66 include:
Rob Walker84781242020-06-03 18:15:33 -070067 - "**/Dockerfile"
Rob Walkerafdc90d2020-06-03 20:07:26 -070068 - "**/*.yml"
69 - "**/*.yaml"
Rob Walker84781242020-06-03 18:15:33 -070070 - "**/*.sh"
Rob Walker5a9f46d2020-05-26 14:32:28 -070071 - "**/*.c"
72 - "**/*.cc"
73 - "**/*.cpp"
74 - "**/*.cxx"
75 - "**/*.c++"
76 - "**/*.C"
77 - "**/*.cs"
78 - "**/*.h"
79 - "**/*.hh"
80 - "**/*.hpp"
81 - "**/*.hxx"
82 - "**/*.h++"
83 - "**/*.H"
84 - "**/*.java"
85 - "**/*.js"
Rob Walkerafdc90d2020-06-03 20:07:26 -070086 - "**/*.json"
Rob Walker5a9f46d2020-05-26 14:32:28 -070087 - "**/*.m"
88 - "**/*.mm"
randyrossic4964e32020-06-23 19:14:03 -040089 - name: google-java-format
90 enabled: true
91 image: restyled/restyler-google-java-format:v1.6
92 command:
93 - google-java-format
94 - "--replace"
95 arguments: []
96 include:
97 - "**/*.java"
98 interpreters: []
Justin Wood0c46b2e2020-04-17 14:20:48 -070099 - name: clang-format
100 enabled: true
101 image: restyled/restyler-clang-format:v9.0.0
102 command:
103 - clang-format
104 - "-i"
105 arguments: []
106 include:
107 - "**/*.c"
108 - "**/*.cc"
109 - "**/*.cpp"
110 - "**/*.cxx"
111 - "**/*.c++"
112 - "**/*.C"
113 - "**/*.cs"
114 - "**/*.h"
115 - "**/*.hh"
116 - "**/*.hpp"
117 - "**/*.hxx"
118 - "**/*.h++"
119 - "**/*.H"
Justin Wood0c46b2e2020-04-17 14:20:48 -0700120 - "**/*.js"
121 - "**/*.m"
Rob Walker5a9f46d2020-05-26 14:32:28 -0700122 - "**/*.mm"
Justin Wood0c46b2e2020-04-17 14:20:48 -0700123 interpreters: []
Justin Wood0a9545e2020-04-20 18:15:21 -0700124 - name: prettier-json
125 image: restyled/restyler-prettier:v1.19.1-2
Justin Wood0c46b2e2020-04-17 14:20:48 -0700126 enabled: true
Justin Wood0a9545e2020-04-20 18:15:21 -0700127 command:
128 - prettier
129 - "--write"
130 arguments: []
Justin Wood0c46b2e2020-04-17 14:20:48 -0700131 include:
132 - "**/*.json"
Justin Wood0a9545e2020-04-20 18:15:21 -0700133 interpreters: []
Justin Wood0c46b2e2020-04-17 14:20:48 -0700134 - name: prettier-markdown
Justin Wood0a9545e2020-04-20 18:15:21 -0700135 image: restyled/restyler-prettier:v1.19.1-2
136 command:
137 - prettier
138 - "--write"
139 arguments: []
Justin Wood0c46b2e2020-04-17 14:20:48 -0700140 enabled: true
141 include:
142 - "**/*.md"
143 - "**/*.markdown"
144 - name: prettier-yaml
Justin Wood0a9545e2020-04-20 18:15:21 -0700145 image: restyled/restyler-prettier:v1.19.1-2
Justin Wood0c46b2e2020-04-17 14:20:48 -0700146 enabled: true
147 include:
148 - "**/*.yml"
149 - "**/*.yaml"
150 - name: shellharden
Justin Wood0a9545e2020-04-20 18:15:21 -0700151 image: restyled/restyler-shellharden:v4.1.1-2
Justin Wood0c46b2e2020-04-17 14:20:48 -0700152 enabled: true
153 include:
154 - "**/*.sh"
155 - "**/*.bash"
156 - name: shfmt
Justin Wood0a9545e2020-04-20 18:15:21 -0700157 image: restyled/restyler-shfmt:v3.0.1
Justin Wood0c46b2e2020-04-17 14:20:48 -0700158 enabled: true
Justin Wooda923ce72020-05-13 18:59:48 -0700159 command:
160 - shfmt
161 - "-w"
162 arguments:
163 - "-i"
164 - "4"
165 - "-ci"
166 interpreters:
167 - sh
168 - bash
Justin Wood0c46b2e2020-04-17 14:20:48 -0700169 include:
170 - "**/*.sh"
171 - "**/*.bash"