Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 1 | # Do anything at all |
| 2 | enabled: true |
| 3 | |
| 4 | # Push the style fixes directly to the original PR |
| 5 | auto: false |
| 6 | |
| 7 | # Open Restyle PRs? |
| 8 | pull_requests: true |
| 9 | |
| 10 | # Add labels to any created Restyle PRs |
| 11 | labels: |
| 12 | - restyled |
| 13 | |
| 14 | # Labels to ignore |
| 15 | ignore_labels: |
| 16 | - restyled-ignore |
| 17 | |
| 18 | # Leave comments on the original PR linking to the Restyle PR? |
| 19 | comments: false |
| 20 | |
| 21 | # Request review on the Restyle PR |
| 22 | request_review: none |
| 23 | |
| 24 | # Patterns to exclude from all Restylers |
| 25 | exclude: |
| 26 | - ".github/workflows/**/*" # https://github.com/restyled-io/restyler/issues/73 |
| 27 | - "third_party/**/*" |
| 28 | - "third_party/**" |
| 29 | - "third_party/*" |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 30 | - "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 Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 38 | - "build/**/*" |
| 39 | - "autom4te.cache/**/*" |
Andrei Litvin | 9063f48 | 2020-05-26 15:14:50 -0400 | [diff] [blame] | 40 | - "scripts/tests/save_logs.sh" # quotes $(...) in a for loop |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 41 | |
| 42 | # Restylers to run, and how |
| 43 | restylers: |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 44 | - name: whitespace |
| 45 | enabled: true |
| 46 | image: restyled/restyler-whitespace:v0.1.0.0-2 |
| 47 | command: |
| 48 | - whitespace |
| 49 | arguments: [] |
| 50 | include: |
Rob Walker | 8478124 | 2020-06-03 18:15:33 -0700 | [diff] [blame] | 51 | - "**/Dockerfile" |
Rob Walker | afdc90d | 2020-06-03 20:07:26 -0700 | [diff] [blame] | 52 | - "**/*.yml" |
| 53 | - "**/*.yaml" |
Rob Walker | 8478124 | 2020-06-03 18:15:33 -0700 | [diff] [blame] | 54 | - "**/*.sh" |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 55 | - "**/*.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 Walker | afdc90d | 2020-06-03 20:07:26 -0700 | [diff] [blame] | 70 | - "**/*.json" |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 71 | - "**/*.m" |
| 72 | - "**/*.mm" |
randyrossi | c4964e3 | 2020-06-23 19:14:03 -0400 | [diff] [blame] | 73 | - 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 Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 83 | - 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 Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 104 | - "**/*.js" |
| 105 | - "**/*.m" |
Rob Walker | 5a9f46d | 2020-05-26 14:32:28 -0700 | [diff] [blame] | 106 | - "**/*.mm" |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 107 | interpreters: [] |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 108 | - name: prettier-json |
| 109 | image: restyled/restyler-prettier:v1.19.1-2 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 110 | enabled: true |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 111 | command: |
| 112 | - prettier |
| 113 | - "--write" |
| 114 | arguments: [] |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 115 | include: |
| 116 | - "**/*.json" |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 117 | interpreters: [] |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 118 | - name: prettier-markdown |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 119 | image: restyled/restyler-prettier:v1.19.1-2 |
| 120 | command: |
| 121 | - prettier |
| 122 | - "--write" |
| 123 | arguments: [] |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 124 | enabled: true |
| 125 | include: |
| 126 | - "**/*.md" |
| 127 | - "**/*.markdown" |
| 128 | - name: prettier-yaml |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 129 | image: restyled/restyler-prettier:v1.19.1-2 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 130 | enabled: true |
| 131 | include: |
| 132 | - "**/*.yml" |
| 133 | - "**/*.yaml" |
| 134 | - name: shellharden |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 135 | image: restyled/restyler-shellharden:v4.1.1-2 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 136 | enabled: true |
| 137 | include: |
| 138 | - "**/*.sh" |
| 139 | - "**/*.bash" |
| 140 | - name: shfmt |
Justin Wood | 0a9545e | 2020-04-20 18:15:21 -0700 | [diff] [blame] | 141 | image: restyled/restyler-shfmt:v3.0.1 |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 142 | enabled: true |
Justin Wood | a923ce7 | 2020-05-13 18:59:48 -0700 | [diff] [blame] | 143 | command: |
| 144 | - shfmt |
| 145 | - "-w" |
| 146 | arguments: |
| 147 | - "-i" |
| 148 | - "4" |
| 149 | - "-ci" |
| 150 | interpreters: |
| 151 | - sh |
| 152 | - bash |
Justin Wood | 0c46b2e | 2020-04-17 14:20:48 -0700 | [diff] [blame] | 153 | include: |
| 154 | - "**/*.sh" |
| 155 | - "**/*.bash" |