Remove stale runtime-specific authority maps
This commit is contained in:
parent
3cfa6d3506
commit
a66e1e9e9d
5 changed files with 51 additions and 29 deletions
|
|
@ -1453,6 +1453,7 @@ static void RequireNoDeadRuntimeProjectionClasses(string root)
|
|||
{
|
||||
var forbiddenSymbols = new[]
|
||||
{
|
||||
"AetheriaRuntimeRtsSimulation",
|
||||
"AetheriaRuntimeRtsProjection",
|
||||
"AetheriaRuntimeStarbridgeProjection"
|
||||
};
|
||||
|
|
@ -1479,6 +1480,27 @@ static void RequireNoDeadRuntimeProjectionClasses(string root)
|
|||
"Dead runtime projection class names must stay deleted; use typed document builders/handles instead: " +
|
||||
string.Join("; ", hits));
|
||||
}
|
||||
|
||||
var activeDocsRoot = Path.Combine(root, "Aetheria.State", "docs");
|
||||
if (Directory.Exists(activeDocsRoot))
|
||||
{
|
||||
var docHits = Directory.EnumerateFiles(activeDocsRoot, "*.md", SearchOption.AllDirectories)
|
||||
.SelectMany(path =>
|
||||
{
|
||||
var text = File.ReadAllText(path);
|
||||
return forbiddenSymbols
|
||||
.Where(symbol => text.Contains(symbol, StringComparison.Ordinal))
|
||||
.Select(symbol => $"{Path.GetRelativePath(root, path)} contains {symbol}");
|
||||
})
|
||||
.ToArray();
|
||||
|
||||
if (docHits.Length > 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Active architecture docs must not point future work at deleted runtime-specific shared authorities: " +
|
||||
string.Join("; ", docHits));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void RequireNoDeadInspectorMetadata(string root)
|
||||
|
|
|
|||
Loading…
Reference in a new issue