Keywords for commit messages
This section provides a list of keywords to include in commits comments. These keywords help organize and identify different types of contributions for better readability and maintainability.
Keywords
1. doc:
- Purpose: For documentation-related comments or detailed explanations.
- Example:
2. feat:
- Purpose: To mark features or specific functionalities.
- Example:
3. fix:
- Purpose: To identify bug fixes or adjustments.
- Example:
4. refactor:
- Purpose: For restructuring code without changing its functionality.
- Example:
5. test:
- Purpose: For comments related to tests or test cases.
- Example:
6. perf:
- Purpose: To highlight performance improvements or optimizations.
- Example:
7. todo:
- Purpose: To indicate pending tasks or features.
- Example:
8. hack:
- Purpose: To identify temporary or workaround solutions.
- Example:
9. warn:
- Purpose: For warnings about potential issues or limitations.
- Example:
10. debug:
- Purpose: For debugging or test-specific comments.
- Example:
11. chore:
- Purpose: For minor maintenance or cleaning tasks.
- Example:
12. deprecated:
- Purpose: To mark features or methods that are no longer in use.
- Example:
Best Practices
- Consistency:
- Always use these keywords in lowercase to maintain clarity.
- Combination:
- Combine keywords if necessary to clarify intent. For example: