formatter가 변경된 PR을 분석해주는 logicdiff 도구 소개.
PR의 변경 사항 중 대부분이 재형식화로 인해 발생하곤 합니다. 기존의 git diff -w는 스페이싱 변경 내용을 무시하지만, 라인 기반으로 작동하여 재형식화까지 처리하지 못합니다. 이에 대한 해결책으로 logicdiff를 개발하였으며, 이 도구는 공백 및 재흐름을 고려하여 실질적인 변경 사항만 판별합니다. 간단하게 설치 후 사용할 수 있으며, CI에서 포맷만 변경된 PR을 쉽게 확인할 수 있습니다.
Introduction of logicdiff, a tool that analyzes changed PRs caused by formatters.
Often, pull requests show many changed lines due to formatting changes that include no actual modifications. While git diff -w can ignore spacing changes, it fails to address reflow issues. To tackle this, I created logicdiff, which accommodates whitespace and reflow to determine if a change is substantive or purely formatting. It's easy to install and can be integrated into CI to detect formatting-only changes in PRs.