|
1 |
| -<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"> |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
2 | 3 | <modelVersion>4.0.0</modelVersion>
|
3 | 4 |
|
4 | 5 | <parent>
|
|
51 | 52 | </resources>
|
52 | 53 | <testSourceDirectory>../sources/src/test/scala</testSourceDirectory>
|
53 | 54 | <testResources>
|
54 |
| - <testResource> |
55 |
| - <directory>../sources/src/test/resources</directory> |
56 |
| - </testResource> |
| 55 | + <testResource> |
| 56 | + <directory>../sources/src/test/resources</directory> |
| 57 | + </testResource> |
57 | 58 | </testResources>
|
58 | 59 | <plugins>
|
59 | 60 | <plugin>
|
|
67 | 68 | <plugin>
|
68 | 69 | <groupId>net.alchim31.maven</groupId>
|
69 | 70 | <artifactId>scala-maven-plugin</artifactId>
|
| 71 | + <configuration> |
| 72 | + <!-- https://nathankleyn.com/2019/05/13/recommended-scalac-flags-for-2-13/ --> |
| 73 | + <args> |
| 74 | + <!-- Emit warning and location for usages of deprecated APIs. --> |
| 75 | + <arg>-deprecation</arg> |
| 76 | + <!-- Explain type errors in more detail. --> |
| 77 | + <arg>-explaintypes</arg> |
| 78 | + <!-- Emit warning and location for usages of features that should be imported explicitly. --> |
| 79 | + <arg>-feature</arg> |
| 80 | + <!-- Existential types (besides wildcard types) can be written and inferred --> |
| 81 | + <arg>-language:existentials</arg> |
| 82 | + <!-- Allow macro definition (besides implementation and application) --> |
| 83 | + <arg>-language:experimental.macros</arg> |
| 84 | + <!-- Allow higher-kinded types --> |
| 85 | + <arg>-language:higherKinds</arg> |
| 86 | + <!-- Allow definition of implicit functions called views --> |
| 87 | + <arg>-language:implicitConversions</arg> |
| 88 | + <!-- Enable additional warnings where generated code depends on assumptions. --> |
| 89 | + <arg>-unchecked</arg> |
| 90 | + <!-- Wrap field accessors to throw an exception on uninitialized access. --> |
| 91 | + <arg>-Xcheckinit</arg> |
| 92 | + <!-- Fail the compilation if there are any warnings. --> |
| 93 | + <arg>-Xfatal-warnings</arg> |
| 94 | + <!-- Warn if an argument list is modified to match the receiver. --> |
| 95 | + <arg>-Xlint:adapted-args</arg> |
| 96 | + <!-- Evaluation of a constant arithmetic expression results in an error. --> |
| 97 | + <arg>-Xlint:constant</arg> |
| 98 | + <!-- Selecting member of DelayedInit. --> |
| 99 | + <arg>-Xlint:delayedinit-select</arg> |
| 100 | + <!-- A Scaladoc comment appears to be detached from its element. --> |
| 101 | + <arg>-Xlint:doc-detached</arg> |
| 102 | + <!-- Warn about inaccessible types in method signatures. --> |
| 103 | + <arg>-Xlint:inaccessible</arg> |
| 104 | + <!-- Warn when a type argument is inferred to be `Any`. --> |
| 105 | + <arg>-Xlint:infer-any</arg> |
| 106 | + <!-- A string literal appears to be missing an interpolator id. --> |
| 107 | + <arg>-Xlint:missing-interpolator</arg> |
| 108 | + <!-- Warn when non-nullary `def f()' overrides nullary `def f'. --> |
| 109 | + <arg>-Xlint:nullary-override</arg> |
| 110 | + <!-- Warn when nullary methods return Unit. --> |
| 111 | + <arg>-Xlint:nullary-unit</arg> |
| 112 | + <!-- Option.apply used implicit view. --> |
| 113 | + <arg>-Xlint:option-implicit</arg> |
| 114 | + <!-- Class or object defined in package object. --> |
| 115 | + <arg>-Xlint:package-object-classes</arg> |
| 116 | + <!-- Parameterized overloaded implicit methods are not visible as view bounds. --> |
| 117 | + <arg>-Xlint:poly-implicit-overload</arg> |
| 118 | + <!-- A private field (or class parameter) shadows a superclass field. --> |
| 119 | + <arg>-Xlint:private-shadow</arg> |
| 120 | + <!-- Pattern sequence wildcard must align with sequence component. --> |
| 121 | + <arg>-Xlint:stars-align</arg> |
| 122 | + <!-- A local type parameter shadows a type already in scope. --> |
| 123 | + <arg>-Xlint:type-parameter-shadow</arg> |
| 124 | + <!-- Warn when dead code is identified. --> |
| 125 | + <arg>-Ywarn-dead-code</arg> |
| 126 | + <!-- Warn when more than one implicit parameter section is defined. --> |
| 127 | + <arg>-Ywarn-extra-implicit</arg> |
| 128 | + <!-- Warn when numerics are widened. --> |
| 129 | + <arg>-Ywarn-numeric-widen</arg> |
| 130 | + <!-- Warn if an implicit parameter is unused. --> |
| 131 | + <arg>-Ywarn-unused:implicits</arg> |
| 132 | + <!-- Warn if an import selector is not referenced. --> |
| 133 | + <arg>-Ywarn-unused:imports</arg> |
| 134 | + <!-- Warn if a local definition is unused. --> |
| 135 | + <arg>-Ywarn-unused:locals</arg> |
| 136 | + <!-- Warn if a value parameter is unused. --> |
| 137 | + <arg>-Ywarn-unused:params</arg> |
| 138 | + <!-- Warn if a variable bound in a pattern is unused. --> |
| 139 | + <arg>-Ywarn-unused:patvars</arg> |
| 140 | + <!-- Warn if a private member is unused. --> |
| 141 | + <arg>-Ywarn-unused:privates</arg> |
| 142 | + <!-- Warn when non-Unit expression results are unused. --> |
| 143 | + <arg>-Ywarn-value-discard</arg> |
| 144 | + <!-- Enable paralellisation — change to desired number! --> |
| 145 | + <arg>-Ybackend-parallelism</arg> |
| 146 | + <arg>8</arg> |
| 147 | + <!-- Enables caching of classloaders for compiler plugins --> |
| 148 | + <arg>-Ycache-plugin-class-loader:last-modified</arg> |
| 149 | + <!-- and macro definitions. This can lead to performance improvements. --> |
| 150 | + <arg>-Ycache-macro-class-loader:last-modified</arg> |
| 151 | + </args> |
| 152 | + <excludes> |
| 153 | + <exclude>**/*.java</exclude> |
| 154 | + </excludes> |
| 155 | + </configuration> |
70 | 156 | </plugin>
|
71 | 157 | <plugin>
|
72 | 158 | <groupId>org.apache.maven.plugins</groupId>
|
|
0 commit comments