-
Notifications
You must be signed in to change notification settings - Fork 5
/
.restyled.yaml
207 lines (195 loc) · 4.93 KB
/
.restyled.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# Default Restyler Configuration
#
# All keys are optional and default as shown. All list values can also be given
# a single value, to indicate a single-element list.
#
####
# Do anything at all?
enabled: true
# Patterns to exclude from all Restylers
#
# By default, we ignore directories that are often checked-in but rarely
# represent project code. This glob is slightly complicated to match paths
# within directories of these names appearing at any depth.
#
# This behavior can be disabled in your project with:
#
# exclude: []
#
exclude:
- "**/node_modules/**/*"
- "**/vendor/**/*"
# Push the style fixes directly to the original PR
#
# This setting implies pull_requests: false for origin PRs, and has no effect on
# forked PRs (since we can't push to those).
#
auto: false
# Download remote files before restyling
#
# Example:
#
# remote_files:
# - url: https://raw.github.com/.../hlint.yaml
# path: .hlint.yaml
#
# Files must be publicly accessible.
#
remote_files: []
# Open Restyle PRs?
pull_requests: true
# Leave comments on the original PR linking to the Restyle PR?
comments: false
# Set commit statuses on the original PR?
statuses:
# Red status in the case of differences found
differences: true
# Green status in the case of no differences found
no_differences: true
# Red status if we encounter errors restyling
error: true
# Request review on the Restyle PR?
#
# Possible values:
#
# author: From the author of the original PR
# owner: From the owner of the repository
# none: Don't
#
# One value will apply to both origin and forked PRs, but you can also specify
# separate values.
#
# request_review:
# origin: author
# forked: owner
#
request_review: none
# Add labels to any created Restyle PRs
#
# These can be used to tell other automation to avoid our PRs.
#
labels: []
# Labels to ignore
#
# PRs with any of these labels will be ignored by Restyled.
#
ignore_labels:
- restyled-ignore
# Version of the set of Restylers to run
#
# This should correspond to a ref on the restyled-io/restylers repository,
# usually it's a tag that is a date of when that set was released. You could
# re-specify the default in your own config if you prefer to avoid update
# surprises.
#
restylers_version: "20191031"
# Restylers to run, and how
#
# Setting this key to null accepts the defaults of the restylers_version named
# above, including which Restylers to run.
#
# Restylers can be specified in three ways:
#
# A string, which means to run that Restyler with all defaults
#
# ---
# restylers:
# - prettier
#
# A single key, that is a name, and override value:
#
# ---
# restylers:
# - prettier:
# include:
# - "**/*.js"
#
# An object with a name key
#
# ---
# restylers:
# - name: prettier:
# include:
# - "**/*.js"
#
# All three of the above are equivalent. The latter two are useful if you want
# to run the same Restyler multiple ways:
#
# ---
# restylers:
# - name: prettier
# arguments: ["--one-thing"]
# include: ["needs-one-thing/**/*.js"]
#
# - name: prettier
# arguments: ["--another"]
# include: ["needs-another/**/*.js"]
#
# Valid keys in the override object are:
#
# - enabled: true|false
#
# Restylers present in the list are considered enabled and those not in the
# list are considered not enabled, however this key is an explicit way to
# disable a Restyler without removing it from the list (e.g. temporarily).
#
# - arguments: string or array of string
#
# Any additional argument(s) to pass to the restyling command.
#
# - include: pattern or array of pattern
#
# Pattern(s) to match files that should be Restyled.
#
# NOTE: these are processed in order, so be careful you don't accidentally do
# something like:
#
# - "!/bad-file.hs"
# - "**/*.hs"
#
# which says to exclude bad-file.hs, then immediately re-includes it via the
# wildcard.
#
# - interpreters: interpreter or array of interpreters
#
# Extension-less files will be Restyled if they match interpreter(s) given
# here. Valid values are sh, bash, python, and ruby.
#
# Less-commonly needed:
#
# - image: string
#
# The Docker image to run. Can be anything publicly pull-able.
#
# - command: string or array of string
#
# The command (and any required argument(s)) to perform the Restyling.
#
# for info see: https://github.com/restyled-io/restyler/issues/134
# N.B. the docker image version can be controlled via PRs:
# https://github.com/restyled-io/restylers/tree/main/clang-format
restylers:
- name: clang-format
image: 'restyled/restyler-clang-format:12.0.0'
command:
- clang-format
- "-i"
arguments: []
include:
- "**/*.c"
- "**/*.cc"
- "**/*.cpp"
- "**/*.cxx"
- "**/*.c++"
- "**/*.C"
- "**/*.cs"
- "**/*.h"
- "**/*.hh"
- "**/*.hpp"
- "**/*.hxx"
- "**/*.h++"
- "**/*.H"
- "**/*.java"
- "**/*.js"
- "**/*.m"
interpreters: []