LinearTapeFileSystem / LinearTapeFileSystem/ltfs

Add a .clang-format

Open
#579 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
352
Forks
110
Avg merge
2h 50m
Merged PRs (30d)
2

Description

To make the coding style more consistent across the repository we should add a .clang-format so when there is new code added to the repo, the .clang-format is used in a github action.

Also, most of the IDEs and text editors have extensions or support formatters, in this case clang-format is ok for this project, so the coding style is uniform.

Contributor guide

Open the contributing guide

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.

Research direction

Start by reviewing the repository's current C formatting and any existing GitHub Actions configuration. Add a .clang-format and use it in a GitHub Action for new code; done means the repository has a consistent formatter configuration and the action checks it.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, github-actions
Domain
ci-cd, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.