Skip to content

Commit a53f539

Browse files
committed
introduce PMD/category/java/bestpractices.xml/SystemPrintln rule
1 parent ba20e84 commit a53f539

67 files changed

Lines changed: 67 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎pmd.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
</properties>
1717
</rule>
1818
<rule ref="category/java/bestpractices.xml/SwitchStmtsShouldHaveDefault" />
19+
<rule ref="category/java/bestpractices.xml/SystemPrintln" />
1920
</ruleset>

‎scribejava-apis/src/test/java/com/github/scribejava/apis/examples/AWeberExample.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class AWeberExample {
2323
private AWeberExample() {
2424
}
2525

26+
@SuppressWarnings("PMD.SystemPrintln")
2627
public static void main(String... args) throws IOException, InterruptedException, ExecutionException {
2728
final OAuth10aService service = new ServiceBuilder(CONSUMER_KEY)
2829
.apiSecret(CONSUMER_SECRET)

‎scribejava-apis/src/test/java/com/github/scribejava/apis/examples/AsanaExample.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class AsanaExample {
2020
private AsanaExample() {
2121
}
2222

23+
@SuppressWarnings("PMD.SystemPrintln")
2324
public static void main(String... args) throws IOException, InterruptedException, ExecutionException {
2425
final String apiKey = "your client id";
2526
final String apiSecret = "your client secret";

‎scribejava-apis/src/test/java/com/github/scribejava/apis/examples/AutomaticExample.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class AutomaticExample {
2121
private AutomaticExample() {
2222
}
2323

24+
@SuppressWarnings("PMD.SystemPrintln")
2425
public static void main(String... args) throws IOException, InterruptedException, ExecutionException {
2526
// Replace these with your client id and secret
2627
final String clientId = "your client id";

‎scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Box20Example.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class Box20Example {
2222
private Box20Example() {
2323
}
2424

25+
@SuppressWarnings("PMD.SystemPrintln")
2526
public static void main(String... args) throws IOException, InterruptedException, ExecutionException {
2627
//Replace these with your client id and secret
2728
final String clientId = "your client id";

‎scribejava-apis/src/test/java/com/github/scribejava/apis/examples/DataportenExample.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class DataportenExample {
2020
private DataportenExample() {
2121
}
2222

23+
@SuppressWarnings("PMD.SystemPrintln")
2324
public static void main(String... args) throws IOException, InterruptedException, ExecutionException {
2425
// Replace these with your client id and secret
2526
final String clientId = "your client id";

‎scribejava-apis/src/test/java/com/github/scribejava/apis/examples/DiggExample.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class DiggExample {
2020
private DiggExample() {
2121
}
2222

23+
@SuppressWarnings("PMD.SystemPrintln")
2324
public static void main(String... args) throws IOException, InterruptedException, ExecutionException {
2425
// Replace these with your own api key and secret
2526
final String apiKey = "myKey";

‎scribejava-apis/src/test/java/com/github/scribejava/apis/examples/DiscordExample.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class DiscordExample {
2121
private DiscordExample() {
2222
}
2323

24+
@SuppressWarnings("PMD.SystemPrintln")
2425
public static void main(String... args) throws IOException, ExecutionException, InterruptedException {
2526
// Replace these with your client id and secret
2627
final String clientId = "client id";

‎scribejava-apis/src/test/java/com/github/scribejava/apis/examples/EtsyExample.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class EtsyExample {
2020
private EtsyExample() {
2121
}
2222

23+
@SuppressWarnings("PMD.SystemPrintln")
2324
public static void main(String[] args) throws InterruptedException, ExecutionException, IOException {
2425
// Replace with your api and secret key
2526
final OAuth10aService service = new ServiceBuilder("your api key")

‎scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FacebookAsyncApacheExample.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class FacebookAsyncApacheExample {
2121
private FacebookAsyncApacheExample() {
2222
}
2323

24+
@SuppressWarnings("PMD.SystemPrintln")
2425
public static void main(String... args) throws InterruptedException, ExecutionException, IOException {
2526
// Replace these with your client id and secret
2627
final String clientId = "your client id";

0 commit comments

Comments
 (0)