Robert Szewczyk | 38cf731 | 2020-06-29 09:07:49 -0700 | [diff] [blame] | 1 | # |
| 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 Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 17 | # Do anything at all |
| 18 | enabled: true |
| 19 | |
| 20 | # Push the style fixes directly to the original PR |
| 21 | auto: false |
| 22 | |
| 23 | # Open Restyle PRs? |
| 24 | pull_requests: true |
| 25 | |
| 26 | # Add labels to any created Restyle PRs |
| 27 | labels: |
| 28 | - restyled |
| 29 | |
| 30 | # Labels to ignore |
| 31 | ignore_labels: |
| 32 | - restyled-ignore |
| 33 | |
| 34 | # Leave comments on the original PR linking to the Restyle PR? |
| 35 | comments: false |
| 36 | |
| 37 | # Request review on the Restyle PR |
| 38 | request_review: none |
| 39 | |
| 40 | # Patterns to exclude from all Restylers |
| 41 | exclude: |
| 42 | - ".github/workflows/**/*" # https://github.com/restyled-io/restyler/issues/73 |
Vivien Nicolas | dd62545 | 2020-07-09 04:56:45 +0200 | [diff] [blame] | 43 | - ".github/workflows/*" # https://github.com/restyled-io/restyler/issues/73 |
| 44 | - ".github/**/*" # https://github.com/restyled-io/restyler/issues/73 |
| 45 | - ".github/*" # https://github.com/restyled-io/restyler/issues/73 |
Rob Walker | 085b3d0 | 2020-09-08 14:11:59 -0700 | [diff] [blame^] | 46 | - "third_party/android/**/*" |
| 47 | - "third_party/inipp/repo/**/*" |
| 48 | - "third_party/jlink/**/*" |
| 49 | - "third_party/lwip/repo/**/*" |
| 50 | - "third_party/nlbuild-autotools/repo/**/*" |
| 51 | - "third_party/nlbuild-autotools/repo/.**/*" # "**/*" doesn't include directories that start with "." |
| 52 | - "third_party/nlassert/repo/**/*" # from here down built with $ awk '/path =/ {print $3 "/**/*"}' .gitmodules |
| 53 | - "third_party/nlfaultinjection/repo/**/*" |
| 54 | - "third_party/nlio/repo/**/*" |
| 55 | - "third_party/nlunit-test/repo/**/*" |
| 56 | - "third_party/mbedtls/repo/**/*" |
| 57 | - "examples/common/QRCode/repo/**/*" |
| 58 | - "examples/common/m5stack-tft/repo/**/*" |
| 59 | - "third_party/pigweed/repo/**/*" |
| 60 | - "third_party/openthread/repo/**/*" |
| 61 | - "third_party/ot-br-posix/repo/**/*" |
| 62 | - "third_party/bluez/repo/**/*" |
| 63 | - "third_party/ot-commissioner/repo/**/*" |
| 64 | - "third_party/cirque/repo/**/*" |
| 65 | |
| 66 | |
| 67 | changed_paths: |
| 68 | maximum: 100000 |
| 69 | outcome: error |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 70 | |
| 71 | # Restylers to run, and how |
| 72 | restylers: |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 73 | - name: whitespace |
| 74 | enabled: true |
Rob Walker | 085b3d0 | 2020-09-08 14:11:59 -0700 | [diff] [blame^] | 75 | image: restyled/restyler-whitespace:v0.1.0.1 |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 76 | command: |
| 77 | - whitespace |
| 78 | arguments: [] |
| 79 | include: |
Rob Walker | 8478124 | 2020-06-03 18:15:33 -0700 | [diff] [blame] | 80 | - "**/Dockerfile" |
Rob Walker | 085b3d0 | 2020-09-08 14:11:59 -0700 | [diff] [blame^] | 81 | - ".**/Dockerfile" |
Rob Walker | afdc90d | 2020-06-03 20:07:26 -0700 | [diff] [blame] | 82 | - "**/*.yml" |
| 83 | - "**/*.yaml" |
Rob Walker | 085b3d0 | 2020-09-08 14:11:59 -0700 | [diff] [blame^] | 84 | - ".**/*.yml" |
| 85 | - ".**/*.yaml" |
Rob Walker | 8478124 | 2020-06-03 18:15:33 -0700 | [diff] [blame] | 86 | - "**/*.sh" |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 87 | - "**/*.c" |
| 88 | - "**/*.cc" |
| 89 | - "**/*.cpp" |
| 90 | - "**/*.cxx" |
| 91 | - "**/*.c++" |
| 92 | - "**/*.C" |
| 93 | - "**/*.cs" |
| 94 | - "**/*.h" |
| 95 | - "**/*.hh" |
| 96 | - "**/*.hpp" |
| 97 | - "**/*.hxx" |
| 98 | - "**/*.h++" |
| 99 | - "**/*.H" |
| 100 | - "**/*.java" |
| 101 | - "**/*.js" |
Rob Walker | afdc90d | 2020-06-03 20:07:26 -0700 | [diff] [blame] | 102 | - "**/*.json" |
Rob Walker | 085b3d0 | 2020-09-08 14:11:59 -0700 | [diff] [blame^] | 103 | - ".**/*.js" |
| 104 | - ".**/*.json" |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 105 | - "**/*.m" |
| 106 | - "**/*.mm" |
randyrossi | c4964e3 | 2020-06-23 19:14:03 -0400 | [diff] [blame] | 107 | - name: google-java-format |
| 108 | enabled: true |
| 109 | image: restyled/restyler-google-java-format:v1.6 |
| 110 | command: |
| 111 | - google-java-format |
| 112 | - "--replace" |
| 113 | arguments: [] |
| 114 | include: |
| 115 | - "**/*.java" |
| 116 | interpreters: [] |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 117 | - name: clang-format |
| 118 | enabled: true |
| 119 | image: restyled/restyler-clang-format:v9.0.0 |
| 120 | command: |
| 121 | - clang-format |
| 122 | - "-i" |
| 123 | arguments: [] |
| 124 | include: |
| 125 | - "**/*.c" |
| 126 | - "**/*.cc" |
| 127 | - "**/*.cpp" |
| 128 | - "**/*.cxx" |
| 129 | - "**/*.c++" |
| 130 | - "**/*.C" |
| 131 | - "**/*.cs" |
| 132 | - "**/*.h" |
| 133 | - "**/*.hh" |
| 134 | - "**/*.hpp" |
| 135 | - "**/*.hxx" |
| 136 | - "**/*.h++" |
| 137 | - "**/*.H" |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 138 | - "**/*.js" |
| 139 | - "**/*.m" |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 140 | - "**/*.mm" |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 141 | interpreters: [] |
Michael Spang | 65dd651 | 2020-08-18 12:07:01 -0400 | [diff] [blame] | 142 | - name: gn |
| 143 | image: restyled/restyler-gn:v1 |
| 144 | enabled: true |
| 145 | include: |
| 146 | - "**/*.gn" |
| 147 | - "**/*.gni" |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 148 | - name: prettier-json |
| 149 | image: restyled/restyler-prettier:v1.19.1-2 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 150 | enabled: true |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 151 | command: |
| 152 | - prettier |
| 153 | - "--write" |
| 154 | arguments: [] |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 155 | include: |
| 156 | - "**/*.json" |
Rob Walker | 085b3d0 | 2020-09-08 14:11:59 -0700 | [diff] [blame^] | 157 | - ".**/*.json" |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 158 | interpreters: [] |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 159 | - name: prettier-markdown |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 160 | image: restyled/restyler-prettier:v1.19.1-2 |
| 161 | command: |
| 162 | - prettier |
| 163 | - "--write" |
| 164 | arguments: [] |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 165 | enabled: true |
| 166 | include: |
| 167 | - "**/*.md" |
| 168 | - "**/*.markdown" |
| 169 | - name: prettier-yaml |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 170 | image: restyled/restyler-prettier:v1.19.1-2 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 171 | enabled: true |
| 172 | include: |
| 173 | - "**/*.yml" |
| 174 | - "**/*.yaml" |
| 175 | - name: shellharden |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 176 | image: restyled/restyler-shellharden:v4.1.1-2 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 177 | enabled: true |
| 178 | include: |
| 179 | - "**/*.sh" |
| 180 | - "**/*.bash" |
| 181 | - name: shfmt |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 182 | image: restyled/restyler-shfmt:v3.0.1 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 183 | enabled: true |
Justin Wood | a923ce7 | 2020-05-13 18:59:48 -0700 | [diff] [blame] | 184 | command: |
| 185 | - shfmt |
| 186 | - "-w" |
| 187 | arguments: |
| 188 | - "-i" |
| 189 | - "4" |
| 190 | - "-ci" |
| 191 | interpreters: |
| 192 | - sh |
| 193 | - bash |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 194 | include: |
| 195 | - "**/*.sh" |
| 196 | - "**/*.bash" |