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 |
| 43 | - "third_party/**/*" |
| 44 | - "third_party/**" |
| 45 | - "third_party/*" |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 46 | - "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 Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 54 | - "build/**/*" |
| 55 | - "autom4te.cache/**/*" |
Andrei Litvin | 9063f48 | 2020-05-26 15:14:50 -0400 | [diff] [blame] | 56 | - "scripts/tests/save_logs.sh" # quotes $(...) in a for loop |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 57 | |
| 58 | # Restylers to run, and how |
| 59 | restylers: |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 60 | - name: whitespace |
| 61 | enabled: true |
| 62 | image: restyled/restyler-whitespace:v0.1.0.0-2 |
| 63 | command: |
| 64 | - whitespace |
| 65 | arguments: [] |
| 66 | include: |
Rob Walker | 8478124 | 2020-06-03 18:15:33 -0700 | [diff] [blame] | 67 | - "**/Dockerfile" |
Rob Walker | afdc90d | 2020-06-03 20:07:26 -0700 | [diff] [blame] | 68 | - "**/*.yml" |
| 69 | - "**/*.yaml" |
Rob Walker | 8478124 | 2020-06-03 18:15:33 -0700 | [diff] [blame] | 70 | - "**/*.sh" |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 71 | - "**/*.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 Walker | afdc90d | 2020-06-03 20:07:26 -0700 | [diff] [blame] | 86 | - "**/*.json" |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 87 | - "**/*.m" |
| 88 | - "**/*.mm" |
randyrossi | c4964e3 | 2020-06-23 19:14:03 -0400 | [diff] [blame] | 89 | - 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 Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 99 | - 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 Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 120 | - "**/*.js" |
| 121 | - "**/*.m" |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 122 | - "**/*.mm" |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 123 | interpreters: [] |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 124 | - name: prettier-json |
| 125 | image: restyled/restyler-prettier:v1.19.1-2 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 126 | enabled: true |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 127 | command: |
| 128 | - prettier |
| 129 | - "--write" |
| 130 | arguments: [] |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 131 | include: |
| 132 | - "**/*.json" |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 133 | interpreters: [] |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 134 | - name: prettier-markdown |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 135 | image: restyled/restyler-prettier:v1.19.1-2 |
| 136 | command: |
| 137 | - prettier |
| 138 | - "--write" |
| 139 | arguments: [] |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 140 | enabled: true |
| 141 | include: |
| 142 | - "**/*.md" |
| 143 | - "**/*.markdown" |
| 144 | - name: prettier-yaml |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 145 | image: restyled/restyler-prettier:v1.19.1-2 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 146 | enabled: true |
| 147 | include: |
| 148 | - "**/*.yml" |
| 149 | - "**/*.yaml" |
| 150 | - name: shellharden |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 151 | image: restyled/restyler-shellharden:v4.1.1-2 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 152 | enabled: true |
| 153 | include: |
| 154 | - "**/*.sh" |
| 155 | - "**/*.bash" |
| 156 | - name: shfmt |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 157 | image: restyled/restyler-shfmt:v3.0.1 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 158 | enabled: true |
Justin Wood | a923ce7 | 2020-05-13 18:59:48 -0700 | [diff] [blame] | 159 | command: |
| 160 | - shfmt |
| 161 | - "-w" |
| 162 | arguments: |
| 163 | - "-i" |
| 164 | - "4" |
| 165 | - "-ci" |
| 166 | interpreters: |
| 167 | - sh |
| 168 | - bash |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 169 | include: |
| 170 | - "**/*.sh" |
| 171 | - "**/*.bash" |