Repository navigation
fix original config files names - #58
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Duplication | 0 |
AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
There was a problem hiding this comment.
Pull Request Overview
This pull request restricts Checkov configuration file discovery to only .yaml and .yml formats, intentionally removing support for .json and .toml extensions. While the implementation aligns with the stated intent and the code satisfies Codacy quality standards, the change is inherently breaking for users relying on the removed formats.
There is currently a lack of verification for these changes; all required test scenarios for both the identification of valid files and the exclusion of deprecated ones are missing from the current submission. Given the breaking nature of this update, documentation or a more detailed PR description explaining the rationale is recommended before merging.
About this PR
- Removing support for .json and .toml configuration formats is a breaking change. This should be explicitly documented or communicated to users, especially since the PR description currently provides no context for this deprecation.
- The PR description is empty. Providing a rationale for the restriction of configuration file types would help ensure the change aligns with the long-term project roadmap.
Test suggestions
- Verify that .checkov.yaml is correctly identified when present in the source directory
- Verify that .checkov.yml is correctly identified when present in the source directory
- Verify that .checkov.json is no longer identified as a valid configuration file
- Verify that .checkov.toml is no longer identified as a valid configuration file
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that .checkov.yaml is correctly identified when present in the source directory
2. Verify that .checkov.yml is correctly identified when present in the source directory
3. Verify that .checkov.json is no longer identified as a valid configuration file
4. Verify that .checkov.toml is no longer identified as a valid configuration file
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
No description provided.