eclipse plugin 설치
To install the PMD plugin for Eclipse:
- Start Eclipse and open a project
- Select "Help"->"Software Updates"->"Find and Install"
- Click "Next", then click "New remote site"
- Enter "PMD" into the Name field and "http://pmd.sf.net/eclipse" into the URL field
- Click through the rest of the dialog boxes to install the plugin
Package Explorer에서 프로젝트 선택후 마우스 우클릭 PMD -> Check Code with PMD 실행
Violance Overview(우측하단그림)에 소스파일에 대해 체크한 내용들이 출력된다.
그중 하나를 선택(TooFewBranchesForSwitch..) 를 클릭하면
Violance OutLine에 (좌측하단그림)에 그 에러에 대해 하이라이팅되면서 설명을 볼 수 있다.
TooFewBranchesForSwitch에 대한 에러설명은 A switch with less than 3 branches is inefficient, use a if statement instead.
라고 출력된다.
Violance OutLine 에서 마우스 우측버튼을 누르면 Show Detail 항목으로 자세한 에러의 자세한 내역을 알 수 있다.
이 글과 관련있는 글을 자동검색한 결과입니다 [?]