Standardize code style & formatting throughout repository #2809
Labels
enhancement
New feature or request
triaged
Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
This issue is intended to act as a tracking issue for an effort to standardize code style and formatting across the Security repository.
As things stand, there is a mix of styles being used in different parts of the repository. This can lead to confusion on the reader's behalf and also makes PRs challenging to review. If a reviewer does not check the "hide whitespace" option when reviewing, code changes can show as almost entirely made of indentation adjustments based on the settings of the contributor's IDE.
In order to correct this trend and provide further support to contributors, we should create a standardized stye policy which outlines the expected formatting of changes and provides a basic settings file users can copy to their IDE configurations.
Because standardizing the format of the code is such as large task this issue will be used to track incremental changes made to the PR all implementing the preferred style. Only after merging the first incremental PR will subsequent PRs be created since any changes to the style should be made to all code not just a given subsection.
The proposed guidelines planned to be introduced are:
spotlessApply
policy as JobScheduler and other repositories as requested by @cwperksparentheses
Style Categories:
Style PRs:
This is the branch with all the changes: https://github.com/scrawfor99/security/tree/formattingGuidelines
The text was updated successfully, but these errors were encountered: