Formats code comments as sentences in the production sources.

Capitalizes the first word and adds the terminal period across the domain, application, data access, infrastructure, API and web layers and the plugins. No comment is reworded. The change also normalizes the TODO bodies to lowercase, leaves commented-out code untouched, corrects the Threat/Treat typo and the dangling hyphen in the exception middleware, and collapses two accidental repeated terminal periods.
This commit is contained in:
BinaryAlley committed 2026-11-16 18:16:17 +02:00
1 parent 88455fec9c
commit 727aa33318
142 files changed
+403 -403

No files matched your search

@@ -53,7 +53,7 @@ internal sealed class CalibreArtworkProvider : IArtworkProvider<BookMetadataLook
if (string.IsNullOrWhiteSpace(document.CoverHref))
return Task.FromResult<IReadOnlyList<ArtworkDto>>([]);
// the cover reference must be a bare file name contained in the directory of the book, so that no file outside of it can be accessed
// The cover reference must be a bare file name contained in the directory of the book, so that no file outside of it can be accessed.
string coverFileName = Path.GetFileName(document.CoverHref);
if (coverFileName != document.CoverHref || Path.IsPathRooted(document.CoverHref))
return Task.FromResult<IReadOnlyList<ArtworkDto>>([]);
@@ -34,7 +34,7 @@ internal static class OpfReader
try
{
using FileStream fileStream = File.OpenRead(opfFilePath);
// the OPF file is untrusted XML, so DTD processing and external entity resolution are disabled, and the document size is bounded
// The OPF file is untrusted XML, so DTD processing and external entity resolution are disabled, and the document size is bounded.
XmlReaderSettings xmlReaderSettings = new()
{
DtdProcessing = DtdProcessing.Prohibit,
@@ -48,7 +48,7 @@ internal static class OpfReader
}
catch (XmlException)
{
// a malformed OPF file must not prevent the enrichment of the book from proceeding
// A malformed OPF file must not prevent the enrichment of the book from proceeding.
}
return document;