Skip to content

Commit

Permalink
Allow package-private fields (as used by Injection in Quarkus) (#61)
Browse files Browse the repository at this point in the history
Fixes #59
  • Loading branch information
jskov authored May 18, 2024
1 parent a530f80 commit b6ded87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/dk/mada/style/MadaStylePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
* A plugin defining the style used for dk.mada java code.
*/
public final class MadaStylePlugin implements Plugin<Project> {
/** Constructs new instance. */
public MadaStylePlugin() {
// Explicit default constructor to avoid javadoc warning
}

@Override
public void apply(Project project) {
project.getPlugins().withType(JavaPlugin.class, jp -> applyPlugins(project));
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/config/checkstyle/checkstyle-mada.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@
<module name="FinalClass"/>
<module name="HideUtilityClassConstructor"/>
<module name="InterfaceIsType"/>
<module name="VisibilityModifier"/>
<module name="VisibilityModifier">
<property name="packageAllowed" value="true" />
</module>

<!-- Miscellaneous other checks. -->
<!-- See https://checkstyle.org/config_misc.html -->
Expand Down

0 comments on commit b6ded87

Please sign in to comment.