fix(#4949): enabled object-has-data lint#4972
fix(#4949): enabled object-has-data lint#4972eshabakhov wants to merge 2 commits intoobjectionary:masterfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughRemoved an Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
🚀 Performance AnalysisAll benchmarks are within the acceptable range. No critical degradation detected (threshold is 100%). Please refer to the detailed report for more information. Click to see the detailed report
✅ Performance gain: |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
eo-runtime/src/test/java/org/eolang/PhDefaultTest.java (1)
404-410: Test description is now misleading.The assertion message at line 406 says
"forma of 'number' is the full name of the 'number' object", but"Φ.number"is no longer the "full name" (which would include the package path likeorg.eolang). Consider updating the description to accurately reflect the new format.📝 Suggested description update
`@Test` void rendersFormaProperly() { MatcherAssert.assertThat( - "forma of 'number' is the full name of the 'number' object", + "forma of 'number' is the global prefix with the object name", new Data.ToPhi(42L).forma(), Matchers.equalTo("Φ.number") ); }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@eo-runtime/src/test/java/org/eolang/PhDefaultTest.java` around lines 404 - 410, Update the test description in PhDefaultTest.rendersFormaProperly to accurately reflect the current forma format (short name "Φ.number" rather than a fully-qualified name); change the assertion message string passed to MatcherAssert.assertThat to something like "forma of 'number' is the short/name representation" or "forma of 'number' is 'Φ.number'" so it no longer claims it is the full name produced by Data.ToPhi.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@eo-runtime/src/test/java/org/eolang/PhDefaultTest.java`:
- Around line 404-410: Update the test description in
PhDefaultTest.rendersFormaProperly to accurately reflect the current forma
format (short name "Φ.number" rather than a fully-qualified name); change the
assertion message string passed to MatcherAssert.assertThat to something like
"forma of 'number' is the short/name representation" or "forma of 'number' is
'Φ.number'" so it no longer claims it is the full name produced by Data.ToPhi.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: a062486a-3dbf-4c83-9f5b-3480180a616f
📒 Files selected for processing (3)
eo-runtime/pom.xmleo-runtime/src/main/java/org/eolang/PhDefault.javaeo-runtime/src/test/java/org/eolang/PhDefaultTest.java
💤 Files with no reviewable changes (1)
- eo-runtime/pom.xml
|
@yegor256 idk it's my fault or not. Qulice does not produce any errors when running locally. I checked object-has-data linter. Not this https://github.com/objectionary/eo/actions/runs/23890624621/job/69662894113?pr=4972#step:5:9197 |
Summary
This PR solves #4949
Changes
object-has-datalintSummary by CodeRabbit
Chores
Refactor
Tests