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

clang-format: exclude JSON files #2978

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

viktormalik
Copy link
Contributor

Running git clang-format on commits changing JSON files fails with:

Configuration file(s) do(es) not support Json: /home/runner/work/bpftrace/bpftrace/.clang-format
error: `clang-format -lines=1:5 tests/runtime/outputs/delete_wildcard_idx_0.json` failed

See here for an example.

We don't need to run clang-format on JSON files so just ignore them.

Checklist
  • Language changes are updated in man/adoc/bpftrace.adoc and if needed in docs/reference_guide.md
  • User-visible and non-trivial changes updated in CHANGELOG.md
  • The new behaviour is covered by tests

Running `git clang-format` on commits changing JSON files fails with:

    Configuration file(s) do(es) not support Json: /home/runner/work/bpftrace/bpftrace/.clang-format
    error: `clang-format -lines=1:5 tests/runtime/outputs/delete_wildcard_idx_0.json` failed

We don't need to run clang-format on JSON files so just ignore them.
@viktormalik viktormalik merged commit b68f7a6 into bpftrace:master Feb 1, 2024
19 checks passed
@viktormalik viktormalik deleted the clang-format-json branch February 2, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants