Conversation
BREAKING CHANGE: The `ignoreFile` configuration no longer defaults to '.docsignore'. To continue using .docsignore, explicitly set `ignoreFile: '.docsignore'` in your configuration file (.coderefrc.json or package.json). This change makes the ignore file behavior explicit rather than implicit, applying ignore patterns only when intentionally configured. All documentation examples now use `.gitignore` instead of `.docsignore` to reflect this generic approach. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
feat!: remove default .docsignore value from configuration
Fixed an issue where CODE_REF comments inside unclosed markdown code blocks were not being excluded from validation. The getCodeBlockRanges() function now detects unclosed code blocks (starting ``` without closing ```) and treats them as code blocks from the start position to the end of the file. Changes: - Enhanced getCodeBlockRanges() to detect and handle unclosed code blocks - Added comprehensive test cases for code block exclusion scenarios: - CODE_REF in normal code blocks - CODE_REF in inline code - CODE_REF in unclosed code blocks - Multiple code blocks with mixed CODE_REFs This resolves the issue where documentation examples of CODE_REF syntax within code blocks were incorrectly validated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Improved the getCodeBlockRanges() function to use a more robust odd/even pairing approach instead of the previous implementation that had potential issues with overlapping ranges. Previous implementation issues: - Closing backticks could be incorrectly treated as unclosed blocks - Range check did not account for the 3-character length of triple backticks - Could create overlapping or duplicate ranges New implementation: - Collects all triple backtick positions in order - Pairs them sequentially: indices 0-1, 2-3, 4-5, etc. - If odd number of backticks exists, the last one starts an unclosed block - Cleaner logic with fewer edge cases All existing tests pass (372 tests). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…ck-comments fix: exclude CODE_REF comments in unclosed code blocks from validation
Pull Request ReviewSummaryThis PR changes the default ignore file from ✅ Strengths
|
Fixed an issue where 4 or more backticks (````) used to wrap markdown code blocks were not properly handled, causing CODE_REF comments inside these blocks to be incorrectly validated. The previous implementation only detected triple backticks (```), which matched the first 3 characters of longer sequences like ````, leading to incorrect pairing and false positives. New implementation: - Detects all backtick sequences of 3 or more characters - Records both position and length of each sequence - Pairs sequences only if they have matching lengths - Supports arbitrary nesting levels (````, ``````, etc.) Test cases added: - 4-backtick code blocks containing 3-backtick blocks - 5-backtick code blocks with nested structures - Unclosed blocks with variable-length sequences All tests pass (17 test suites, 374 tests). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…ck-comments Fix/exclude validation in code block comments
Code Review for PR #26: Test ReleaseI've reviewed this PR and here's my comprehensive feedback: ✅ Strengths
🐛 Potential Issues
🔒 Security ConcernsNo security issues identified. The path traversal protection at src/core/validate.ts:395-402 remains intact. 📊 Performance Concerns
📝 Code Quality
🧪 Test CoverageCoverage appears good for the new functionality:
Potential gaps:
📚 Documentation
🔄 Breaking ChangesConfig default change (src/config.ts:80-84):
📋 RecommendationsHigh Priority:
Medium Priority: Low Priority: ✨ Overall AssessmentThis is a solid PR with well-thought-out logic and good test coverage. The code block detection algorithm is sophisticated and handles complex nesting scenarios well. The main concerns are around performance optimization and a few edge cases that should be tested. The breaking change is well-documented but should be considered for versioning. Status: ✅ Approved with suggestions for improvement |
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 0.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.