mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
Compare commits
1 Commits
v0.22.0
...
sschroever
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9910160c7 |
@@ -242,5 +242,11 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
||||
36
pom.xml
36
pom.xml
@@ -810,6 +810,11 @@
|
||||
<artifactId>error_prone_core</artifactId>
|
||||
<version>${version.error-prone}</version>
|
||||
</path>
|
||||
<path>
|
||||
<groupId>${groupId.error-prone}</groupId>
|
||||
<artifactId>error_prone_docgen_processor</artifactId>
|
||||
<version>${version.error-prone}</version>
|
||||
</path>
|
||||
<path>
|
||||
<groupId>com.google.auto.value</groupId>
|
||||
<artifactId>auto-value</artifactId>
|
||||
@@ -1089,6 +1094,37 @@
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>3.3.0</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<configuration>
|
||||
<mainClass>com.google.errorprone.DocGenTool</mainClass>
|
||||
<arguments>
|
||||
<argument>-bug_patterns=${project.build.directory}/generated-sources/annotations/bugPatterns.txt</argument>
|
||||
<argument>-docs_repository=${project.build.directory}/generated-wiki/</argument>
|
||||
<argument>-explanations=${basedir}/src/main/docs/bugpattern/</argument>
|
||||
<argument>-target=external</argument>
|
||||
</arguments>
|
||||
<includePluginDependencies>true</includePluginDependencies>
|
||||
</configuration>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.google.errorprone</groupId>
|
||||
<artifactId>error_prone_docgen</artifactId>
|
||||
<version>${version.error-prone}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>generate-bugpattern-docs</id>
|
||||
<goals>
|
||||
<goal>java</goal>
|
||||
</goals>
|
||||
<phase>process-classes</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
|
||||
16
refaster-runner/src/main/docs/bugpattern/Refaster.md
Normal file
16
refaster-runner/src/main/docs/bugpattern/Refaster.md
Normal file
@@ -0,0 +1,16 @@
|
||||
Error Prone's out-of-the-box support for the application of
|
||||
[Refaster][refaster] templates is somewhat cumbersome. Additionally, by default
|
||||
the focus of Refaster templates is on one-off code refactorings.
|
||||
|
||||
This plugin attempts to bring Refaster templates on equal footing with other
|
||||
Error Prone plugins by locating all Refaster templates on the classpath and
|
||||
reporing any match. The suggested changes can be applied using Error Prone's
|
||||
built-in [patch][patching] functionality.
|
||||
|
||||
XXX: Expand documentation. Mention:
|
||||
- The `refaster-resource-compiler`.
|
||||
- How checks can be restricted using the `NamePattern` flag (see the Javadoc)
|
||||
- An concrete patching example, with and without `NamePattern`.
|
||||
|
||||
[refaster]: https://errorprone.info/docs/refaster
|
||||
[patching]: https://errorprone.info/docs/patching
|
||||
Reference in New Issue
Block a user