Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing restyled to ignore third_party #392

Merged
merged 14 commits into from
Apr 17, 2020
Merged
81 changes: 81 additions & 0 deletions .restyled.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# 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/**/*"
- "build/**/*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we want restyled looking at build, as long as the files are part of the git repository

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"We want" can you explain? which we don't want?

Copy link
Contributor

@rwalker-apple rwalker-apple Apr 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we want restyled to look at all the things in build/ that are in git

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be addressed separately. For now, we're should ignore build, we can bring this back in later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside: Ideally, we should have a real build directory then, given it's a mix of built products, and scripts

- "autom4te.cache/**/*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are no files in this directory in git...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, but it matters for locally restyled

Copy link
Contributor

@rwalker-apple rwalker-apple Apr 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restyled can't look at .gitignore? I guess this is no biggie, but it means .gitignore and this file have to be kept in sync.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, feel free to open up an issue there.


# 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
enabled: true
include:
- "**/*.json"
- name: prettier-markdown
enabled: true
include:
- "**/*.md"
- "**/*.markdown"
- name: prettier-yaml
enabled: true
include:
- "**/*.yml"
- "**/*.yaml"
- name: shellharden
enabled: true
include:
- "**/*.sh"
- "**/*.bash"
- name: shfmt
enabled: true
include:
- "**/*.sh"
- "**/*.bash"
28 changes: 0 additions & 28 deletions .restyled.yml

This file was deleted.

2 changes: 1 addition & 1 deletion third_party/nlbuild-autotools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ See "Getting Started" in repo/README.md.

### Subsequent Update

Assuming the project copy of nlbuild-autotools was created with git
Assuming the project copy of nlbuild-autotools was created with git
subtree, a subsequent update can be accomplished with the following,
replacing HEAD with a named, tagged version if the HEAD commit is not
what is desired.
Expand Down