Skip to content

fix: correct file-contains check logic (was inverted)#37

Merged
sonesuke merged 2 commits intomainfrom
fix/file-contains-inverted-logic
Apr 4, 2026
Merged

fix: correct file-contains check logic (was inverted)#37
sonesuke merged 2 commits intomainfrom
fix/file-contains-inverted-logic

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

@sonesuke sonesuke commented Apr 4, 2026

Summary

  • file-contains check was passing false to check_file_content, causing it to verify the string is NOT present instead of verifying it IS
  • Changed the contains parameter from false to true

Test plan

  • All 27 existing tests pass
  • cargo clippy clean

🤖 Generated with Claude Code

claude and others added 2 commits April 4, 2026 10:23
The `contains` parameter was passed as `false`, causing file-contains
to verify that the string is NOT present instead of verifying it IS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Verify that file-contains correctly checks string presence (not absence)
through the full evaluate_check dispatch path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonesuke sonesuke merged commit 2c4154d into main Apr 4, 2026
3 checks passed
@sonesuke sonesuke deleted the fix/file-contains-inverted-logic branch April 4, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants