Skip to content

Use uncrustify for formatting #10

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

Open
wants to merge 3 commits into
base: rfc/pre-commit
Choose a base branch
from

Conversation

milesfrain
Copy link

This doesn't apply formatting rules to all file types (e.g. .md, etc).

I also found this stalls in the portable directory when trying to apply this to everything with:

pre-commit run --all-files

There might be ways to avoid duplicating the formatting config file from the tools directory. https://github.com/FreeRTOS/FreeRTOS/blob/master/tools/uncrustify.cfg

sudo apt-get install spell
sudo apt-get install util-linux
sudo apt install spell util-linux uncrustify
Copy link
Author

Choose a reason for hiding this comment

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

This was a lazy attempt to make uncrustify available to the other CI steps, which didn't work. Determining the right way to do this will require more digging, which I'm not going to get around to any time soon.

Copy link
Owner

@paulbartell paulbartell Mar 23, 2021

Choose a reason for hiding this comment

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

Each workflow file gets run in a separate container. You probably meant to add this to .github/workflows/pre-commit.yml.

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.

2 participants