Starting with #2216, we have some checkstyle-rules which have exceptions defined for specific files/modules. We want to get rid of those exceptions one by one. So this issue tracks the progress of correctly formatting the code and removing those exceptions in checkstyle-suppressions.xml.
I plan on doing a good chunk of this work myself, but obviously, there is a lot to do. Both, fixing the code and reviewing all the changes will take quite some time. In case this helps anyone, my workflow for this is roughly like this:
My workflow for working on this
- Temporarily set `` and `` to `false` in `pom.xml`
- Remove one or multiple line from `checkstyle-suppressions.xml`
- *Note*: if you remove one line for module `foo`, you should probably remove all lines for that module, including other style rules. If you are working on some files anyway, it's probably best to fix all issues at once.
- Run `mvn checkstyle:check 2>&1 | grep "\[ERROR\]"`
- Use the output of that command to somehow quickly open files in your editor. For example, I use Sublime Text and I would process that output such that I get a file with lines in the format `filename.java:linenumber`. Then, I can do the following:
- ctrl+x to cut the current line
- ctrl+p & ctrl+v & enter to navigate to that file and to the specific line number
- Fix the code
- ctrl+s & ctrl+w & repeat
Modules
If modules get fixed, this list should be updated (I imagine enough people can edit this comment, so that should be fine). The numbers in parenthesis mean count the different violations:
Starting with #2216, we have some checkstyle-rules which have exceptions defined for specific files/modules. We want to get rid of those exceptions one by one. So this issue tracks the progress of correctly formatting the code and removing those exceptions in
checkstyle-suppressions.xml
.I plan on doing a good chunk of this work myself, but obviously, there is a lot to do. Both, fixing the code and reviewing all the changes will take quite some time. In case this helps anyone, my workflow for this is roughly like this:
My workflow for working on this
- Temporarily set `Modules
If modules get fixed, this list should be updated (I imagine enough people can edit this comment, so that should be fine). The numbers in parenthesis mean count the different violations:
admin-ui-index
(0, 0, 3) #2424admin-ui
(501, 175, 425)adopter-statistics-impl
(0, 5) #2274animate-impl
(0, 0, 7) #2424annotation-impl
(41, 16, 7) #2701asset-manager-api
(46, 0, 0) #2419asset-manager-impl
(113, 16, 70) #2419asset-manager-storage-aws
(14, 8, 10) #2419asset-manager-storage-fs
(0, 3, 10) #2419asset-manager-workflowoperation
(0, 4, 0) #2419authorization-manager
(31, 10) #2270authorization-xacml
(5, 2, 10) #2666caption-impl
(19, 34, 0)capture-admin-service-impl
(7, 23, 70)comments-workflowoperation
(11, 0, 0) #2424common-jpa-impl
(33, 16, 34) #2701common
(104, 497, 128)composer-ffmpeg
(279, 139, 50)composer-service-api
(15, 16, 0)composer-service-remote
(5, 4, 4)composer-workflowoperation
(55, 99, 44)conductor
(0, 5) #2274cover-image-impl
(11, 6) #2274cover-image-workflowoperation
(0, 21) #2274crop-api
(0, 2) #2274crop-ffmpeg
(6, 0) #2274crop-workflowoperation
(2, 0) #2274db
(0, 9) #2273dictionary-hunspell
#2273dictionary-regexp
#2273distribution-service-api
(3, 0) #2340distribution-service-aws-s3-remote
#2273distribution-service-aws-s3
(38, 15) #2340distribution-service-download
(9, 15) #2340distribution-service-streaming-remote
#2273distribution-service-streaming-wowza
(22, 16) #2340distribution-workflowoperation
(35, 25) #2340dublincore
(42, 85, 26)email-template-service-impl
(4, 0, 0) #2424engage-theodul-core
(9, 0, 333) #2509engage-theodul-plugin-controls
(0, 0, 4) #2509engage-theodul-plugin-custom-matomo
(0, 0, 4) #2509engage-theodul-plugin-custom-mhConnection
(0, 0, 4) #2509engage-theodul-plugin-custom-notifications
(0, 0, 4) #2509engage-theodul-plugin-custom-usertracking
(0, 0, 4) #2509engage-theodul-plugin-description
(0, 0, 4) #2509engage-theodul-plugin-tab-description
(0, 0, 4) #2509engage-theodul-plugin-tab-shortcuts
(0, 0, 4) #2509engage-theodul-plugin-tab-slidetext
(0, 0, 4) #2509engage-theodul-plugin-timeline-statistics
(0, 0, 4) #2509engage-theodul-plugin-video-videojs
(0, 0, 4) #2509engage-ui
(0, 0, 7) #2424event-comment
(13, 29, 0) #2701execute-impl
(11, 19, 0)execute-remote
(5, 5, 0)execute-workflowoperation
(9, 18, 5)external-api
(314, 74, 64)fileupload
(21, 0, 43) #2701hello-world-impl
(0, 0, 8) #2424index-service
(73, 188, 23)ingest-download-service-impl
(6, 6, 0)ingest-download-service-workflowoperation
(2, 0, 0)ingest-service-impl
(167, 32, 82)inspection-service-ffmpeg
(16, 12, 15)inspection-service-remote
(0, 0, 4) #2424inspection-workflowoperation
(0, 3, 0) #2424kernel
(33, 53, 48)list-providers-service
(0, 13, 0) #2424live-schedule-impl
(22, 35, 0) #2666logging-workflowoperation
(0, 0, 4) #2424lti-service-impl
(25, 9, 0) #2420lti
(12, 0, 0) #2420message-broker-api
(3, 10, 0) #2701message-broker-impl
(0, 2, 22) #2701metadata-api
(0, 6, 0) #2424metadata
(0, 4, 4) #2424metrics-exporter
(0, 0, 4) #2424mpeg7
(33, 66, 0)notification-workflowoperation
(4, 2, 5) #2509oaipmh-persistence
(5, 17, 9)oaipmh
(19, 34, 2)presets
(4, 0, 0) #2424publication-service-api
(4, 0) #2338publication-service-configurable
#2338publication-service-oaipmh-remote
(4, 0) #2338publication-service-oaipmh
(40, 38) #2338publication-service-youtube-v3
(30, 4) #2338runtime-info
(18, 0, 4) #2666scheduler-api
(5, 0) #2273scheduler-impl
(213, 64, 29)scheduler-remote
(2, 10, 0)schema
(46, 53, 0)search-service-api
(2, 9, 0) #2506search-service-impl
(43, 190, 279) #2506search-service-remote
(2, 6, 0) #2506search
(0, 47, 0) #2506security-aai
(0, 8, 4) #2509security-shibboleth
(0, 2, 0) #2424series-service-api
(2, 0, 0) #2423series-service-impl
(65, 14, 17) #2423series-service-remote
(16, 19, 4) #2423serviceregistry
(133, 109, 27)shared-filesystem-utils
(2, 0, 0) #2424silencedetection-impl
(2, 2, 5) #2509smil-api
#2273smil-impl
(37, 0, 9) #2666smil-workflowoperation
(0, 1, 0) #2424sox-impl
(10, 21, 0) #2525sox-workflowoperation
(2, 9, 0) #2525static-file-service-api
(15, 2, 0) #2525static-file-service-impl
(0, 3, 4) #2525static
(0, 3, 0) #2424statistics-export-service-impl
(21, 0, 4) #2666statistics-provider-influx
(5, 0, 0) #2666statistics-service-api
(3, 0, 20) #2666statistics-service-impl
(9, 0, 0) #2666statistics-service-remote
(4, 0, 0) #2666termination-state-aws
(20, 0, 0) #2666termination-state-impl
(5, 0, 0) #2666textanalyzer-impl
(4, 4) #2273textanalyzer-workflowoperation
(3, 12, 0) #2509textextractor-tesseract
(0, 3) #2273themes-workflowoperation
(3, 2, 0) #2424themes
(2, 7, 0) #2424timelinepreviews-api
(2, 0, 0) #2509timelinepreviews-ffmpeg
(2, 7, 11) #2509timelinepreviews-workflowoperation
(5, 0, 14) #2509transcription-service-amberscript
(4, 0, 20) #2700transcription-service-google-speech-impl
(27, 0, 7) #2700transcription-service-ibm-watson-impl
(24, 22, 0) #2700transcription-service-persistence
(12, 0, 7) #2700transcription-service-workflowoperation
(16, 14, 15) #2700urlsigning-common
(22, 0, 0) #2525urlsigning-service-api
(2, 0, 0) #2424urlsigning-service-impl
(48, 4, 2) #2525urlsigning-verifier-service-impl
(16, 0, 0) #2525user-interface-configuration
(3, 2, 0) #2509userdirectory-brightspace
(7, 0, 0) #2892userdirectory-canvas
(8, 0, 263) #2892userdirectory-ldap
(1, 31, 0) #2892userdirectory-moodle
(3, 30, 0) #2892userdirectory-sakai
(5, 6, 102) #2892userdirectory
(60, 74, 113) #2892usertracking-impl
(74, 28, 0)videoeditor-ffmpeg-impl
(5, 9, 11) #2525videoeditor-workflowoperation
(9, 7, 0) #2525videogrid-service-impl
(3, 3, 0) #2525videogrid-workflowoperation
(14, 16, 3) #2525videosegmenter-ffmpeg
(8, 5, 26) #2509waveform-ffmpeg
(5, 2, 11) #2509waveform-remote
(2, 0, 0) #2424waveform-workflowoperation
(10, 0, 9) #2509workflow-condition-parser
(5, 5, 0)workflow-service-api
(12, 82, 0)workflow-service-impl
(106, 49, 13)workflow-service-remote
(5, 25, 4)workflow-workflowoperation
(24, 18, 15)working-file-repository-service-impl
(55, 29, 8)working-file-repository-service-remote
(0, 4, 4)workspace-impl
(6, 9, 9) #2509