-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ref value to encoded JSON and XML #180
base: main
Are you sure you want to change the base?
Conversation
|
||
object ProjectDependencies { | ||
|
||
private val catsVersion = "2.9.0" | ||
private val catsEffectVersion = "3.4.10" | ||
private val circeVersion = "0.14.5" | ||
private val catsXmlVersion = "0.0.9" | ||
private val catsXmlVersion = "0.0.10" |
Check notice
Code scanning / Scalastyle (reported by Codacy)
Field name does not match the regular expression '^[A-Z][A-Za-z0-9]*$'. Note
@@ -47,7 +47,7 @@ | |||
<Verdict type="Allowed"> | |||
<EvaluatedRules> | |||
<RuleResult> | |||
<RuleInfo name="Check Y value" description="" targetInfo=""> | |||
<RuleInfo ref="5340595900475325933418219074917" name="Check Y value" description="" targetInfo=""> |
Check notice
Code scanning / Scalastyle (reported by Codacy)
Use correct indentation. Note
@@ -113,7 +113,7 @@ | |||
// <Verdict type="Denied"> | |||
// <EvaluatedRules> | |||
// <RuleResult> | |||
// <RuleInfo name="Check UK citizenship" description="" targetInfo="citizenship"> | |||
// <RuleInfo ref="130951030448721307306845976060863283070036075973018254042724231716505479005503484356976" name="Check UK citizenship" description="" targetInfo="citizenship"> |
Check warning
Code scanning / Markdownlint (reported by Codacy)
Expected: 80; Actual: 179 Warning
@@ -127,7 +127,7 @@ | |||
// </Verdict> | |||
// </RuleResult> | |||
// <RuleResult> | |||
// <RuleInfo name="Check Age >= 18" description="" targetInfo="age"> | |||
// <RuleInfo ref="6456384276212653871606686934193894105466714179028215653" name="Check Age >= 18" description="" targetInfo="age"> |
Check warning
Code scanning / Markdownlint (reported by Codacy)
Expected: 80; Actual: 134 Warning
@@ -55,7 +55,7 @@ | |||
.targetInfo("age") | |||
.contramap(_.age) | |||
) | |||
// allPersonRules: NonEmptyList[PureRule[Person]] = NonEmptyList(RuleImpl(scala.Function1$$Lambda$11130/0x000000080284d2d8@51548dba,RuleInfo(Check UK citizenship,None,Some(citizenship))), RuleImpl(scala.Function1$$Lambda$11130/0x000000080284d2d8@1e2818b1,RuleInfo(Check Age >= 18,None,Some(age)))) | |||
// allPersonRules: NonEmptyList[PureRule[Person]] = NonEmptyList(RuleImpl(scala.Function1$$Lambda$13094/0x0000000802e2c000@70daf84e,RuleInfo(Check UK citizenship,None,Some(citizenship))), RuleImpl(scala.Function1$$Lambda$13094/0x0000000802e2c000@3e336048,RuleInfo(Check Age >= 18,None,Some(age)))) |
Check warning
Code scanning / Markdownlint (reported by Codacy)
Expected: 80; Actual: 297 Warning
@@ -55,7 +55,7 @@ | |||
.targetInfo("age") | |||
.contramap(_.age) | |||
) | |||
// allPersonRules: NonEmptyList[PureRule[Person]] = NonEmptyList(RuleImpl(scala.Function1$$Lambda$11130/0x000000080284d2d8@3d4c38ac,RuleInfo(Check UK citizenship,None,Some(citizenship))), RuleImpl(scala.Function1$$Lambda$11130/0x000000080284d2d8@158954df,RuleInfo(Check Age >= 18,None,Some(age)))) | |||
// allPersonRules: NonEmptyList[PureRule[Person]] = NonEmptyList(RuleImpl(scala.Function1$$Lambda$13094/0x0000000802e2c000@61347703,RuleInfo(Check UK citizenship,None,Some(citizenship))), RuleImpl(scala.Function1$$Lambda$13094/0x0000000802e2c000@226215ec,RuleInfo(Check Age >= 18,None,Some(age)))) |
Check warning
Code scanning / Markdownlint (reported by Codacy)
Expected: 80; Actual: 297 Warning
@@ -81,7 +81,7 @@ | |||
.targetInfo("age") | |||
.contramap(_.age) | |||
) | |||
// allPersonRules: NonEmptyList[PureRule[Person]] = NonEmptyList(RuleImpl(scala.Function1$$Lambda$11130/0x000000080284d2d8@eb0606d,RuleInfo(Check UK citizenship,None,Some(citizenship))), RuleImpl(scala.Function1$$Lambda$11130/0x000000080284d2d8@2b5de320,RuleInfo(Check Age >= 18,None,Some(age)))) | |||
// allPersonRules: NonEmptyList[PureRule[Person]] = NonEmptyList(RuleImpl(scala.Function1$$Lambda$13094/0x0000000802e2c000@42b306f2,RuleInfo(Check UK citizenship,None,Some(citizenship))), RuleImpl(scala.Function1$$Lambda$13094/0x0000000802e2c000@28926acd,RuleInfo(Check Age >= 18,None,Some(age)))) |
Check warning
Code scanning / Markdownlint (reported by Codacy)
Expected: 80; Actual: 297 Warning
|
||
object ProjectDependencies { | ||
|
||
private val catsVersion = "2.9.0" | ||
private val catsEffectVersion = "3.4.10" | ||
private val circeVersion = "0.14.5" | ||
private val catsXmlVersion = "0.0.9" | ||
private val catsXmlVersion = "0.0.10" |
Check notice
Code scanning / Codacy-scalameta-pro (reported by Codacy)
Values should have minimum scope to avoid misuses. Note
.withMinSuccessfulTests(2000) | ||
|
||
property("RuleRef.fromString is unique for each string") { | ||
val history: scala.collection.mutable.Map[String, RuleRef] = scala.collection.mutable.Map.empty |
Check warning
Code scanning / Codacy-scalameta-pro (reported by Codacy)
Prefer using immutable collections. Warning
@@ -0,0 +1,38 @@ | |||
package erules |
Check notice
Code scanning / Scalastyle (reported by Codacy)
File must not end with newline character. Note
@@ -0,0 +1,38 @@ | |||
package erules |
Check notice
Code scanning / Scalastyle (reported by Codacy)
Header does not match expected text. Note
override def scalaCheckTestParameters: Test.Parameters = | ||
super.scalaCheckTestParameters | ||
.withMinSize(100) | ||
.withMinSuccessfulTests(2000) |
Check notice
Code scanning / Scalastyle (reported by Codacy)
Use of a magic number. Note
val history: scala.collection.mutable.Map[String, RuleRef] = scala.collection.mutable.Map.empty | ||
forAll { (str: String) => | ||
val ref = RuleRef.fromString(str) | ||
if (!history.contains(str)) |
Check notice
Code scanning / Scalastyle (reported by Codacy)
If block needs braces. Note
|
||
override def scalaCheckTestParameters: Test.Parameters = | ||
super.scalaCheckTestParameters | ||
.withMinSize(100) |
Check notice
Code scanning / Scalastyle (reported by Codacy)
Use of a magic number. Note
@@ -47,7 +47,7 @@ | |||
<Verdict type="Allowed"> | |||
<EvaluatedRules> | |||
<RuleResult> | |||
<RuleInfo name="Check Y value" description="" targetInfo=""> | |||
<RuleInfo ref="4857243675792529696" name="Check Y value" description="" targetInfo=""> |
Check notice
Code scanning / Scalastyle (reported by Codacy)
Use correct indentation. Note
No description provided.