Реализация чтения нового формата поддержки едт#631
Conversation
📝 WalkthroughWalkthroughThis PR updates the ChangesSupport config resolution and dependency bump
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/java/com/github/_1c_syntax/bsl/reader/edt/EDTReader.java (1)
286-293: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueConsider extracting hardcoded path segments to constants.
"src",MDOType.CONFIGURATION.nameEn(),"Configuration.distr", and"ParentConfigurations.bin"are inlined here, similar to patterns already captured byCONFIGURATION_MDO_PATH/CONFIGURATION_MDO_FILE_NAMEabove. Extracting filename constants would reduce duplication and ease future changes to the format names.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/main/java/com/github/_1c_syntax/bsl/reader/edt/EDTReader.java` around lines 286 - 293, The supportConfigPath method in EDTReader still inlines path and filename segments that are already duplicated elsewhere. Replace the hardcoded "src", MDOType.CONFIGURATION.nameEn(), "Configuration.distr", and "ParentConfigurations.bin" values with shared constants alongside CONFIGURATION_MDO_PATH and CONFIGURATION_MDO_FILE_NAME, then use those constants when building the configurationDir and fallback path.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/main/java/com/github/_1c_syntax/bsl/reader/edt/EDTReader.java`:
- Around line 286-293: The supportConfigPath method in EDTReader still inlines
path and filename segments that are already duplicated elsewhere. Replace the
hardcoded "src", MDOType.CONFIGURATION.nameEn(), "Configuration.distr", and
"ParentConfigurations.bin" values with shared constants alongside
CONFIGURATION_MDO_PATH and CONFIGURATION_MDO_FILE_NAME, then use those constants
when building the configurationDir and fallback path.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: cefa6ad8-a32d-4301-b3aa-4429304f3a37
📒 Files selected for processing (2)
build.gradle.ktssrc/main/java/com/github/_1c_syntax/bsl/reader/edt/EDTReader.java
|



Описание
Связанные задачи
Closes
Чеклист
Общие
gradlew precommit)Дополнительно
Summary by CodeRabbit
Bug Fixes
Chores