-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Milestone
Description
related to #54 / #82, albeit it deserves a dedicated pull request to unbundle it from the addition of pre-commit
rationale
currently, CONTRIBUTING.md is insufficiently precise in some ways and the repository's existing .clang-format file is not used and does not match the conventions within CONTRIBUTING.md exactly. clarifying the style guidelines and setting up .clang-format would help maintain a consistent style across the codebase and potentially make it more welcoming to newcomers
considerations
- how is existing code formatted in relation to what is documented in
CONTRIBUTING.md? - how should the codified style be imposed upon existing code?
- should we incrementally reformat code when it is touched, or should we reformat it all in one go?
- should we add a precommit hook?
- this would necessitate reformatting it all in one go, unless some work was done to detect modified files within the hook
- or should we use
pre-commitinstead, as described in Addpre-commitconfiguration + GitHub Actions #54?
- what additional linting tools should we use and how/when should they be applied?
initial suggestions
- drop Add
pre-commitconfiguration + GitHub Actions #54 & Precommit addition to the repo #82 for now - open a new pull request deleting the existing
.clang-formatfile in.github/workflows1 since it isn't used and remove the dead code within the rootCMakeLists.txt2 that references it - create a new
.clang-formatat the repository's root which takes into account existing style conventions + the stuff withinCONTRIBUTING.md, with a priority toward the latter, updatingCONTRIBUTING.mdaccordingly - do not apply the styling to existing code until a solution is agreed upon
Footnotes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested