Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _docs_v7/Style-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Patch releases cannot break backward compatibility.
SU2 is written for C++11, the formatting rules are defined in a `clang-format` file located in the root of the repository.
**New files must follow the formatting rules exactly.**

SU2 uses pre-commit to enforce a consistent formatting. To use, [install pre-commit](https://pre-commit.com/#install) and run `pre-commit install` at the root of the project. You can now force the formatting on all files with `pre-commit run -a`. This will also run all pre-commit hooks before each commit, preventing dirty commits in the repository.

### Files, functions, and variables

Basic recommendations for creating files, functions, and variables:
Expand Down