|
121 | 121 | </properties> |
122 | 122 | </rule> |
123 | 123 |
|
| 124 | + <rule ref="category/java/codestyle.xml/UnnecessaryConstructor"> |
| 125 | + <properties> |
| 126 | + <property name="violationSuppressXPath"> |
| 127 | + <value> |
| 128 | + <!-- false positives, work-around for https://github.com/pmd/pmd/issues/6284 --> |
| 129 | + .[ |
| 130 | + ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.javacord.BotOwnerJavacord')] |
| 131 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.javacord.slash.BotOwnerJavacordSlash')] |
| 132 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.jda.BotOwnerJda')] |
| 133 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.CommandHandler')] |
| 134 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.Everyone')] |
| 135 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.jda.GuildOwnerJda')] |
| 136 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.prefix.javacord.MentionPrefixTransformerJavacord')] |
| 137 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.prefix.jda.MentionPrefixTransformerJda')] |
| 138 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.javacord.NsfwChannelJavacord')] |
| 139 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.javacord.slash.NsfwChannelJavacordSlash')] |
| 140 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.jda.NsfwChannelJda')] |
| 141 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.javacord.PrivateMessageJavacord')] |
| 142 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.javacord.slash.PrivateMessageJavacordSlash')] |
| 143 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.jda.PrivateMessageJda')] |
| 144 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.javacord.RegularUserJavacord')] |
| 145 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.jda.RegularUserJda')] |
| 146 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.javacord.ServerManagerJavacord')] |
| 147 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.javacord.slash.ServerManagerJavacordSlash')] |
| 148 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.jda.ServerManagerJda')] |
| 149 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.javacord.ServerOwnerJavacord')] |
| 150 | + or ancestor::ClassOrInterfaceDeclaration[typeIsExactly('net.kautler.command.api.restriction.javacord.slash.ServerOwnerJavacordSlash')] |
| 151 | + ] |
| 152 | + </value> |
| 153 | + </property> |
| 154 | + </properties> |
| 155 | + </rule> |
| 156 | + |
124 | 157 | <rule ref="category/java/design.xml"> |
125 | 158 | <exclude name="AvoidCatchingGenericException"/> |
126 | 159 | <exclude name="ExcessiveImports"/> |
|
0 commit comments