Skip to content

Commit

Permalink
Customize and enable linter by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-schlichtherle committed Aug 1, 2023
1 parent 58cbb02 commit d6bb333
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down Expand Up @@ -58,6 +59,20 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<!--
- We turn off:
- + `auxiliaryClass` because it would complain about every call to `MyModule$.new$()`
which is required to use Bali DI.
- + `processing` because it would complain about every runtime annotation.
-->
<arg>-Xlint:all,-auxiliaryclass,-processing</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
Expand All @@ -74,24 +89,4 @@
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>lint</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>-Xlint</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project>

0 comments on commit d6bb333

Please sign in to comment.