このgitlabドキュメント(非常に貧弱なドキュメント)に従って、コード品質ステップをセットアップしました: https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html
これでコード品質ステップが実行され、レポートが得られました (完璧です)。
しかし、あまりチェックしていないようです。例を次に示します。
:["Complexity"],"check_name":"method_count","content":{"body":""},"description":"`Admis` has 78 methods (exceeds 20 allowed). Consider refactoring.","fingerprint":"3a31032b9aff6d8b119f276d03a3c391","location":{"path":"src/main/java/nc/unc/importparcoursup/dao/admisDAO/Admis.java","lines":{"begin":14,"end":457}},"other_locations":[],"remediation_points":7000000,"severity":"major","type":"issue","engine_name":"structure"},{
:["Complexity"],"check_name":"file_lines","content":{"body":""},"description":"File `Candidat.java` has 945 lines of code (exceeds 250 allowed). Consider refactoring.","fingerprint":"4f570943e9f89fac8caa554c7e78f993","location":{"path":"src/main/java/nc/unc/importparcoursup/dao/candidatDAO/Candidat.java","lines":{"begin":1,"end":1184}},"other_locations":[],"remediation_points":11208000,"severity":"major","type":"issue","engine_name":"structure"},{
:["Complexity"],"check_name":"method_count","content":{"body":""},"description":"`Candidat` has 232 methods (exceeds 20 allowed). Consider refactoring.","fingerprint":"4dbebf004d9f5f3a1fabf03c43699c01","location":{"path":"src/main/java/nc/unc/importparcoursup/dao/candidatDAO/Candidat.java","lines":{"begin":14,"end":1184}},"other_locations":[],"remediation_points":22400000,"severity":"major","type":"issue","engine_name":"structure"},{
:["Bug Risk"],"check_name":"TODO","description":"TODO found","location":{"lines":{"begin":28,"end":28},"path":"src/main/java/nc/unc/importparcoursup/view/components/CheckComponentAdmis.java"},"type":"issue","engine_name":"fixme","fingerprint":"d8d52d96fc27f9b0a1f9879e7d133345","severity":"minor"}]
- 「method_count と file_lines」: 私のエンティティ クラス用なので、実際のエラーではありません (エンティティ クラスを分割しても意味がありません)。
- 「TODO found」: 実際の問題はOK (ブラボーコードの品質チェック!)
他にも多くの問題があることを私は知っています。コードを sonarcube に入れると、それよりも多くの問題が見つかります)
すべてのエラー (本当のエラー) はどこにありますか?
何か設定が間違っていませんか?
私のプロジェクトのソース: https://gitlab.com/tyvain/parcousup