JetBrains-Research / JetBrains-Research/RefactorInsight

Line alignment makes hard to understand Extract Variable refactoring

Open
#120 5 comments 0 reactions 1 assignee Claimed by @onewhl View on GitHub
Dominant language
Java
Stars
110
Forks
12
PR merge metrics
No merged PRs in 30d

Description

https://github.com/jodavimehran/code-tracker/commit/daeaccb67f2f1510ae15e45727ed1347d9368bdb

Lines R431 and R432 are new and correspond to the extracted variables `fragment1` and `fragment2`
It would help to align the code as follows to make the visualization more clear

L428 -- R430
L429 -- R433
L433 -- R437

![Screenshot from 2023-03-09 12-46-19](https://user-images.githubusercontent.com/1483516/224113225-b771efd6-82c1-46dd-9413-5a401a1ce2d9.png)

Overall, the diff does not show properly the added code, shown in green below

![Screenshot from 2023-03-09 13-06-47](https://user-images.githubusercontent.com/1483516/224116611-93a6b858-1121-4b53-943b-238833e37b8e.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.