@@ -25,20 +25,19 @@ class ChangelogChecker(config: Config, versionExceptions: Seq[String], overwrite
25
25
).call(stderr = os.Pipe ) // mute warnings
26
26
27
27
private def checkTree (moduleName : String )(binaryVersion : String , previousSnapshot : Dep , currentSnapshot : Dep ): Unit =
28
- println(s " \n Checking tree for $binaryVersion... " )
28
+ println(s " \n Checking tree for binary version $binaryVersion... " )
29
29
30
30
val summary = SnapshotDiffValidator .summarize(previousSnapshot, currentSnapshot)
31
31
if summary.illegalDiffs.nonEmpty then
32
- println(s " For $binaryVersion found diffs illegal to introduce on this update type: ${summary.updateType}" )
33
- println(s " Illegal diffs: \n ${summary.illegalDiffs.mkString(" - " , " \n - " , " \n " )}" )
32
+ println(s " Illegal diffs for ${summary.updateType}: \n ${summary.illegalDiffs.mkString(" - " , " \n - " , " \n " )}" )
34
33
if versionExceptions.contains(currentSnapshot.version.toString) then
35
- println(currentSnapshot.version.toString + " is explicit exception, ignoring illegal diffs " )
34
+ println(" Ignoring illegal diffs because " + currentSnapshot.version.toString + " is found in exceptions.txt " )
36
35
else throw IllegalDiffs ()
37
36
38
37
val diffsFound = summary.diffs.nonEmpty
39
38
40
39
if diffsFound then
41
- println(" Found diffs in development version : \n " + summary.diffs.mkString(" - " , " \n - " , " " ))
40
+ println(" All diffs are : \n " + summary.diffs.mkString(" - " , " \n - " , " " ))
42
41
else
43
42
println(" No diffs found" )
44
43
@@ -55,9 +54,8 @@ class ChangelogChecker(config: Config, versionExceptions: Seq[String], overwrite
55
54
def changelogsDiff = generatedChangelog.diff(parsedChangelog)
56
55
57
56
if changelogsDiff.nonEmpty then
58
- println(" Found diffs in changelog : \n " + changelogsDiff.get)
57
+ println(" Changelog file is outdated : \n " + changelogsDiff.get)
59
58
if ! overwrite then throw AlreadyExists ()
60
-
61
59
else
62
60
val input = if yes then " y" else StdIn .readLine(" Overwrite symbols? (y/N)" )
63
61
if input == " y" || input == " Y" then
@@ -70,10 +68,10 @@ class ChangelogChecker(config: Config, versionExceptions: Seq[String], overwrite
70
68
println(" Overwritten" )
71
69
else throw UserRejection ()
72
70
else
73
- println(" No diffs found in changelog " )
71
+ println(" Changelog file is up-to-date " )
74
72
75
73
object SnapshotDiffValidator :
76
- def summarize (previous : Dep , current : Dep ): DiffSummary =
74
+ def summarize (previous : Dep , current : Dep ): DiffSummary =
77
75
val versionDiff = Version .compareVersions(previous.version, current.version)
78
76
79
77
def traverseDep (oldDep : Option [Dep ], newDep : Option [Dep ], enteredFrom : Option [Dep ] = None ): List [Diff ] =
0 commit comments