Skip to content

ExcessiveMethodLength PMD assessment GeoServer

Gabriel Roldan edited this page Mar 10, 2021 · 1 revision

ExcessiveMethodLength PMD rule GeoServer assessment

Reference codebase: main at d2a619f7/

mvn clean install -Dfmt.skip -Dqa -DskipTests -Prelease --fail-never

Methods with > 500 lines of code

Lines of code Lines Method
718 314-1032 org.geoserver.mapml.MapMLController:mapML(...)
622 87-709 org.geoserver.web.resources.PageResourceBrowser:PageResourceBrowser()
610 235-845 org.geoserver.wfs.GetFeature:run()
505 150-654 org.geoserver.wcs.DefaultWebCoverageService100:getCoverage()

Modules with methods with > 100 lines of code

Module # of violations
gs-wms 47
gs-security-tests 35
gs-wfs 31
gs-app-schema-test 27
gs-wcs2_0 17
gs-wps-core 17
gs-wps-download 14
gs-web-gwc 13
gs-web-wms 10
gs-gwc 9
gs-geofence-server 9
gs-netcdf-out 7
gs-web-wps 6
gs-importer-core 5
gs-sec-cas 5
gs-wcs1_0 5
gs-web-demo 5
gs-restconfig 4
gs-sldservice 4
gs-web-resource 3
gs-mapml 3
gs-importer-web 3
gs-authkey 2
gs-geofence 2
gs-web-wcs 2
gs-inspire 2
gs-monitor-core 2
gs-control-flow 2
gs-sec-ldap 2
gs-csw-api 2
gs-sec-jdbc 2
gs-wcs1_1 2
gs-web-wfs 2
gs-csw-core 2
gs-excel 1
gs-dxf-core 1
gs-web-sec-core
gs-wcs2_0-eo-core 1
gs-imagemap 1
gs-kml 1
gs-wmts-multi-dimensional 1
gs-web-app 1
gs-importer-rest 1