-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes Sbt-org-policies Dependency (#465)
* Removes sbt-org-policies and the dependency with itself * Removes useless code * Removes more useless code * Updates docs * Fix ci-docs command alias * Apply suggestions from code review Co-Authored-By: Ben Fradet <benjamin.fradet@gmail.com> * Replaces handleError by handleErrorWith Co-authored-by: Ben Fradet <benjamin.fradet@gmail.com>
- Loading branch information
1 parent
deb28ce
commit d7d622b
Showing
15 changed files
with
715 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package microsites | ||
|
||
object Exceptions { | ||
|
||
sealed abstract class MicrositesException(val message: String, val maybeCause: Option[Throwable]) | ||
extends RuntimeException(message) | ||
with Product | ||
with Serializable { | ||
|
||
maybeCause foreach initCause | ||
|
||
override def toString: String = message | ||
} | ||
|
||
case class IOException(msg: String, cause: Option[Throwable] = None) | ||
extends MicrositesException(msg, cause) | ||
|
||
case class GitHub4sException(msg: String, cause: Option[Throwable] = None) | ||
extends MicrositesException(msg, cause) | ||
|
||
final case class UnexpectedException(msg: String, cause: Option[Throwable] = None) | ||
extends MicrositesException(msg, cause) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package microsites.github | ||
|
||
object Config { | ||
|
||
val blobMode: String = "100644" | ||
val blobType: String = "blob" | ||
|
||
val defaultTextExtensions: Set[String] = | ||
Set(".md", ".css", ".html", ".properties", ".txt", ".scala", ".sbt") | ||
val defaultMaximumSize: Int = 4048 | ||
|
||
final case class BlobConfig(acceptedExtensions: Set[String], maximumSize: Int) | ||
|
||
val defaultBlobConfig: BlobConfig = BlobConfig(defaultTextExtensions, defaultMaximumSize) | ||
|
||
} |
Oops, something went wrong.