Skip to content

Commit 6f8487d

Browse files
committed
Configured coverage ignore regex, since COVERAGE-OFF/ON was not working for scala version
1 parent 2cf0bb1 commit 6f8487d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

project/Common.scala

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import com.typesafe.sbt.site.SitePlugin.autoImport.siteDirectory
22
import org.scalafmt.sbt.ScalafmtPlugin.autoImport.scalafmtOnCompile
3-
import org.tmt.sbt.docs.DocKeys._
4-
import sbt.Keys._
5-
import sbt._
3+
import org.tmt.sbt.docs.DocKeys.*
4+
import sbt.Keys.*
5+
import sbt.*
66
import sbt.librarymanagement.ScmInfo
77
import sbtunidoc.GenJavadocPlugin.autoImport.unidocGenjavadocVersion
8+
import scoverage.ScoverageKeys.coverageExcludedFiles
89

910
object Common {
1011
private val enableFatalWarnings: Boolean = sys.props.get("enableFatalWarnings").contains("true")
@@ -80,6 +81,8 @@ object Common {
8081
SettingKey[Boolean]("ide-skip-project"),
8182
aggregate, // verify if this needs to be here or our configuration is wrong
8283
unidocGenjavadocVersion // verify if this needs to be here or our configuration is wrong
83-
)
84+
),
85+
coverageExcludedFiles :=
86+
".*/AgentPekkoSerializer;.*/AgentWiring;.*/AgentApp;.*/ProcessExecutor;.*/GatewayMain;.*/SequenceManagerApp;.*/SimulationScript;.*/SequencerWiring;.*/SequenceComponentWiring;.*/SequencerApp;.*/EswCommand;.*/Keycloak;.*/AgentServiceApp;.*/BuildInfo;.*/.*Codecs;.*/AgentCliCommand;.*/AgentServiceApi;.*/ComponentNotFoundException;.*/ContainerConfig;.*/EitherExt;.*/EitherOps;.*/Failed;.*/EventApi;.*/StartOptions;.*/StartOptions;.*/ScriptError;.*/UnhandledCommandException;.*/ProvisionVersionFailure;.*/SequenceManagerResponses;.*/Timeouts;.*/ProcessUtils;.*/HostConfig"
8487
)
8588
}

0 commit comments

Comments
 (0)