ForNeVeR/dotnet-licenses

Better normalization of the copyright statements

ForNeVeR opened this issue · 0 comments

See this TODO comment:

# TODO: This should be performed using the tooling provided by dotnet-authors in the future.
function normalizeCopyrights($copyrights) {
$normalized = @()
foreach ($copyright in $copyrights) {
if ($copyright -eq '© 2024 Friedrich von Never') {
$normalized += '2024 Friedrich von Never <friedrich@fornever.me>'
} else {
$normalized += $copyright
}
}
return $normalized
}

For now, this is a quick hack, but in the future my intention will be to have a general tool to work with copyright statements in the form of the dotnet-authors package.