Jan van Nunen
ceef6cd236
Fixed lexical eror when a preprocessor directive is followed by a single line comment that starts with "//*".
...
This commit fixes a lexical eror when a preprocessor directive is
followed by a single line comment that starts with "//*".
The following code could not be tokenized:
#define LSTFVLES_CPP //*
It triggers the following error:
net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical error in file
'foo.cpp' at line 2, column 0. Encountered: <EOF> after : ""
2015-01-13 11:36:53 +01:00
Jan van Nunen
5c2df4c877
Fixed lexical error when a C++ file contains ASM with the '@' character.
...
This commit fixes a lexical error when a C++ file contains ASM with the
'@' character. The following code cannot be tokenized and triggers a
lexical error:
asm void eSPI_boot()
{
// setup stack pointer
lis r1, _stack_addr@h
ori r1, r1, _stack_addr@l
}
The error that occurs:
net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical error in file
CODE_LOADED_FROM_STRING at line 4, column 22. Encountered: "@" (64),
after : ""
2015-01-13 11:36:53 +01:00
Andreas Dangel
c1bc045c65
Update release process - use compression when uploading the site
2014-12-21 16:55:04 +01:00
Andreas Dangel
111fc31cd7
Update changelog for next version
2014-12-21 11:54:14 +01:00
Andreas Dangel
0e6a5db426
[maven-release-plugin] prepare for next development iteration
2014-12-21 11:46:02 +01:00
Andreas Dangel
6c316e9375
[maven-release-plugin] prepare release pmd_releases/5.2.3
pmd_releases/5.2.3
2014-12-21 11:46:02 +01:00
Andreas Dangel
8831b710f1
Prepare pmd release 5.2.3
2014-12-21 11:39:41 +01:00
Andreas Dangel
990ed276f3
Update release process - don't use site-deploy anymore.
2014-12-21 11:26:41 +01:00
Andreas Dangel
0fce9a497b
#1289 CommentRequired not ignored if javadoc {@inheritDoc} anon inner classes
2014-12-18 19:20:16 +01:00
Andreas Dangel
763b38e8de
verify #1296 PMD UnusedPrivateMethod invalid detection of 'private void method(int,boolean,Integer...)'
2014-12-18 18:52:28 +01:00
Andreas Dangel
5530d7eb94
#1288 MethodNamingConventions for native should be deactivated
2014-12-17 21:52:42 +01:00
Andreas Dangel
e48f18cce2
#1293 Disable VariableNamingConventions for native methods
2014-12-17 21:42:49 +01:00
Andreas Dangel
071040929e
verify #1293 VariableNamingConventions False positive for native methods
2014-12-15 21:10:21 +01:00
Andreas Dangel
5daa4a9382
#1294 False positive UnusedPrivateMethod with public inner enum from another class
2014-12-14 18:01:07 +01:00
Andreas Dangel
db51c7d217
Update changelog
2014-12-14 11:29:58 +01:00
alberto
3a2e1474d3
spaces
2014-12-12 20:50:20 +01:00
alberto
50df3e0e11
Allow byte[] data and byte data[] as no-varargs last argument
2014-12-12 20:39:46 +01:00
Andreas Dangel
aea6c74a8f
java/design/UseVargs - update changelog, extend test case
2014-12-12 19:26:36 +01:00
Andreas Dangel
bdf454a967
Merge branch 'master' of https://github.com/albfernandez/pmd
2014-12-12 19:05:44 +01:00
Andreas Dangel
26b4f850b1
#1252 net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical error in file xxx.cpp
2014-12-12 18:58:51 +01:00
Andreas Dangel
6b3b9d0ccc
#1252 implement BOM detection differently for cpp
2014-12-12 17:45:38 +01:00
Alberto Fernández
a07d8bdfce
Update design.xml
2014-12-11 10:50:23 +01:00
Andreas Dangel
8fb2f0a09f
Add a timeout for retrieving a ruleset from a URL
...
By default, timeout is 5 seconds
2014-12-10 22:00:05 +01:00
Andreas Dangel
dd8c5f2d1a
Implement possibility to specify a Single Rule from a Ruleset via http
2014-12-10 21:54:17 +01:00
alberto
c5f28f4879
Allow byte[] as no-varargs final argument
2014-12-09 22:48:21 +01:00
Andreas Dangel
a9e6d921dd
Update changelog
2014-12-08 20:05:21 +01:00
Andreas Dangel
b2f7a0b94c
Merge branch 'master' of https://github.com/msiemczyk/pmd
2014-12-07 21:09:15 +01:00
msiemczyk
8d0f8080f4
#1290 RuleSetReferenceId does not process HTTP(S) correctly.
...
Fixed the bug and added one unit test.
2014-12-05 17:56:04 -05:00
Andreas Dangel
17e22c4cb3
Separate out the inner classes of XmlParser
2014-12-04 21:04:25 +01:00
Andreas Dangel
084c92efad
Update changelog for next version
2014-12-03 21:24:39 +01:00
Andreas Dangel
ac0181f017
[maven-release-plugin] prepare for next development iteration
2014-12-03 19:22:19 +01:00
Andreas Dangel
c577dc8aac
[maven-release-plugin] prepare release pmd_releases/5.2.2
pmd_releases/5.2.2
2014-12-03 19:22:19 +01:00
Andreas Dangel
6ff80fbad1
Prepare pmd release 5.2.2
2014-12-03 19:11:52 +01:00
Andreas Dangel
ce1e6b418c
Fix dogfood ruleset
2014-11-30 21:23:04 +01:00
Andreas Dangel
0cab1ac78a
Upgrade maven-pmd-plugin to 3.3
2014-11-30 20:29:32 +01:00
Andreas Dangel
944771c626
Fix javadoc for suppress marker
2014-11-30 20:24:22 +01:00
Andreas Dangel
c8887de5ff
#1090 cpp parser exception with inline asm
2014-11-28 21:32:32 +01:00
Andreas Dangel
7b58836ebb
#1128 CompareObjectsWithEquals False Positive comparing boolean (primitive) values
2014-11-27 20:19:17 +01:00
Andreas Dangel
4d16e3a582
#1286 UnusedPrivateMethod returns false positives for varags and enums
2014-11-26 19:21:44 +01:00
Andreas Dangel
3fd0d7fe01
verify #1287 UnusedPrivateMethod returns false positives for Superclass
2014-11-26 19:12:33 +01:00
Andreas Dangel
a9352d4d4c
Update --encoding paramter description for CPD.
...
Thanks to Michael Osipov.
2014-11-25 21:49:58 +01:00
Andreas Dangel
3ce7442c2d
Fix unit test
2014-11-24 22:18:13 +01:00
Andreas Dangel
20df4ca717
Don't rely on default encoding for unit tests
2014-11-24 21:06:16 +01:00
Andreas Dangel
d0980bd30d
Add back the old getRendererFromString method for compatibility
2014-11-24 20:30:17 +01:00
Andreas Dangel
afc13b29a2
#1285 Prevent to modify the System environment
2014-11-24 20:18:44 +01:00
Andreas Dangel
8ab9f3ed5d
#1280 False Positive in UnusedImports when import used in javadoc
2014-11-18 22:27:07 +01:00
Andreas Dangel
7d262036c6
Exclude LawOfDemeter rule from dogfood ruleset
2014-11-17 21:56:01 +01:00
Andreas Dangel
e86341bf8e
Checkstyle fixes
2014-11-17 21:55:57 +01:00
Andreas Dangel
fbe6742666
Set beginColumn for the test nodes, so that no RuntimeException is thrown.
2014-11-16 12:00:29 +01:00
Andreas Dangel
5f35ded04b
Fix PMD dogfood issues in pmd-java
2014-11-16 11:38:42 +01:00