Skip to content

Commit

Permalink
Add LinkChecker using thirdparty library - Scalaz
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-adam committed Feb 1, 2020
1 parent fbf0bf8 commit 2e85a19
Show file tree
Hide file tree
Showing 83 changed files with 619 additions and 520 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Hyde
Mr. Hyde - script for testing internal links
# LinkChecker
Link Checker - script for testing internal links

Clone:
```bash
git clone https://github.com/writeonly/hyde.git
cd hyde
git clone https://github.com/writeonly/linkchecker.git
cd linkchecker
```

Refactor and reformat:
Expand All @@ -15,14 +15,14 @@ sbt scalafmtSbt scalafmt test:scalafmt it:scalafmt

Check lint and format:
```bash
sbt 'hyde/scalafix --check' 'hyde/test:scalafix --check' 'hyde/it:scalafix --check' &&
sbt scalafmtSbtCheck hyde/scalafmtCheck hyde/test:scalafmtCheck hyde/it:scalafmtCheck
sbt 'linkchecker/scalafix --check' 'linkchecker/test:scalafix --check' 'linkchecker/it:scalafix --check' &&
sbt scalafmtSbtCheck linkchecker/scalafmtCheck linkchecker/test:scalafmtCheck linkchecker/it:scalafmtCheck
```

Compile, test and generate coverage report:
```bash
sbt clean compile test:compile it:compile &&
sbt coverage hyde/test hyde/it:test coverageReport &&
sbt coverage linkchecker/test linkchecker/it:test coverageReport &&
sbt coverageAggregate
```

Expand All @@ -34,16 +34,16 @@ sbt scapegoat cpd stats

All:
```bash
sbt hyde/scalafix hyde/test:scalafix hyde/it:scalafix &&
sbt hyde/scalafmtSbt hyde/scalafmt hyde/test:scalafmt hyde/it:scalafmt &&
sbt clean hyde/compile hyde/test:compile hyde/it:compile hyde/test &&
sbt coverage hyde/test hyde/it:test coverageReport &&
sbt linkchecker/scalafix linkchecker/test:scalafix linkchecker/it:scalafix &&
sbt linkchecker/scalafmtSbt linkchecker/scalafmt linkchecker/test:scalafmt linkchecker/it:scalafmt &&
sbt clean linkchecker/compile linkchecker/test:compile linkchecker/it:compile linkchecker/test &&
sbt coverage linkchecker/test linkchecker/it:test coverageReport &&
sbt coverageAggregate &&
sbt scalastyle test:scalastyle it:scalastyle &&
sbt scapegoat cpd stats
```

Run:
```bash
sbt hyde/run
sbt linkchecker/run
```
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ val ScalaFixScalacOptionsOff = Seq(
"-Xfatal-warnings", // it should be disabled for scalafix
)

val mainClassString = "pl.writeonly.scala.hyde.impl.Hyde"
val mainClassString = "pl.writeonly.linkchecker.scala.impl.LinkCheckerApp"
val mainClassSome = Some(mainClassString)

scalaVersion := "2.12.10"
Expand Down Expand Up @@ -59,7 +59,7 @@ val jvmSettings = Seq(
),
)

lazy val hyde = crossProject(JVMPlatform)
lazy val linkchecker = crossProject(JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Full)
.settings(SharedSettings)
Expand All @@ -75,6 +75,6 @@ lazy val hyde = crossProject(JVMPlatform)
// PropsTest
.settings(scalapropsCoreSettings)

lazy val hydeJVM = hyde.jvm
lazy val hydeJVM = linkchecker.jvm


This file was deleted.

111 changes: 0 additions & 111 deletions hyde/jvm/src/main/scala/pl/writeonly/scala/hyde/impl/Hyde.scala

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2e85a19

Please sign in to comment.