Skip to content

Benchmark PR 7 - #17

Open
celmis-codereviewer wants to merge 1 commit into
cr-base-7from
cr-pr-7
Open

Benchmark PR 7#17
celmis-codereviewer wants to merge 1 commit into
cr-base-7from
cr-pr-7

Conversation

@celmis-codereviewer

Copy link
Copy Markdown

Benchmark reproduction of ai-code-review-evaluation#7

@celmis-codereviewer celmis-codereviewer left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVED — no blocking findings

Full findings and scope are in the review summary comment on this pull request — one persistent comment, updated in place on every run.

celmis-codereviewer

This comment was marked as outdated.

celmis-codereviewer

This comment was marked as outdated.

@celmis-codereviewer celmis-codereviewer left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHANGES REQUESTED — blocking findings

Full findings and scope are in the review summary comment on this pull request — one persistent comment, updated in place on every run.

a {
font-weight: bold;
color: scale-color($primary, $lightness: 30%);
color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%));

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why: On line 291 of app/assets/stylesheets/desktop/topic-post.scss, lightness for primary is set to 70% instead of 30%, which causes topic-post anchor text to render lighter in light theme than intended.

🟠 Incorrect primary lightness value used for topic post link

The original stylesheet specified scale-color($primary, $lightness: 30%) for a tags inside topic post metadata. In the new dark-light-choose expression, the primary lightness value was changed to 70% and secondary lightness to 30%, swapping their values and altering the appearance in light theme.

Suggested change
color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%));
color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%));

agent: defect · rule: defect.incorrect-value · confidence: 0.95

display: inline-block;
margin-top: 5px;
color: scale-color($primary, $lightness: 30%);
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why: On line 522 of app/assets/stylesheets/desktop/user.scss, lightness for primary is set to 50% instead of 30%, causing user name text to render with lightness 50% instead of 30% in light theme.

🟠 Copy-paste defect in desktop user name color lightness

The .name selector previously used scale-color($primary, $lightness: 30%). When converting to dark-light-choose, the values 50% and 50% were copied from .title below it (line 526), changing the light theme lightness of user names from 30% to 50%.

The same defect is at 2 locations: app/assets/stylesheets/desktop/user.scss:522, app/assets/stylesheets/mobile/user.scss:497.

Suggested change
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%));

agent: defect · rule: defect.copy-paste · confidence: 0.95

.custom-message-length {
margin: -10px 0 10px 20px;
color: scale-color($primary, $lightness: 70%);
color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%));

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why: On line 102 of app/assets/stylesheets/mobile/modal.scss, primary and secondary lightness values are swapped, causing .custom-message-length text to render at 30% lightness instead of 70% in light theme.

🟠 Swapped lightness arguments in mobile modal custom message length

The original rule was color: scale-color($primary, $lightness: 70%). In dark-light-choose(...), the $primary lightness parameter was given 30% and $secondary was given 70%, which darkens the message length hint text in light theme.

Suggested change
color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%));
color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%));

agent: defect · rule: defect.incorrect-value · confidence: 0.95

margin-bottom: 4px;
margin-top: 0;
color: scale-color($primary, $lightness: 20%);
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why: On line 182 of app/assets/stylesheets/mobile/topic-post.scss, lightness for primary is set to 50% instead of 20%, causing h3 headings to render lighter in light theme than intended.

🟠 Copy-paste defect in mobile topic post h3 color lightness

The original rule for h3 used scale-color($primary, $lightness: 20%). The conversion copied 50% from h4 (line 190) for both light and dark variants instead of maintaining 20% for $primary (and 80% for $secondary, matching desktop/topic-post.scss).

Suggested change
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
color: dark-light-choose(scale-color($primary, $lightness: 20%), scale-color($secondary, $lightness: 80%));

agent: defect · rule: defect.copy-paste · confidence: 0.95

@celmis-codereviewer

Copy link
Copy Markdown
Author

🤖 Code Review for PR #17

CHANGES REQUESTED — blocking findings

Findings

  • 🟠 Error: 4

Scope

  • Files changed: 32
  • Lines: +115 / -115

Performance

  • Analysis time: 78.0s · agents: structural, cve, security, contract, defect · tokens: 72,336/13,048

Powered by Code Analyzer · context: tree-sitter graph + structural, cve, security, contract, defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants