Skip to content

Commit 996d5dc

Browse files
committed
Categorize more warnings in raport-failures script
1 parent 9332e80 commit 996d5dc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/raport-failures.scala

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ object warnings:
109109
all
110110
.find(_.matches(messageNormalized))
111111
.orElse:
112-
// println("\n" + messageNormalized + "\n")
112+
System.err.println("Uncategorized warning: " + message)
113113
None
114114

115115
lazy val all = List(
@@ -166,13 +166,18 @@ object warnings:
166166
Category("Promoting the value to transitively initialized (Hot) failed due to the following problem:"),
167167
Category("Unset local variable"),
168168
// migration warningss
169-
Category("Result of implicit search for .* will change"),
169+
Category("Result of implicit search for .* change"),
170+
Category("Given search preference for .* between alternatives .* change"),
171+
Category("Overloading resolution for arguments .* between alternatives .*change"),
170172
Category("Context bounds will map to context parameters"),
171173
Category("According to new variance rules, this is no longer accepted; need to annotate with @uncheckedVariance"),
172174
Category("The conversion .* will not be applied implicitly here in Scala 3 because only implicit methods and instances of Conversion class will continue to work as implicit views"),
173175
Category("Type ascriptions after patterns other than:.* are no longer supported"),
174176
Category(".* in package .* has changed semantics in version"),
175177
Category("@SerialVersionUID does nothing on a trait"),
178+
Category("Implicit parameters should be provided with a `using` clause"),
179+
// Scaladoc
180+
Category("Couldn't resolve a member for the given link query"),
176181
// project specific
177182
Category("Found a problem with your DI wiring", Some("7mind/izumi specific")) ,
178183
Category("Pathological intersection refinement result in lambda being reconstructed ", Some("7mind/izumi specific")),
@@ -185,6 +190,7 @@ object warnings:
185190
Category("cannot handle class .*: no case accessor", Some("anorm specific")),
186191
Category("The entry .* must be defined in the enum companion", Some("enumeratun specific")),
187192
Category("defaulting to foreach, can not optimise range expression", Some("metarank/ltrlib specific")),
193+
Category("A non-inlined expression .* is forcing the query to become dynamic", Some("doobie specific"))
188194
)
189195
def warningsFilter(warning: Warning): Boolean = warning match {
190196
case Warning.CompilationWarning(code, kind, sourceFile, line, column, message, source, explained) =>

0 commit comments

Comments
 (0)