blob: f2326350adc50441db22b9c6bbc7f52188394ce8 [file] [log] [blame]
# Do anything at all
enabled: true
# Push the style fixes directly to the original PR
auto: false
# Open Restyle PRs?
pull_requests: true
# Add labels to any created Restyle PRs
labels:
- restyled
# Labels to ignore
ignore_labels:
- restyled-ignore
# Leave comments on the original PR linking to the Restyle PR?
comments: false
# Request review on the Restyle PR
request_review: none
# Patterns to exclude from all Restylers
exclude:
- ".github/workflows/**/*" # https://github.com/restyled-io/restyler/issues/73
- "third_party/**/*"
- "third_party/**"
- "third_party/*"
- "third_party"
- "**/third_party/**/*"
- "**/third_party/*"
- "**/third_party/**"
- "**/third_party/**/*"
- "examples/lock-app/efr32/third_party/**/*"
- "examples/lock-app/efr32/third_party/*"
- "examples/lock-app/efr32/third_party/**"
- "build/**/*"
- "autom4te.cache/**/*"
# Restylers to run, and how
restylers:
- name: clang-format
enabled: true
image: restyled/restyler-clang-format:v9.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: []
- name: prettier-json
image: restyled/restyler-prettier:v1.19.1-2
enabled: true
command:
- prettier
- "--write"
arguments: []
include:
- "**/*.json"
interpreters: []
- name: prettier-markdown
image: restyled/restyler-prettier:v1.19.1-2
command:
- prettier
- "--write"
arguments: []
enabled: true
include:
- "**/*.md"
- "**/*.markdown"
- name: prettier-yaml
image: restyled/restyler-prettier:v1.19.1-2
enabled: true
include:
- "**/*.yml"
- "**/*.yaml"
- name: shellharden
image: restyled/restyler-shellharden:v4.1.1-2
enabled: true
include:
- "**/*.sh"
- "**/*.bash"
- name: shfmt
image: restyled/restyler-shfmt:v3.0.1
enabled: true
command:
- shfmt
- "-w"
arguments:
- "-i"
- "4"
- "-ci"
interpreters:
- sh
- bash
include:
- "**/*.sh"
- "**/*.bash"