Juan Martín Sotuyo Dodero
25da0c86f2
Merge branch 'pr-697'
2017-11-06 13:41:27 -03:00
Juan Martín Sotuyo Dodero
9e1342f30a
Merge branch 'pr-696'
2017-11-04 19:48:28 -03:00
Juan Martín Sotuyo Dodero
8d381daeb3
Merge branch 'pr-669'
2017-11-04 19:40:14 -03:00
Juan Martín Sotuyo Dodero
5d6a03612e
Rename builder method
2017-11-04 19:19:39 -03:00
Andreas Dangel
e1a588f499
Merge branch 'master' into ruleset-categories
2017-11-04 19:53:21 +01:00
Andreas Dangel
961cf8d49a
Merge branch 'pr-686'
2017-11-04 19:32:36 +01:00
Andreas Dangel
17f2e793d7
Fix TODO - false positive of UselessParenthesis (refs #709 )
2017-11-03 20:09:16 +01:00
Andreas Dangel
aacae9e47d
[java] Update category descriptions
2017-11-03 12:18:22 +01:00
Andreas Dangel
20863e1853
Fix checkstyle
2017-11-03 12:08:00 +01:00
Andreas Dangel
77959e9937
[java] Fix unit tests
2017-11-03 12:04:26 +01:00
Andreas Dangel
238494b092
[java] Moving rules into correct packages according to the new category - Part 3
2017-11-03 11:54:34 +01:00
Andreas Dangel
696c1cb651
[java] Moving rules into correct packages according to the new category - Part 2
2017-11-02 20:36:28 +01:00
Andreas Dangel
b3e485d325
[java] Moving rules into correct packages according to the new category - Part 1
2017-11-01 20:17:11 +01:00
Andreas Dangel
c29f2a44e6
Revert "Temporarily disable the unit tests until the rules are moved into the"
...
This reverts commit ded09b649895436c183eb7ffe93d5119a4d2a126.
2017-11-01 18:54:10 +01:00
Clément Fournier
fc0cb45f49
Merge branch 'master' into properties-builder
2017-11-01 18:21:54 +01:00
Clément Fournier
6b50104cb5
Corrections for PR #669
2017-11-01 18:17:57 +01:00
Andreas Dangel
57c1021c3c
[java] Move rules between categories, fix typo for AvoidAccessibilityAlteration
2017-10-31 11:58:22 +01:00
Andreas Dangel
cee3d6ad2d
Fix invalid language version
2017-10-30 22:00:52 +01:00
Andreas Dangel
68a56ee0d8
[java] Move category rulesets into own category directory
...
restore previous design rulesest
2017-10-30 21:19:36 +01:00
Andreas Dangel
bf6eacf96b
[java] Fix wrong externalInfoUrls, add missing minimumLanguageVersion
2017-10-30 21:19:04 +01:00
Juan Martín Sotuyo Dodero
64628370c8
Merge branch 'pr-679'
2017-10-30 16:56:17 -03:00
Juan Martín Sotuyo Dodero
67f0fbbbfe
Add missing @Override
s
2017-10-30 00:26:42 -03:00
Andreas Dangel
ded09b6498
Temporarily disable the unit tests until the rules are moved into the
...
correct packages
2017-10-29 21:12:39 +01:00
Andreas Dangel
42973c4291
[java] Reorganize rulesets into new categories
...
Best Practices, Code Style, Design, Documentation, Error Prone,
Multithreading, Performance, Security
2017-10-29 21:11:59 +01:00
Matias Comercio
8e120da008
Fix missing validation on cast for AbstractJavaRule
2017-10-28 19:47:32 -03:00
Andreas Dangel
989dd133fd
Merge branch 'pr-692'
2017-10-28 20:18:56 +02:00
Andreas Dangel
2dec92c9d5
Merge branch 'pr-691'
2017-10-28 20:04:10 +02:00
Andreas Dangel
0cff7b841a
[java] Mark ASTArrayDimsAndInits and ASTVariableDeclaratorId as Dimensionable
2017-10-28 20:01:07 +02:00
Andreas Dangel
6b1b135104
Merge branch 'pr-690'
2017-10-28 19:55:59 +02:00
Andreas Dangel
ca9b42b7e5
Merge branch 'pr-689'
2017-10-28 19:48:39 +02:00
gonzalo
91b8a22b42
Update GenericToken specialToken method to obtain only comment tokens
2017-10-28 14:42:44 -03:00
gonzalo
e8fdbdbca4
Update GenericToken interface to expose directly region methods
2017-10-28 14:42:44 -03:00
gonzalo
26461e59c1
Simplify method name in GenericToken && improve ant task replacetoken
2017-10-28 14:42:44 -03:00
gonzalo
95835b8134
Update getter in GenericToken
2017-10-28 14:42:44 -03:00
gonzalo
490b34fea3
Change ant tasks over (Java) Token class
2017-10-28 14:42:44 -03:00
Andreas Dangel
591737b2d9
Merge branch 'pr-688'
2017-10-28 19:41:28 +02:00
Juan Martín Sotuyo Dodero
d1d9c6f3c6
[java] Fix NPE in type resolution
...
- The resolution of `GenericArrayType` was broken, so we caused NPEs.
- Those types are now properly resolved, but the test case is still
incomplete due to missing pieces in type inference
2017-10-27 23:53:17 -03:00
Juan Martín Sotuyo Dodero
71d94b4ccd
[java] Avoid runtime errors on incomplete classpath
2017-10-27 02:27:32 -03:00
Juan Martín Sotuyo Dodero
83d513edca
Fix specificity test for varargs vs fixed
...
- We used to fail upon mixing varargs with fixed arity instead of
treating the vararg as a fixed arity as per the spec
2017-10-27 00:57:21 -03:00
Juan Martín Sotuyo Dodero
1d02c24b34
Consider only direct children
2017-10-27 00:08:26 -03:00
Juan Martín Sotuyo Dodero
b3dea3240c
Generalize test
2017-10-26 22:38:40 -03:00
Juan Martín Sotuyo Dodero
b76945bbbb
Be consistent on naming
2017-10-26 22:33:31 -03:00
Juan Martín Sotuyo Dodero
05927af574
[java] Properly resolve array types
...
- Honor dimensions of arrays
- Resolve types for allocations as well as declarations of arrays
2017-10-26 22:31:29 -03:00
Juan Martín Sotuyo Dodero
d8f203a859
Chesktyle
2017-10-26 18:03:54 -03:00
Juan Martín Sotuyo Dodero
8fe2befbbc
Add a proper test case
2017-10-26 13:11:39 -03:00
Juan Martín Sotuyo Dodero
ae2898e238
[java] Properly handle 0-arg calls
...
- We no longer take all methods as applicable for a 0-arg method call
during type resolution.
2017-10-26 12:23:44 -03:00
Juan Martín Sotuyo Dodero
71200e6a67
Default to reduce to false for the time being
2017-10-26 10:06:18 -03:00
Juan Martín Sotuyo Dodero
92cc66a8cd
Checkstyle fixes
2017-10-26 01:13:04 -03:00
Juan Martín Sotuyo Dodero
9d59c0317c
[java] Fix boxing rules
...
- Boolean types were not considered since we were using the
subtypability set which deals exclusively with numeric types
- Fixes #650
2017-10-26 00:54:47 -03:00
Juan Martín Sotuyo Dodero
ebeab0f445
[java] Simplify ForLoopShouldBeWhileLoop
...
- Remove checks that will always be true (a node can't be a Type and
a Statement and an Expression at the same time)
- Simplify count(*) > 1 checks (expensive) for an Expression check (the one
node we actually care about)
2017-10-25 12:57:35 -03:00