Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop-clean-c99'. Close #453.
**Description** In our effort to comply with our NASA Class D requirements, our code must abide by a style guide. In particular, the C99 library does not conform to our rules, so it should be amended. Full compliance is hard to establish, especially for more opinionated rules pertaining to simplicity. Further issues may need to address style conformance concerns. **Type** - Management: conformance with new requirement. **Additional context** None. **Requester** - Ivan Perez **Method to check presence of bug** Not applicable (not a bug). **Expected result** All Copilot code conforms to the following rules: - All comments are line comments except for compiler options, language pragmas, and annotations/warnings/deprecations. - Contiguous block comments are alphabetized, given one per line, and horizontally aligned. - Never leave a white spaces between a value and a comma. - Do not include TODOs or FIXMES. - A where keyword always stands alone on a line (except for class/instance/data/module declarations). - No more than one empty line between definitions. - No horizontal lines to separate sections in code. - No trailing spaces. - All exports should be explicit. - All imports should be explicit. - Imports should be grouped, sorted, alphabetized, and aligned. - The standard indendation is 2 spaces. - Always leave a space after a comma. - Do not require unnecessary pragmas. - Do not add unnecessary imports. - Do not include redundant brackets, except where the brackets are meant to communicate a conceptual unit. - Do not include redundant `$`. - Whenever possible, prefer simpler solutions and expressions. - Use haddock formatting to capture copyright notices. - Prefer guards to multiple nested if-then-else. - Variable names should be camelCase. - Code should compile without warnings. **Solution implemented** Make all code comply with the rules above. **Further notes** None.
- Loading branch information