Skip to content

Commit acdc04f

Browse files
committed
Preparing to apply scalafmt
1 parent 3c56fc0 commit acdc04f

25 files changed

+50
-0
lines changed

src/main/scala/com/codacy/client/bitbucket/client/ResponseError.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import play.api.libs.json._
66
case class ResponseError(id: String, detail: String, message: String)
77

88
object ResponseError {
9+
// format: off
910
implicit val reader: Reads[ResponseError] = (
1011
(__ \ "id").read[String] and
1112
(__ \ "details").read[String] and
1213
(__ \ "message").read[String]
1314
)(ResponseError.apply _)
15+
// format: on
1416
}

src/main/scala/com/codacy/client/bitbucket/v1/Commit.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ object Commit {
1818
}
1919
}
2020

21+
// format: off
2122
implicit val reader: Reads[Commit] = (
2223
(__ \ "hash").read[String] and
2324
(__ \ "author" \ "user" \ "username").read[String] and
2425
(__ \ "parents" \\ "hash").read[Option[Seq[String]]] and
2526
(__ \ "date").read[LocalDateTime] and
2627
(__ \ "message").read[String]
2728
)(Commit.apply _)
29+
// format: on
2830
}

src/main/scala/com/codacy/client/bitbucket/v1/CommitComment.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ object CommitComment {
1111
val dateFormat = "yyyy-MM-dd HH:mm:ssXXX"
1212
implicit val dateTimeReads: Reads[LocalDateTime] = Reads.localDateTimeReads(dateFormat)
1313

14+
// format: off
1415
implicit val reader: Reads[CommitComment] = (
1516
(__ \ "comment_id").read[Long] and
1617
(__ \ "username").read[String] and
@@ -19,4 +20,5 @@ object CommitComment {
1920
(__ \ "content").read[String] and
2021
(__ \ "utc_created_on").read[LocalDateTime]
2122
)(CommitComment.apply _)
23+
// format: on
2224
}

src/main/scala/com/codacy/client/bitbucket/v1/Email.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import play.api.libs.json._
66
case class Email(email: String, primary: Boolean, active: Boolean)
77

88
object Email {
9+
// format: off
910
implicit def emailReader: Reads[Email] =
1011
((__ \ "email").read[String] and
1112
(__ \ "primary").read[Boolean] and
1213
(__ \ "active").read[Boolean]
1314
) (Email.apply _)
15+
// format: on
1416
}

src/main/scala/com/codacy/client/bitbucket/v1/Issue.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ object Issue {
1212
val dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS"
1313
implicit val dateTimeReads: Reads[LocalDateTime] = Reads.localDateTimeReads(dateFormat)
1414

15+
// format: off
1516
implicit val reader: Reads[Issue] = (
1617
(__ \ "local_id").read[Long] and
1718
(__ \ "status").read[String] and
@@ -22,4 +23,5 @@ object Issue {
2223
(__ \ "created_on").read[LocalDateTime] and
2324
(__ \ "metadata" \ "kind").read[String]
2425
)(Issue.apply _)
26+
// format: on
2527
}

src/main/scala/com/codacy/client/bitbucket/v1/PullRequest.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ object PullRequest {
4444
}
4545
}
4646

47+
// format: off
4748
implicit val reader: Reads[PullRequest] = (
4849
(__ \ "id").read[Long] and
4950
(__ \ "title").read[String] and
@@ -63,6 +64,7 @@ object PullRequest {
6364
(__ \ "links").read[Map[String, Map[String, String]]].map(parseLinks) and
6465
(__ \ "author" \ "uuid").readNullable[String]
6566
) (PullRequest.apply _)
67+
// format: on
6668

6769
private def parseLinks(links: Map[String, Map[String, String]]): Seq[ApiUrl] = {
6870
(for {

src/main/scala/com/codacy/client/bitbucket/v1/PullRequestComment.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ object PullRequestComment {
1111
val dateFormat = "yyyy-MM-dd HH:mm:ssXXX"
1212
implicit val dateTimeReads: Reads[LocalDateTime] = Reads.localDateTimeReads(dateFormat)
1313

14+
// format: off
1415
implicit val reader: Reads[PullRequestComment] = (
1516
(__ \ "comment_id").read[Long] and
1617
(__ \ "username").read[String] and
1718
(__ \ "display_name").read[String] and
1819
(__ \ "content").read[String] and
1920
(__ \ "utc_created_on").read[LocalDateTime]
2021
)(PullRequestComment.apply _)
22+
// format: on
2123
}

src/main/scala/com/codacy/client/bitbucket/v1/PullRequestReviewers.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ case class PullRequestReviewers(reviewers: Seq[String])
66

77
object PullRequestReviewers {
88

9+
// format: off
910
implicit val reader: Reads[PullRequestReviewers] =
1011
(__ \ "reviewers" ).read(Reads.list((__ \ "uuid").read[String])).map(PullRequestReviewers.apply)
12+
// format: on
1113

1214
}

src/main/scala/com/codacy/client/bitbucket/v1/Repository.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ object Repository {
1818
Reads.localDateTimeReads(dateFormat)
1919
.orElse(Reads.localDateTimeReads(dateFormatWithoutMillis))
2020

21+
// format: off
2122
implicit val reader: Reads[Repository] = {
2223
((__ \ "name").read[String] and
2324
(__ \ "full_name").read[String] and
@@ -33,6 +34,7 @@ object Repository {
3334
(__ \ "links").read[Map[String, JsValue]].map(parseLinks)
3435
) (Repository.apply _)
3536
}
37+
// format: on
3638

3739
private def parseLinks(links: Map[String, JsValue]): Seq[RepositoryUrl] = {
3840
links.flatMap {

src/main/scala/com/codacy/client/bitbucket/v1/SimplePullRequestComment.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ case class SimplePullRequestComment(id: Long, anchor: Option[String])
77

88
object SimplePullRequestComment {
99

10+
// format: off
1011
implicit val reader: Reads[SimplePullRequestComment] = (
1112
(__ \ "comment_id").read[Long] and
1213
(__ \ "anchor").readNullable[String]
1314
)(SimplePullRequestComment.apply _)
15+
// format: on
1416
}

0 commit comments

Comments
 (0)