Skip to content

Commit 00da05e

Browse files
committed
Restore scalafix and reduce warning noise
1 parent ce18da5 commit 00da05e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.sbt

+3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ val scala213 = "2.13.14"
1313
val scala3 = "3.3.3"
1414

1515
ThisBuild / scalaVersion := scala213
16+
ThisBuild / semanticdbEnabled := true
17+
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
1618

1719
ThisBuild / tpolecatDefaultOptionsMode := DevMode
20+
ThisBuild / tpolecatExcludeOptions += ScalacOptions.warnDeadCode
1821

1922
lazy val slinky = project
2023
.in(file("."))

generator/src/main/scala/slinky/generator/Generator.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ object Generator {
114114
a.compatibleTags.getOrElse(extracted.tags.map(_.tagName)).flatMap { t =>
115115
val fixedT = if (t == "*") "star" else t
116116
if (attrs.isDefined && attrs.get.attributeType == "Boolean") {
117-
Seq(s"""@inline implicit def boolToPair${fixedT}Applied(attrObj: this.type): slinky.core.AttrPair[${Utils.identifierFor(t)}.tag.type] = new slinky.core.AttrPair[${Utils.identifierFor(t)}.tag.type]("${attrs.get.attributeName + nameSuffix}", true)""")
117+
Seq(s"""@inline implicit def boolToPair${fixedT}Applied(@scala.annotation.nowarn attrObj: this.type): slinky.core.AttrPair[${Utils.identifierFor(t)}.tag.type] = new slinky.core.AttrPair[${Utils.identifierFor(t)}.tag.type]("${attrs.get.attributeName + nameSuffix}", true)""")
118118
} else Seq.empty
119119
}
120120
}

0 commit comments

Comments
 (0)