Please rerun `pre-commit run -a`

Open Beginner friendly
#21,399 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
c
Domain
build-system

Research direction

The whitespace hook is configured in .pre-commit-config.yaml at the repository root, so start there to see which hooks are enabled. Install pre-commit, run pre-commit run -a locally, and let it rewrite the affected C sources and other files. Done means the command exits cleanly on a fresh checkout and the resulting diff contains only whitespace or formatting changes. Check with maintainers first, since the change touches many files and could conflict with in-flight work.

Written by the indexing model from the issue text.

Description

Arch: all Arch: arm Area: Build system OS: Linux Type: Bug
Description / Steps to reproduce the issue

This repo has .pre-commit-config.yaml that enabled whitespace fixing (good idea). But the sources are not formatted with. pre-commit fails right now, and it is difficult to use it locally.

Please rerun pre-commit run -a so all the existing error are fixed.

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Arch Linux

NuttX Version

master

Issue Architecture

[Arch: arm], [Arch: all]

Issue Area

[Area: Build System]

Host information

No response

Verification
  • I have verified before submitting the report.
Dominant language
C
Stars
4.1k
Forks
1.8k
Avg merge
1d 3h
Merged PRs (30d)
833

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/nuttx

All issues in apache/nuttx

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.