I just noticed that our architecture tests currently do not cover static imports and, therefore, are missing at least one dependency that we want to forbid.
The class org.jabref.logic.pdf.PdfAnnotationImporter currently includes this statement import static org.jabref.gui.importer.actions.OpenDatabaseAction.LOGGER. Apart from being totally unnecessary (there would be no problem in using an own logger for the class), this is also forbidden. A fix to this issue should:
PdfAnnotationImporter and using an own logger.ArchitectureTests to detect static imports (which could lead to discovering further errors that might not be as easy to fix) Idea: there may be checkstyle rules that can be configured to cover our architecture tests.
Oh, that was me. Fixed this instance in #2618. Unfortunately, I don't have time to investigate 2.
However, I am happy to have raised attention to this problem by committing this mistake.
Further architecture related desirable tests are:
There is a new tool called ArchUnit, maybe this is helpful. https://github.com/TNG/ArchUnit
Most helpful comment
There is a new tool called ArchUnit, maybe this is helpful. https://github.com/TNG/ArchUnit