2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-09-04 16:25:32 +00:00

add scalac option for fatal warnings (#24) (#90)

This commit is contained in:
Michael Smith
2018-08-10 18:09:35 -05:00
committed by Paul Cleary
parent a634015346
commit 92f6b860f8
3 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
package vinyldns.api.domain.batch
import cats.data.Validated.{Invalid, Valid}
import cats.data.{NonEmptyList, _}
import cats.data._
import cats.implicits._
import vinyldns.api.domain.DomainValidationError

View File

@@ -26,7 +26,7 @@ import com.typesafe.config.Config
* @param config - [[com.typesafe.config.Config]] that holds the no-op configuration. This is required in order
* to dynamically load this Crypto implementation. However, it is not used.
*/
class NoOpCrypto(config: Config) extends CryptoAlgebra {
class NoOpCrypto(val config: Config) extends CryptoAlgebra {
def encrypt(value: String): String = value
def decrypt(value: String): String = value
}

View File

@@ -16,6 +16,7 @@ object CompilerOptions {
"-Xlint:private-shadow", // A private field (or class parameter) shadows a superclass field
"-Xlint:type-parameter-shadow", // A local type parameter shadows a type already in scope.
"-Xlint:unsound-match", // Pattern match may not be typesafe.
"-Xfatal-warnings", // Enable failure of compilation when warnings exist.
"-Ypartial-unification", // Enable partial unification in type constructor inference
"-Ywarn-dead-code", // Warn when dead code is identified.
"-Ywarn-extra-implicit", // Warn when more than one implicit parameter section is defined.