-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add documentation scripts and update contribution guidelines
- Added new npm scripts for documentation: - `docs:check`: Validates markdown documentation and ensures compliance. - `docs:fix`: Automatically fixes formatting issues in documentation. - `docs:update`: Updates rules documentation automatically. - Improved the "Contribution Process" section to reflect the use of documentation-related scripts.
- Loading branch information
1 parent
1fdbd1f
commit 9931320
Showing
8 changed files
with
441 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,57 @@ | ||
# Rule name | ||
# {{Capital Case ruleName}} Rule | ||
|
||
Short rule description. | ||
A concise and clear description of what this rule does and why it's important. | ||
|
||
- **Rule Name:** | ||
- **Type:** | ||
- **Category:** | ||
- **Severity:** | ||
- **Fixable:** | ||
- **Rule Name:** {{kebabCase ruleName}} | ||
- **Type:** 'warning' | 'error' | ||
- **Category:** 'style' | 'security' | 'best-practice' | 'performance' | ||
- **Severity:** 'info' | 'minor' | 'major' | 'critical' | ||
- **Fixable:** true | false | ||
|
||
## Problematic Code Example | ||
|
||
```yaml | ||
|
||
# Provide an example | ||
``` | ||
|
||
## Correct Code Example | ||
|
||
```yaml | ||
|
||
# Provide an example | ||
``` | ||
|
||
## Rule Details and Rationale | ||
|
||
Long rule description, why you should use it | ||
Provide a detailed explanation of the rationale for this rule, including: | ||
|
||
- **Why this rule exists:** Explain the problems it aims to solve. | ||
- **How it works:** Describe its scope and logic. | ||
- **Rationale:** Clarify the benefit or importance of following the rule. | ||
|
||
## Options | ||
|
||
> OPTIONAL: If this section is not applicable, please remove it. | ||
## Options /OPTIONAL/ | ||
If this rule accepts any configuration options, explain them here. | ||
|
||
## Known Limitations /OPTIONAL/ | ||
## Known Limitations | ||
|
||
## When Not To Use It /OPTIONAL/ | ||
> OPTIONAL: If this section is not applicable, please remove it. | ||
Document any edge cases or situations where this rule might not work as expected. | ||
|
||
## When Not To Use It | ||
|
||
> OPTIONAL: If this section is not applicable, please remove it. | ||
Explain scenarios where disabling this rule might make sense or be necessary. | ||
|
||
## Version | ||
|
||
This rule was introduced in [v1.0.0](https://github.com/zavoloklom/docker-compose-linter/releases). | ||
This rule was introduced in [v{{nextMajorVersion}}](https://github.com/zavoloklom/docker-compose-linter/releases). | ||
|
||
## References | ||
|
||
Provide all necessary references for this rule. | ||
|
||
- [Reference link](https://example.com) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.