Skip to content

Commit 352d9c1

Browse files
committed
chore: Introduce strict-warning profile for Scala
1 parent f8e4e49 commit 352d9c1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,30 @@ under the License.
718718
</pluginManagement>
719719
</build>
720720
</profile>
721+
<profile>
722+
<id>strict-warnings</id>
723+
<build>
724+
<plugins>
725+
<plugin>
726+
<groupId>net.alchim31.maven</groupId>
727+
<artifactId>scala-maven-plugin</artifactId>
728+
<configuration>
729+
<args>
730+
<arg>-deprecation</arg>
731+
<arg>-unchecked</arg>
732+
<arg>-feature</arg>
733+
<arg>-Xlint:_</arg>
734+
<arg>-Ywarn-dead-code</arg>
735+
<arg>-Ywarn-numeric-widen</arg>
736+
<arg>-Ywarn-value-discard</arg>
737+
<arg>-Ywarn-unused:imports,patvars,privates,locals,params,-implicits</arg>
738+
<arg>-Xfatal-warnings</arg>
739+
</args>
740+
</configuration>
741+
</plugin>
742+
</plugins>
743+
</build>
744+
</profile>
721745
</profiles>
722746

723747
<build>

0 commit comments

Comments
 (0)