feat: add console logs validation with Next.js auto-removal detection#2
Merged
thedaviddias merged 1 commit intomainfrom Aug 22, 2025
Merged
feat: add console logs validation with Next.js auto-removal detection#2thedaviddias merged 1 commit intomainfrom
thedaviddias merged 1 commit intomainfrom
Conversation
da17de2 to
9f0ec6d
Compare
- Add new check-console-logs.js validation script - Detects console.log, console.warn, console.error, etc. statements - Smart Next.js integration: skips validation if removeConsole is enabled - Supports allowed patterns: development conditions, ESLint disables, error logging - Includes comprehensive test fixtures for both violations and allowed usage - Integrates with existing test runner and CI/CD pipeline - Provides helpful suggestions for console.log alternatives This validation helps maintain clean production code by catching debug statements that developers often forget to remove before deployment.
9f0ec6d to
13d74b2
Compare
Contributor
🧪 CodeKeeper Validation Test ReportThis PR modifies validation scripts. Here's the comprehensive test results: ✅ Test Results
🔍 Scripts Modifiedscripts/validation/check-console-logs.js 🛡️ Validation CoverageAll validation scripts have been tested with both positive and negative test cases:
🚀 Ready for MergeAll validation scripts pass their tests and maintain backward compatibility. |
This was referenced Aug 22, 2025
Merged
Closed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This validation helps maintain clean production code by catching debug statements that developers often forget to remove before deployment.