Skip to content

unclear on exclude and glob #431

Answered by mrexox
lxnagel asked this question in Q&A
Feb 23, 2023 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

So, the config would look like this:

 commands:
  clang-formater:
    root: "source/app/"
    glob: "*.{c,cpp,h}"
    exclude: '.*_evt\.(h|c)'
    run: clang-format-9 --style=file -i {staged_files}

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@mrexox
Comment options

@lxnagel
Comment options

@mrexox
Comment options

@mrexox
Comment options

Answer selected by lxnagel
@lxnagel
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants