Skip to content

Commit

Permalink
feat(language): add LanguageSummary serialization
Browse files Browse the repository at this point in the history
Add `@Serializable` annotation to `LanguageSummary` class to enable serialization and deserialization. This allows LanguageSummary objects to be converted to JSON and vice versa.
  • Loading branch information
phodal committed Feb 7, 2024
1 parent a6b3901 commit 1ffff01
Showing 1 changed file with 0 additions and 17 deletions.
Expand Up @@ -3,23 +3,6 @@ package cc.unitmesh.language
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class LanguageSummary(
var name: String = "",
var bytes: Long = 0,
var codeBytes: Long = 0,
var lines: Long = 0,
var code: Long = 0,
var comment: Long = 0,
var blank: Long = 0,
var complexity: Long = 0,
var count: Long = 0,
var weightedComplexity: Double = 0.0,
// we don't need to serialise this
// @Transient
// var files: List<FileJob> = listOf(),
)

@Serializable
data class Quote(
val start: String,
Expand Down

0 comments on commit 1ffff01

Please sign in to comment.