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

Configurable uncrustify executable path for the uncrustify hook #57

Open
skelly37 opened this issue Dec 23, 2022 · 2 comments
Open

Configurable uncrustify executable path for the uncrustify hook #57

skelly37 opened this issue Dec 23, 2022 · 2 comments

Comments

@skelly37
Copy link

skelly37 commented Dec 23, 2022

I have seen in the hook's code that uncrustify is hardcoded as a command. It would be really useful to specify some custom path for the executable, e.g. /home/skelly37/.local/bin/uncrustify, so the end-user can have multiple uncrustify installations or so they do not have to mess with the system's PATH

If I can already do something like this, I would appreciate showing me how to do it.

@skelly37 skelly37 changed the title Configurable uncrustify executable path for the Configurable uncrustify executable path for the uncrustify hook Dec 23, 2022
@bakkiraju
Copy link

also want to know how to provide custom path to uncrustify.cfg that is not necessarily at the root level

@skelly37
Copy link
Author

skelly37 commented Mar 29, 2023

also want to know how to provide custom path to uncrustify.cfg that is not necessarily at the root level

@bakkiraju It is actually handled by the uncrustify itself. You basically pass the path like this

hooks:
      - id: uncrustify
        args: [-c, path/to/uncrustify.cfg]

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

No branches or pull requests

2 participants