fix plugin properties#421
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
ПрохождениеДобавлены ограничения конфигурационных областей (.onlyOnConfigScopes(...)) к определениям PropertyDefinition в двух Java-файлах: диагностическая настройка ограничена APP и PROJECT; остальные свойства — преимущественно PROJECT; в Reporter добавлен импорт Изменения
Оценка сложности проверки кода🎯 2 (Simple) | ⏱️ ~10 minutes Стихотворение
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/main/java/com/github/_1c_syntax/bsl/sonar/BSLCommunityProperties.java (1)
112-117:⚠️ Potential issue | 🟡 MinorДобавьте
onlyOnConfigScopes(PROJECT)дляLANG_SERVER_SUBSYSTEM_FILTER_EXCLUDE_KEY.Сейчас
excludeостался без ограничения scope, в отличие от парногоinclude(Line 106-111). Это создаёт несогласованность в настройках фильтра подсистем.Предлагаемый патч
PropertyDefinitionUtils.newPropertyBuilderBSL(6, LANG_SERVER_SUBSYSTEM_FILTER_EXCLUDE_KEY, "subsystemfilter.exclude", "") .multiValues(true) + .onlyOnConfigScopes(PropertyDefinition.ConfigScope.PROJECT) .build(),🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/main/java/com/github/_1c_syntax/bsl/sonar/BSLCommunityProperties.java` around lines 112 - 117, The LANG_SERVER_SUBSYSTEM_FILTER_EXCLUDE_KEY property is missing a scope restriction and should match the include counterpart; update the PropertyDefinitionUtils.newPropertyBuilderBSL(...) call that builds LANG_SERVER_SUBSYSTEM_FILTER_EXCLUDE_KEY to add onlyOnConfigScopes(PROJECT) into the builder chain (i.e., call .multiValues(true).onlyOnConfigScopes(PROJECT).build()) so the exclude setting is limited to project config like the include setting.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@src/main/java/com/github/_1c_syntax/bsl/sonar/BSLCommunityProperties.java`:
- Around line 112-117: The LANG_SERVER_SUBSYSTEM_FILTER_EXCLUDE_KEY property is
missing a scope restriction and should match the include counterpart; update the
PropertyDefinitionUtils.newPropertyBuilderBSL(...) call that builds
LANG_SERVER_SUBSYSTEM_FILTER_EXCLUDE_KEY to add onlyOnConfigScopes(PROJECT) into
the builder chain (i.e., call
.multiValues(true).onlyOnConfigScopes(PROJECT).build()) so the exclude setting
is limited to project config like the include setting.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 09e97871-6d77-450d-b028-7d55e7eb8ab0
📒 Files selected for processing (2)
src/main/java/com/github/_1c_syntax/bsl/sonar/BSLCommunityProperties.javasrc/main/java/com/github/_1c_syntax/bsl/sonar/ext_issues/Reporter.java
|



No description provided.