Repository navigation
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Zero-appearance handling and regression assertions src/OneScript.Core/Commons/ValueFormatter.cs, tests/formatting.os |
FormatNumber returns the configured zero appearance only when it is non-null. Tests check the resulting formatting for zero and nonzero values when ЧН and ЧВН are empty. |
Priority:
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix · Severity of issue fixed: Low
Possibly related issues
- Ошибка функции Формат #1798: This issue describes zero not receiving the minimum number of digits when
ЧН=is empty. This PR changes zero formatting and adds a test for emptyЧНandЧВН.
Suggested reviewers: evilbeaver
Merge Risk: 
Minimal · up to e8cc8
-
The change preserves ordinary formatting when ЧН is empty. No actionable merge risk remains after normal checks.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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 @coderabbitai help to get the list of available commands.
|

1 New Issue
0 Fixed Issues
0 Accepted Issues
No data about coverage (37.20% Estimated after merge)
Если в функции
Формат()указано пустое значение параметра 'ЧН=', то форматирование числа 0 или округленной до ноля дроби производится по общим для формата чисел правилам.Дополнены тесты.
Summary by CodeRabbit
"0". Zero and nonzero values now follow the configured number format, including decimal places.