GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — fix: refuse a quoted "false" for a true/false setting by shenxianpeng · Pull Request #636 · commit-check/commit-check Conversation
|
cchk.toml |
message wip bad msg, before |
after |
|---|---|---|
conventional_commits = false |
exit 0 | exit 0 |
conventional_commits = "false" |
exit 1, "should follow Conventional Commits" | exit 2, Error: [commit] conventional_commits must be true or false, got 'false' |
How: RuleBuilder checks every setting whose default is a boolean (taken from get_default_config(), so new switches are covered) and refuses any other type. CLI flags and CCHK_* variables already go through parse_bool, so only file values can reach the new error. One parametrized test covers a quoted string, an integer and a word in [commit] and [branch].
Sorry, something went wrong.
There was an error while loading. Please reload this page.
conventional_commits = "false" is a non-empty string, so the rule it meant to turn off stayed on and the commit was rejected (exit 1). A boolean setting given anything but true or false is now a config error (exit 2) that names the setting.
There was an error while loading. Please reload this page.
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 2
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #636 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 14 14 Lines 2417 2429 +12 ========================================= + Hits 2417 2429 +12 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Merging this PR will not alter performance
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.