Skip to content

Add a pre-commit hook to help enforcing code formatting

Laurent Petre requested to merge feature/format-pre-commit-hook into develop

Description

This MR adds a Git pre-commit hook to the repository as well as the instructions to install it. This hook should help to automatically ensure the files and code formatting as the developments go.

Related Issue

Fix for #22 (closed).

How Has This Been Tested?

The changed files are properly formatted before committing.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
Edited by Laurent Petre

Merge request reports

Loading