2011-09-19 5 views

답변

0

이 DZone에 가이드로 시작하는 좋은 포인트가 될해야합니다 http://www.dzone.com/links/how_to_write_custom_checkstyle_rules.html?ref=up-details

+0

고맙습니다 +1. 잘 읽었지 만, 내부 클래스에 체크 룰을 두는 법을 배웠다. AST는 내부 클래스에 대한 토큰을 제공하지 않습니다. –

+0

이것은 도움이 될 수 있습니다. - http://sverdianto-blog.blogspot.com/2009/12/checkstyle-custom-inner-class-checker.html – Saket

+0

내가 필요한 것은 무엇이겠습니까? –

3

당신은 com.puppycrawl.tools.checkstyle.api.Check 클래스를 확장하여 확인 CheckStyle 정의를 만들 수 있습니다, 당신은이 프로젝트와 그것을 사용하는 점 CheckStyle을위한 항아리를 만들 수 있습니다. 여기 예를 작성했습니다 : 여기

http://blog.blundellapps.co.uk/create-your-own-checkstyle-check/

및 소스 코드 :

https://github.com/blundell/CreateYourOwnCheckStyleCheck

+0

이 링크는 이제 고장났습니다. – 8bitjunkie

+1

수정 됨, 죄송합니다. 이동했습니다 .co.uk – Blundell

관련 문제