Skip to content

Commit

Permalink
Disabled checking of *.java files for PMD (#218)
Browse files Browse the repository at this point in the history
Co-authored-by: André Gasser <[email protected]>
  • Loading branch information
andregasser and André Gasser authored May 29, 2023
1 parent 8d8ec2a commit 2e79e0c
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 8 deletions.
4 changes: 3 additions & 1 deletion config/pmd/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">

<description>
Bigbone PMD Ruleset
BigBone PMD Ruleset
</description>

<exclude-pattern>.*\.java</exclude-pattern>

<rule ref="category/java/bestpractices.xml">
</rule>
<rule ref="category/java/codestyle.xml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import social.bigbone.api.entity.Application;
import social.bigbone.api.exception.BigBoneRequestException;

@SuppressWarnings({"PMD.SystemPrintln", "PMD.AvoidPrintStackTrace"})
public class GetAppRegistration {
public static void main(final String[] args) {
final MastodonClient client = new MastodonClient.Builder("mstdn.jp").build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import static social.bigbone.api.method.TimelineMethods.StatusOrigin.LOCAL_AND_REMOTE;

@SuppressWarnings("PMD.SystemPrintln")
public class GetPublicTimeline {
public static void main(final String[] args) throws BigBoneRequestException {
final String instance = args[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import static social.bigbone.api.method.TimelineMethods.StatusOrigin.LOCAL_AND_REMOTE;

@SuppressWarnings("PMD.SystemPrintln")
public class GetRawJson {
public static void main(final String[] args) throws BigBoneRequestException {
final String instance = args[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import static social.bigbone.api.method.TimelineMethods.StatusOrigin.LOCAL_AND_REMOTE;

@SuppressWarnings("PMD.SystemPrintln")
public class GetTagTimeline {
public static void main(final String[] args) throws BigBoneRequestException {
final String instance = args[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import java.util.Scanner;

@SuppressWarnings("PMD.SystemPrintln")
public class OAuthGetAccessToken {
public static void main(final String[] args) throws BigBoneRequestException {
final String instanceName = args[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import social.bigbone.api.entity.Search;
import social.bigbone.api.exception.BigBoneRequestException;

@SuppressWarnings("PMD.SystemPrintln")
public class PerformSimpleSearch {
public static void main(final String[] args) throws BigBoneRequestException {
final String instance = args[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import social.bigbone.api.entity.Status;
import social.bigbone.api.exception.BigBoneRequestException;

@SuppressWarnings("PMD.SystemPrintln")
public class StreamFederatedPublicTimeline {
public static void main(final String[] args) throws BigBoneRequestException, InterruptedException {
final String instance = args[0];
Expand Down

0 comments on commit 2e79e0c

Please sign in to comment.