Stephan Schroevers
dff67fecbc
Drop unnecessary dependency declarations ( #973 )
2024-01-13 20:53:00 +01:00
Stephan Schroevers
b8eabff9bc
Run org.kordamp.maven:pomchecker-maven-plugin:1.10.0:check-maven-central ( #491 )
...
This new Maven goal validates that the `pom.xml` files meet the criteria
for being deployed to Maven Central.
2024-01-13 17:34:26 +01:00
Stephan Schroevers
0440df8911
Have ThrowsCheckedException also consider supertypes ( #914 )
...
This prevents the `MonoFromSupplier` Refaster rule from suggesting
noncompilable code.
2024-01-01 12:26:43 +01:00
Stephan Schroevers
626246bcc0
Introduce CanonicalClassNameUsage check ( #881 )
...
Error Prone checks deal with source code and type matchers, both of
which generally involve canonical type names, rather than the strings
produced by `Class#getName()`. This distinction is particularly relevant
when dealing with nested types.
2023-12-18 09:19:13 +01:00
Stephan Schroevers
17c7b396d2
Simplify AbstractMatcherTestChecker ( #853 )
...
By using `TreePathScanner` rather than directly using `TreeScanner`.
2023-11-27 11:40:16 +01:00
Stephan Schroevers
8130ddf59c
Introduce IsIdentityOperation matcher for use by Refaster templates ( #749 )
2023-10-23 14:52:16 +02:00
Stephan Schroevers
fa026de336
Introduce IsEmpty matcher for use by Refaster templates ( #744 )
...
While there, generalize a number of Refaster rules using this new matcher.
2023-10-23 09:07:47 +02:00
Stephan Schroevers
5596b584ac
[maven-release-plugin] prepare for next development iteration
2023-10-04 16:40:37 +02:00
Stephan Schroevers
4800522a09
[maven-release-plugin] prepare release v0.14.0
2023-10-04 16:40:37 +02:00
Picnic-Bot
82025a729f
Upgrade fmt-maven-plugin 2.20 -> 2.21.1 ( #804 )
...
See:
- https://github.com/spotify/fmt-maven-plugin/releases/tag/2.21
- https://github.com/spotify/fmt-maven-plugin/releases/tag/2.21.1
- https://github.com/spotify/fmt-maven-plugin/compare/fmt-maven-plugin-2.20...2.21.1
2023-10-04 10:29:27 +02:00
Stephan Schroevers
48e2f57cb6
[maven-release-plugin] prepare for next development iteration
2023-08-28 19:22:11 +03:00
Stephan Schroevers
352829c61f
[maven-release-plugin] prepare release v0.13.0
2023-08-28 19:22:11 +03:00
Stephan Schroevers
dc36ff2c0b
[maven-release-plugin] prepare for next development iteration
2023-06-21 21:15:38 +02:00
Stephan Schroevers
09208aa49a
[maven-release-plugin] prepare release v0.12.0
2023-06-21 21:15:38 +02:00
Stephan Schroevers
b81ec973a1
Upgrade Error Prone 2.19.1 -> 2.20.0 ( #685 )
...
Summary of key changes:
- The `MissingRefasterAnnotation` check was contributed to Error Prone,
and so is deleted here (multiple checks with the same name are not
supported).
- Similarly, Error Prone now supports the `-XepAllSuggestionsAsWarnings`
flag out of the box. So the `ErrorProneFork` class is deleted, as it
has currently no further use.
While there, include a tweak to `run-mutation-tests.sh`.
Fixes #686 .
See:
- https://github.com/google/error-prone/releases/tag/v2.20.0
- https://github.com/google/error-prone/compare/v2.19.1...v2.20.0
- https://github.com/PicnicSupermarket/error-prone/compare/v2.19.1-picnic-1...v2.20.0-picnic-1
2023-06-20 15:52:26 +02:00
Luke Prananta
cc2c49edc3
Introduce OptionalOrElseGet Refaster rule ( #527 )
...
While there, introduce `IsLikelyTrivialComputation` Matcher.
2023-05-26 09:19:51 +02:00
Stephan Schroevers
8bc878a05c
Improve AbstractMatcherTestChecker ( #599 )
...
These changes enable testing of a wider range of `Matcher` implementations. In
a nutshell:
- The `Matcher` under test is now passed `VisitorState` instances with an
accurate `TreePath`.
- The `Matcher` under test is no longer consulted for method select and cast
type expressions, mirroring Refaster behavior.
2023-05-26 08:29:26 +02:00
Stephan Schroevers
3df6dc957d
[maven-release-plugin] prepare for next development iteration
2023-05-16 17:38:46 +02:00
Stephan Schroevers
a1ecd816ff
[maven-release-plugin] prepare release v0.11.1
2023-05-16 17:38:46 +02:00
Stephan Schroevers
f52a93cc4e
[maven-release-plugin] prepare for next development iteration
2023-05-14 17:09:09 +02:00
Stephan Schroevers
610085393c
[maven-release-plugin] prepare release v0.11.0
2023-05-14 17:09:08 +02:00
Picnic-Bot
08e55fdfb6
Upgrade Error Prone 2.18.0 -> 2.19.1 ( #621 )
...
Resolves #622 .
See:
- https://github.com/google/error-prone/releases/tag/v2.19.0
- https://github.com/google/error-prone/releases/tag/v2.19.1
- https://github.com/google/error-prone/compare/v2.18.0...v2.19.1
- https://github.com/PicnicSupermarket/error-prone/compare/v2.18.0-picnic-1...v2.19.1-picnic-1
2023-05-14 17:01:46 +02:00
Luke Prananta
7cf569cca3
Introduce IsRefasterAsVarargs matcher for use by Refaster templates ( #623 )
2023-05-14 16:33:32 +02:00
Stephan Schroevers
3ee28f2c05
[maven-release-plugin] prepare for next development iteration
2023-05-04 12:47:28 +02:00
Stephan Schroevers
bb122388f5
[maven-release-plugin] prepare release v0.10.0
2023-05-04 10:02:03 +02:00
Stephan Schroevers
e0c795d248
Introduce SonarCloud integration and resolve assorted violations ( #575 )
2023-04-25 08:19:11 +02:00
Stephan Schroevers
b273502e88
[maven-release-plugin] prepare for next development iteration
2023-03-31 09:31:01 +02:00
Stephan Schroevers
8c6bd1b6e7
[maven-release-plugin] prepare release v0.9.0
2023-03-31 09:30:59 +02:00
Pieter Dirk Soels
61c9f67f66
Introduce MockitoMockClassReference check ( #454 )
...
Flags Mockito mock and spy creation expressions that explicitly specify the
type of mock or spy to create, while this information can also be inferred from
context.
2023-03-06 09:54:26 +01:00
Giovanni Zotta
5bb1dd1a10
Introduce StreamMapTo{Double,Int,Long}Sum Refaster rules ( #497 )
...
As well as a new `IsLambdaExpressionOrMethodReference` matcher.
2023-02-21 16:35:29 +01:00
Stephan Schroevers
9a397aa047
[maven-release-plugin] prepare for next development iteration
2023-01-27 09:20:57 +01:00
Stephan Schroevers
60e74332de
[maven-release-plugin] prepare release v0.8.0
2023-01-27 09:20:54 +01:00
Stephan Schroevers
79356ac553
Upgrade Error Prone 2.17.0 -> 2.18.0 ( #455 )
...
See:
- https://github.com/google/error-prone/releases/tag/v2.18.0
- https://github.com/google/error-prone/compare/v2.17.0...v2.18.0
- https://github.com/PicnicSupermarket/error-prone/compare/v2.17.0-picnic-1...v2.18.0-picnic-1
2023-01-11 19:12:39 +01:00
Stephan Schroevers
560f52bad0
[maven-release-plugin] prepare for next development iteration
2023-01-06 11:29:12 +01:00
Stephan Schroevers
2356c61314
[maven-release-plugin] prepare release v0.7.0
2023-01-06 11:29:09 +01:00
Picnic-Bot
ff2ed6f82c
Upgrade JSpecify 0.2.0 -> 0.3.0 ( #415 )
...
See:
- https://github.com/jspecify/jspecify/releases/tag/v0.3.0-alpha-1
- https://github.com/jspecify/jspecify/releases/tag/v0.3.0-alpha-2
- https://github.com/jspecify/jspecify/releases/tag/v0.3.0-alpha-3
- https://github.com/jspecify/jspecify/releases/tag/v0.3.0
- https://github.com/jspecify/jspecify/compare/v0.2.0...v0.3.0
2022-12-19 13:14:50 +01:00
Stephan Schroevers
ec00a5522f
[maven-release-plugin] prepare for next development iteration
2022-12-12 09:57:05 +01:00
Stephan Schroevers
465b16c471
[maven-release-plugin] prepare release v0.6.0
2022-12-12 09:57:03 +01:00
Stephan Schroevers
be24edadae
[maven-release-plugin] prepare for next development iteration
2022-11-01 08:56:43 +01:00
Stephan Schroevers
068c03708b
[maven-release-plugin] prepare release v0.5.0
2022-11-01 08:56:40 +01:00
Stephan Schroevers
b2e15607c1
Migrate from JSR 305 to JSpecify ( #181 )
...
JSpecify's annotations have more well-defined semantics. Its `@Nullable`
annotation is also a type-use annotation recognized by Google Java
Format, so the formatter places it after any field or method modifiers.
See https://jspecify.dev
2022-10-25 10:18:22 +02:00
Rick Ossendrijver
e00aba12c3
Make the build JDK 18+ compatible ( #304 )
2022-10-23 18:15:38 +02:00
Stephan Schroevers
7de9bede19
[maven-release-plugin] prepare for next development iteration
2022-10-13 09:20:46 +02:00
Stephan Schroevers
85cb997f1b
[maven-release-plugin] prepare release v0.4.0
2022-10-13 09:20:46 +02:00
Stephan Schroevers
d5a78186db
Augment Descriptions of Refaster rule matches ( #255 )
...
By emitting a website link, if available, and reporting the matching Refaster
rule in the description's message rather than the check name. Additionally, it
is now possible to provide a custom explanatory text, to assign a custom
severity to Refaster rules, and to override the severity of matches for all
Refaster rules by passing `-Xep:Refaster:[SEVERITY]`.
Violations of Refaster rules defined in this repository now include a link to
the rule's documentation, hosted on https://error-prone.picnic.tech .
2022-10-12 11:41:14 +02:00
Rick Ossendrijver
128e178d37
Consistently prefer "Refaster rule" over "Refaster template" ( #286 )
...
As the former term references a class containing one or more `@BeforeTemplate`
methods, one or more `@Placeholder` methods and an optional `@AfterTemplate`,
while the latter term more narrowly references a single `@BeforeTemplate` or
`@AfterTemplate` method.
2022-10-11 17:23:54 +02:00
Rick Ossendrijver
5b079eef84
Rename package tech.picnic.errorprone.refaster.{util => matchers} ( #267 )
2022-09-29 10:29:36 +02:00
Rick Ossendrijver
891fecd297
Replace occurrences of "which" with "that" in defining clauses ( #259 )
2022-09-25 19:09:22 +02:00
Stephan Schroevers
72a124a20e
[maven-release-plugin] prepare for next development iteration
2022-09-20 13:47:18 +02:00
Stephan Schroevers
326f3328a7
[maven-release-plugin] prepare release v0.3.0
2022-09-20 13:47:16 +02:00