From f70b0d04cf02f09ebbe0a3050df267adfe9898c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Fri, 26 Jan 2024 11:50:29 -0300 Subject: [PATCH] Fix Windows samples --- docs/pages/pmd/userdocs/installation.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/pages/pmd/userdocs/installation.md b/docs/pages/pmd/userdocs/installation.md index a4c475980c..455c054997 100644 --- a/docs/pages/pmd/userdocs/installation.md +++ b/docs/pages/pmd/userdocs/installation.md @@ -99,11 +99,11 @@ Additionally, the following options, are specified most of the time even though .../src/main/java/com/me/RuleSetWriter.java:66 Avoid empty catch blocks" windows="pmd.bat check -f text -R rulesets/java/quickstart.xml ..\..\src\main\java - .../src/main/java/com/me/RuleSet.java:123 These nested if statements could be combined - .../src/main/java/com/me/RuleSet.java:231 Useless parentheses. - .../src/main/java/com/me/RuleSet.java:232 Useless parentheses. - .../src/main/java/com/me/RuleSet.java:357 These nested if statements could be combined - .../src/main/java/com/me/RuleSetWriter.java:66 Avoid empty catch blocks" %} + ...\src\main\java\com\me\RuleSet.java:123 These nested if statements could be combined + ...\src\main\java\com\me\RuleSet.java:231 Useless parentheses. + ...\src\main\java\com\me\RuleSet.java:232 Useless parentheses. + ...\src\main\java\com\me\RuleSet.java:357 These nested if statements could be combined + ...\src\main\java\com\me\RuleSetWriter.java:66 Avoid empty catch blocks" %} ## Running CPD via command line @@ -140,7 +140,7 @@ sources. Alternatively You can use the `-d` or `--dir` flag, which is equivalent assertEquals(Boolean.TYPE, expressions.get(index++).getType()); assertEquals(Boolean.TYPE, expressions.get(index++).getType()); assertEquals(Boolean.TYPE, expressions.get(index++).getType());" - windows="pmd.bat cpd --minimum-tokens 100 /home/me/src + windows="pmd.bat cpd --minimum-tokens 100 c:\temp\src Found a 7 line (110 tokens) duplication in the following files: Starting at line 579 of c:\temp\src\test\java\foo\FooTypeTest.java