Skip to content

add the line numbers to diff#11

Merged
radetsky merged 2 commits into
mainfrom
feature/inline_suggestions2
Feb 13, 2026
Merged

add the line numbers to diff#11
radetsky merged 2 commits into
mainfrom
feature/inline_suggestions2

Conversation

@radetsky

Copy link
Copy Markdown
Owner

No description provided.

@github-actions

github-actions Bot commented Feb 13, 2026

Copy link
Copy Markdown

✅ LLM Code Review

Status: Passed

Category Count
Critical Issues 0
Warnings 1
Suggestions 0

Warnings

  • ⚠️ diff_parser.py:136: Incrementing new_line_num for a removed line; should only increment after added lines.

Generated by LLM Code Review

Comment thread diff_parser.py
current_hunk["context_before"].append(line[1:])
elif current_hunk["added_lines"] or current_hunk["removed_lines"]:
current_hunk["context_after"].append(line[1:])
new_line_num += 1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ potential logic error – added_lines now stores dicts instead of plain strings, which may break code that expects string entries.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LLM Code Review found 2 warning(s).

Comment thread diff_parser.py
current_hunk["context_before"].append(line[1:])
elif current_hunk["added_lines"] or current_hunk["removed_lines"]:
current_hunk["context_after"].append(line[1:])
new_line_num += 1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Incrementing new_line_num for a removed line; should only increment after added lines.

Comment thread diff_parser.py
current_hunk["context_before"].append(line[1:])
elif current_hunk["added_lines"] or current_hunk["removed_lines"]:
current_hunk["context_after"].append(line[1:])
new_line_num += 1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 remove incorrect new_line_num increment for removed lines

Suggested change
new_line_num += 1

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LLM Code Review found 1 warning(s).

@radetsky radetsky merged commit 4d5cb1f into main Feb 13, 2026
1 check passed
@radetsky radetsky deleted the feature/inline_suggestions2 branch February 13, 2026 12:48
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.

1 participant