Tyler Veness
7269a170fb
Upgrade maven deps to latest versions and fix new linter errors ( #3772 )
...
This also makes the Gradle build work with JDK 17.
The extra JVM args in gradle.properties works around a bug with spotless
and JDK 17: https://github.com/diffplug/spotless/issues/834
PMD.CloseResource was ignored because it's almost always a false
positive, and there are many of them.
2021-12-09 12:20:08 -08:00
Tyler Veness
c1e128bd5a
Disable frivolous PMD warnings and enable PMD in ntcore ( #3419 )
...
Some valid warnings like throwing NullPointerException or using a for
loop instead of System.arraycopy() were fixed.
Abstract classes marked with PMD.AbstractClassWithoutAbstractMethod were
made concrete because they already had protected constructors.
Fixes #1697 .
2021-06-09 07:01:00 -07:00
Austin Shalit
65b2359b27
[build] Add spotless for other files ( #3007 )
...
Adds spotless formatting for Gradle, xml, md, and gitignore files.
yml linting is not performed as it requires a dependency on npm.
2020-12-30 16:17:20 -08:00
Austin Shalit
6e7c7374fd
[build] Globally Exclude PMD.TooManyMethods ( #2793 )
...
This was not a useful check, as every time we hit it, we simply excluded it.
2020-10-22 20:53:48 -07:00
Thad House
b9fa3a4398
Update to 2019 RoboRIO and 2019 v4 image ( #1352 )
...
Also make updates for Java 11:
* Disable errorprone plugin (currently broken on Java 11)
* Update checkstyle to 8.12
* Update pmd to 6.7.0
2018-10-07 18:11:57 -07:00
Austin Shalit
a11fcb605d
Add UseConcurrentHashMap exception to PMD and clean NOPMDs ( #1243 )
2018-07-29 09:29:32 -07:00
Austin Shalit
9108a93598
Switch non-integration tests to JUnit 5 ( #1120 )
2018-06-11 15:01:49 -07:00
Austin Shalit
e548a5f705
Update and enable PMD 6.3.0 ( #1107 )
2018-06-03 10:00:53 -07:00
Austin Shalit
2e0709f05b
Add spotless to check line endings ( #1055 )
2018-05-16 19:47:35 -07:00
Tyler Veness
d8c8643b52
Format HTML and XML files ( #944 )
...
Generated by wpilibsuite/styleguide#52 .
2018-05-15 23:58:20 -07:00
Austin Shalit
74df3fac4e
Require non null ( #580 )
...
* Replace null checks with Objects.requireNonNull()
* Use PMD rule instead of checkstyle rule
2017-07-18 20:32:08 -07:00
Austin Shalit
8f67f2c24c
Remove unused code and add pmd check ( #395 )
2016-12-23 13:20:13 -06:00
Austin Shalit
a705eb1c61
Add PMD and solve issues ( #389 )
2016-12-07 21:24:44 -08:00