49 Commits

Author SHA1 Message Date
Andreas Dangel
955ab11922 [doc] Use the rule names for the search index, include language
This provides better user experience for the search box on the
documentation page. The search results show now the rule name,
the language and the ruleset name.
2018-04-09 11:36:25 +02:00
Juan Martín Sotuyo Dodero
2f5501cc06 Escape pipes in rule default values
- This was breaking the tables for rules such as Java's
`EmptyCatchBlock`
2018-04-09 03:22:27 -03:00
Andreas Dangel
f3ab54d6da [maven-release-plugin] prepare for next development iteration 2018-03-26 09:23:23 +02:00
Andreas Dangel
59b360a60a [maven-release-plugin] prepare release pmd_releases/6.2.0 2018-03-26 09:23:14 +02:00
Andreas Dangel
f335e83043 Cleanup pom.xml files 2018-03-23 10:21:16 +01:00
Andreas Dangel
f2c8b5e2e8 Make the project be importable by IntelliJ IDEA
See https://youtrack.jetbrains.com/issue/IDEA-188690
2018-03-21 21:54:31 +01:00
Andreas Dangel
8bd1e3b486 Fix PMD dogfood: UncommentedEmptyMethodBody, SimplifyBooleanReturns,
UnnecessaryLocalBeforeReturn, OptimizableToArrayCall,
ClassWithOnlyPrivateConstructorsShouldBeFinal,
UseLocaleWithCaseConversions, NonStaticInitializer, UseCollectionIsEmpty
2018-03-10 12:04:50 +01:00
Andreas Dangel
098b0dcac0 [maven-release-plugin] prepare for next development iteration 2018-02-25 09:53:26 +01:00
Andreas Dangel
101b71a13e [maven-release-plugin] prepare release pmd_releases/6.1.0 2018-02-25 09:53:19 +01:00
Andreas Dangel
73de6eb1f0 [ci] Use Java9 for building PMD
Fixes #854
2018-02-18 21:49:25 +01:00
Juan Martín Sotuyo Dodero
02e84360aa [doc] Update sidebar generation 2018-01-21 16:50:02 -03:00
Juan Martín Sotuyo Dodero
142fb16358 Merge branch 'pr-860' 2018-01-21 14:59:31 -03:00
Andreas Dangel
8fbb156fd9 [maven-release-plugin] prepare for next development iteration 2018-01-21 16:42:50 +01:00
Andreas Dangel
0e460317e4 [maven-release-plugin] prepare release pmd_releases/6.0.1 2018-01-21 16:42:42 +01:00
Andreas Dangel
3472bf1764 [doc] Fix wrong bootclasspath to be able to use java8 api 2018-01-18 16:33:33 +01:00
Andreas Dangel
411be4ac00 [doc] Further changes for windows compatibility 2018-01-17 20:51:56 +01:00
Andreas Dangel
090975a972 [doc] Fix file handle leak in SidebarGenerator 2018-01-17 20:19:33 +01:00
Andreas Dangel
1ef5367498 [doc] Fix build/unit tests under windows
* expect line names with windows path normalized to unix paths
* normalize line endings
* File.separator might be a backslash and needs to be escaped in regex
2018-01-17 19:41:45 +01:00
Andreas Dangel
0ce2939c6b Change version to 6.0.1-SNAPSHOT 2017-12-23 09:54:03 +01:00
Andreas Dangel
a975048655 [maven-release-plugin] prepare for next development iteration 2017-12-15 16:01:22 +01:00
Andreas Dangel
9b6fe90225 [maven-release-plugin] prepare release pmd_releases/6.0.0 2017-12-15 16:01:14 +01:00
Andreas Dangel
3132080b83 [doc] Fix how moved and deprecated rules are linked
Text should be the old name, the link should point to the new name/rule
2017-11-24 09:28:05 +01:00
Andreas Dangel
6b5e8ce344 [doc] List the rules of the additional rulesets 2017-11-10 20:18:23 +01:00
Andreas Dangel
490fe312f2 [doc] Move the additional rulesets to the bottom 2017-11-10 17:59:04 +01:00
Andreas Dangel
26ba531c85 [doc] Add sidebar entries for rule categories 2017-11-10 17:49:16 +01:00
Andreas Dangel
9a9fb0b12f [doc] Scan for additional rulesets and list them per language 2017-11-10 14:23:22 +01:00
Andreas Dangel
06a1244e15 [doc] Add unit test for all rulesets and fix existing rulesets 2017-11-10 14:03:05 +01:00
Andreas Dangel
1c9c750a0a [doc] Strip leading whitespace indentation from rule description 2017-11-10 11:44:35 +01:00
Andreas Dangel
490bf99a01 [doc] Mark deprecated properties 2017-11-10 10:35:55 +01:00
Andreas Dangel
19c48cbcee [doc] Fix unit test 2017-11-03 12:13:45 +01:00
Andreas Dangel
cc5ff0a018 [doc] Adjust rule doc generator to use "category" 2017-10-30 21:19:49 +01:00
Andreas Dangel
6a6ef9e18e [doc] fix doc generator tests which depended on a ruleset from java 2017-10-29 21:28:40 +01:00
Andreas Dangel
577ef1ff71 Declaring used dependencies explicitly
as determined by dependency:analyze
2017-09-24 10:39:49 +02:00
Andreas Dangel
ade0d7d029 Update compiler plugin, use "release" option, adjust java.version properties
No need for the toolchain plugin anymore
2017-09-23 19:24:17 +02:00
Clément Fournier
0349ad74c1 Forgot stuff in n.s.pmd 2017-09-14 15:28:40 +02:00
Andreas Dangel
7120369c12 [doc] document for each rule a sample how to reference it 2017-09-05 17:37:31 +02:00
Andreas Dangel
23d947b4bf [doc] Add syntax highlighting for code examples 2017-08-15 14:31:03 +02:00
Andreas Dangel
f918249eda [doc] Fix unit test after ruleset.xml changes 2017-08-15 14:31:03 +02:00
Andreas Dangel
3972be80cc [doc] Render rule names as keywords, so that the rules can be searched 2017-08-15 14:31:03 +02:00
Andreas Dangel
ca9004b9f7 [doc] add test for simple markdown formatting in rule description 2017-08-12 12:02:03 +02:00
Andreas Dangel
a4416a78e2 [doc] add minimum language version, add property for tests 2017-08-12 11:55:40 +02:00
Andreas Dangel
2bff86d0f7 [doc] Output XPath expression and link to rule class implementation 2017-08-12 11:22:54 +02:00
Andreas Dangel
9111316c01 [doc] Support renamed/moved rules 2017-08-11 21:37:24 +02:00
Andreas Dangel
171ebad444 [doc] Add deprecation label for deprecated rules 2017-08-11 20:28:06 +02:00
Andreas Dangel
d6c23fd17f [doc] Add unit test for rule doc generator
Therefore the file writer has been mocked. The rulesets to be
documented are now given, rather than determined by the generator.
2017-08-11 11:40:38 +02:00
Andreas Dangel
0b9b7e2a5d Fix checkstyle 2017-08-10 19:41:00 +02:00
Andreas Dangel
5113af6568 Fix build 2017-08-10 19:27:33 +02:00
Andreas Dangel
d537b2acbe [doc] move RuleDocGenerator into pmd-doc
It'll be executed during package phase.
2017-08-10 19:18:35 +02:00
Andreas Dangel
8bdb0a5d22 [doc] add pmd-doc submodule 2017-08-10 19:00:10 +02:00