Groovy 유형의 공공 멤버에 대한 유형 사양을 적용하십시오
-
15-11-2019 - |
문제
그루비에서 유형 지정은 선택 사항입니다.그러나 메소드 및 속성과 같은 공개 클래스 구성원에 대해 지정하는 데 장점이 있습니다.그것은 좋은 형태의 문서이며,이 그루비 코딩 스타일 기사
이 정책을 Eclipse에서 시행하는 방법이 있으므로 공중 구성원이 명시 적 유형이 누락되었을 때 경고가 나타나도록 경고가 표시되도록하는 방법이 있습니까? checkstyle 또는 Groovy의 findbugs 도구가 훌륭합니다.
해결책
No, there is nothing like this in Groovy-Eclipse at the moment, but this is an interesting idea. You can raise an enhancement request for this:
다른 팁
Just as a comment, the standard tool for groovy static analysis is codenarc. Don't know if the rule you mentioned is there, but it has a lot of options and it is continuously improving.
Regarding your question about eclipse support, I believe there is nothing like that yet.
제휴하지 않습니다 StackOverflow