File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222package fabric .rw
2323
2424import fabric .JsonWrapper
25- import fabric .define .{ Definition , DefType , Format }
25+ import fabric .define .Definition
2626
2727import scala .reflect .macros .blackbox
2828
2929object RWMacros {
3030 private def fullTypeName (context : blackbox.Context )(tpe : context.universe.Type ): String = {
31- import context .universe ._
3231 val base = tpe.typeSymbol.fullName
3332 val args = tpe.typeArgs
3433 if (args.isEmpty) base
Original file line number Diff line number Diff line change @@ -667,7 +667,6 @@ object CompileRW extends CompileRW {
667667 }
668668
669669 private def extractFieldGenericNames (using Quotes )(tpe : quotes.reflect.TypeRepr ): Expr [Map [String , String ]] = {
670- import quotes .reflect ._
671670 val typeSymbol = tpe.typeSymbol
672671 val typeParamSymbols = typeSymbol.primaryConstructor.paramSymss.headOption match {
673672 case Some (params) if params.nonEmpty && params.head.isTypeParam => params
Original file line number Diff line number Diff line change 55export CI=true
66
77./validate.sh
8- sbt +clean
9- sbt +root/compile
10- sbt +root/test
118sbt +root/doc
129sbt docs/mdoc
1310sbt " util/runMain util.DoRelease $@ "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ # Simulate CI environment so sbt-typelevel enables fatal warnings
5+ export CI=true
6+ export GITHUB_ACTIONS=true
7+
8+ echo " === Generating CI workflow ==="
19sbt githubWorkflowGenerate
10+
11+ echo " === Creating license headers ==="
212sbt +headerCreate
313sbt " +Test / headerCreate"
14+
15+ echo " === Formatting code ==="
416sbt scalafmtSbt
517sbt +root/scalafmt
618sbt " +Test / scalafmt"
7- sbt " +Test / scalafmtCheck"
19+
20+ echo " === Checking headers ==="
21+ sbt +headerCheckAll
22+
23+ echo " === Checking formatting ==="
24+ sbt " +Test / scalafmtCheck"
25+ sbt scalafmtSbtCheck
26+
27+ echo " === Compiling (with fatal warnings) ==="
28+ sbt +clean +compile
29+
30+ echo " === Running tests ==="
31+ sbt +test
32+
33+ echo " === Validation complete ==="
You can’t perform that action at this time.
0 commit comments