Skip to content

Commit

Permalink
Solved typos and IDE inspections
Browse files Browse the repository at this point in the history
  • Loading branch information
ulitol97 committed Apr 26, 2022
1 parent 72fe986 commit 5d57b94
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 30 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<p align="center">
<!--suppress HtmlDeprecatedAttribute -->
<div align="center">
<img alt="comet logo" src="https://user-images.githubusercontent.com/35763574/162334885-228fc9fc-8e28-4b80-83e7-ace6c8fb1190.png"/>
</p>
</div>

<br/>

Expand Down
1 change: 1 addition & 0 deletions img/full.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/name.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# suppress inspection "UnusedProperty" for whole file
sbt.version = 1.6.2
26 changes: 1 addition & 25 deletions src/main/scala/Main.scala
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
package org.ragna.comet

import data.DataFormat
import exception.stream.validations.*
import implicits.RDFElementImplicits.rdfFromString
import model.rdf.RDFElement
import stream.StreamSource
import stream.extractors.StreamExtractor
import stream.extractors.file.{Charsets, FileExtractor}
import stream.extractors.kafka.{KafkaExtractor, KafkaExtractorConfiguration}
import stream.extractors.list.ListExtractor
import trigger.ShapeMapFormat.COMPACT
import trigger.{ShapeMapFormat, TriggerShapeMap, TriggerTargetDeclarations, ValidationTrigger}
import utils.StreamUtils.*
import utils.{IODebugOps, StreamUtils, Timer}
import validation.Validator
import validation.configuration.ValidatorConfiguration

import cats.effect.*
import cats.syntax.functor.*
import fs2.io.file.*
import fs2.{Pipe, Stream}

import java.text.SimpleDateFormat
import java.util.{Calendar, Date, Locale}
import scala.concurrent.duration.*
import scala.util.Random
import cats.effect.{IO, IOApp, ExitCode}

/**
* Demo entry point.
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/stream/extractors/StreamExtractor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ private[stream] object StreamExtractor {
* @return String containing the specific error ([[message]])
* preceded by [[extractorCreationErrorPrefix]]
*/
//noinspection DuplicatedCode
def mkExtractorCreationError(message: Option[String]): String = {
val attachedMessage = message.map(msg => s": $msg").getOrElse("")
s"$extractorCreationErrorPrefix$attachedMessage"
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/validation/Validator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class Validator[A](configuration: ValidatorConfiguration,
// Could not create validation trigger, error result
case Left(errorList) =>
IO.pure(ValidationReport.errStr(
s"""${invalidValidationTrigger}:
s"""$invalidValidationTrigger:
|${errorList.mkString(", ")}
|""".stripMargin.strip()))
// Validation trigger is OK, attempt validation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ object ValidatorConfiguration {
* @return String containing the specific error ([[message]])
* preceded by [[configurationCreationErrorPrefix]]
*/
//noinspection DuplicatedCode
def mkConfigurationCreationError(message: Option[String]): String = {
val attachedMessage = message.map(msg => s": $msg").getOrElse("")
s"$configurationCreationErrorPrefix$attachedMessage"
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/validation/halting/HaltingTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import org.scalatest.matchers.should.Matchers
*
* @note We understand as invalid validations those whose result is INVALID,
* whereas errored validations are those who cannot be completed due to
* an error in the validation process (nomally due to bad data/schema
* an error in the validation process (normally due to bad data/schema
* syntax)
* @note Standard behaviour (not halting on VALID items) is not tested here
* since it is already exhaustively tested in [[SchemaTests]]
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "0.1.0"
ThisBuild / version := "0.2.0"

0 comments on commit 5d57b94

Please sign in to comment.