소스 코드에 사용할 수 있는 대규모 리팩터링 생태계다. 엔지니어링 조직 전체에서 기술적 부
채를 제거하도록 설계되었다. 리라이트는 다음을 포함한 다양한 워크플로와 결합한다.
●
그레이들이나 메이븐 빌드 태스크로 코드를 검색하고 교정한다.
●
전사적 수준에서 코드를 검색하고 임의의 복잡도를 지닌 패턴을 식별한다.
●
보안 취약점을 개선하고, 지원 종료
API
의 사용처를 제거하고, 제반 기술 전환(예:
Junit
어썰트
asserts
를
AssertJ
로) 작업 등에 대량 풀리퀘스트
pull
-
request
를 발행한다.
●
전사적으로 대량의 깃 커밋을 생성한다.
오픈리라이트는 소스 코드의 구조와 형식을 바탕으로 추상 구문 트리
abstract
syntax
tree
(
AST
)를 가
공한다. 이
AST
는 원본 형식과 함께 출력되어 코드 재구성 작업에 활용된다. 리라이트는
AST
를 고차원적으로 검색하고 리팩터링하는 기능을 제공하며 이 기능에 대한 유닛 테스트도 함께
제공한다.
리라이트
AST
가 출처 체인 구축에 기여하는 핵심적인 기능은 다음 두 가지다.
타입 속성
각
AST
엘리먼트는 타입 정보를 담는다. 예를 들어 소스 코드에서
myField
를 참조한다면
Rewrite
AST
의
myField
엘리먼트는
myField
의 타입 정보를 담는다. 타입 정의가 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.