Skip to content

Commit

Permalink
supress all when too many to suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
meghana-viswanath committed Sep 22, 2021
1 parent ef7394c commit 66bec46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
9 changes: 1 addition & 8 deletions app/uk/gov/hmrc/hecapplicantfrontend/models/CTStatus.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,7 @@ object CTStatus {

case object NoReturnFound extends CTStatus

@SuppressWarnings(
Array(
"org.wartremover.warts.Equals",
"org.wartremover.warts.Product",
"org.wartremover.warts.Serializable",
"org.wartremover.warts.Throw"
)
)
@SuppressWarnings(Array("org.wartremover.warts.All"))
implicit val format: Format[CTStatus] = Jsonx.formatSealed[CTStatus]

}
9 changes: 1 addition & 8 deletions app/uk/gov/hmrc/hecapplicantfrontend/models/SAStatus.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ object SAStatus {

case object NoReturnFound extends SAStatus

@SuppressWarnings(
Array(
"org.wartremover.warts.Throw",
"org.wartremover.warts.Equals",
"org.wartremover.warts.Product",
"org.wartremover.warts.Serializable"
)
)
@SuppressWarnings(Array("org.wartremover.warts.All"))
implicit val format: Format[SAStatus] = Jsonx.formatSealed[SAStatus]

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ object UserAnswersType {
import ai.x.play.json.SingletonEncoder.simpleName
import ai.x.play.json.implicits.formatSingleton

@SuppressWarnings(
Array(
"org.wartremover.warts.Throw",
"org.wartremover.warts.Equals",
"org.wartremover.warts.Product",
"org.wartremover.warts.Serializable"
)
)
@SuppressWarnings(Array("org.wartremover.warts.All"))
implicit val format: Format[UserAnswersType] = Jsonx.formatSealed[UserAnswersType]
}

Expand Down

0 comments on commit 66bec46

Please sign in to comment.