KeerillZhirkovich / videoLib

0 stars 2 forks source link

[lab1] Проверять Java Code Convention #9

Open SergeiSaraev opened 6 years ago

SergeiSaraev commented 6 years ago

Java Code Convention: http://www.oracle.com/technetwork/java/codeconvtoc-136057.html

Checkstyle Sun Rules: http://checkstyle.sourceforge.net/sun_style.html (1999 год) Google Rules: http://checkstyle.sourceforge.net/google_style.html (2017 год) По мне возьмите лучше от Google.

PMD Best practice: http://pmd.sourceforge.net/pmd-4.3/bestpractices.html Basic rules: http://pmd.sourceforge.net/pmd-4.3/rules/basic.html Design rules: http://pmd.sourceforge.net/pmd-4.3/rules/design.html Controversial rules: http://pmd.sourceforge.net/pmd-4.3/rules/controversial.html Возьмите Basic, Design и Controversial.

Findbugs https://gleclaire.github.io/findbugs-maven-plugin/ Берите настройки по умолчанию.

Вы должны собирать сайты с метриками при каждой сборке. И исправить все ошибки.

SergeiSaraev commented 6 years ago

PMD и Findbugs опциональны. Настройте сбор метрик по команде mvn checkstyle:checkstyle.