Skip to content

Commit 6a62947

Browse files
committed
Rename the creator IL profile
1 parent ff9257f commit 6a62947

10 files changed

Lines changed: 34 additions & 26 deletions

‎CHANGELOG.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
1717
#### Changed
1818

1919
- **Build-variant IL values are normalized instead of discarded** — MVID, method RVA, code-size, and WinForms `AxHost.TypeLibraryTimeStampAttribute` values are replaced with rule-specific stable markers in every mode. Each matching line prefix is preserved while the build-variant portion that follows it is replaced. For ILSpy's multiline type-library timestamp form, the complete byte blob through its closing `)` is collapsed into one marker. Built-in rules cover the actual comment and custom-attribute forms emitted by both supported disassemblers, including ILSpy's custom-attribute syntax without dotnet-ildasm's `class ` token, and are applied to every IL text regardless of which disassembler produced it; the disassembler recorded in reports identifies pattern provenance only. Normalization still occurs after IL cache retrieval, with no cache format or key change, so compatible existing cache entries remain reusable.
20-
- **Creator ignore defaults preserve more meaningful differences** — Removed the built-in RVA, code-size, WinForms `AxHost.TypeLibraryTimeStampAttribute`, and `.publickeytoken = (` entries from the `buildserver-winforms` ignore profile. The first three are now handled by built-in normalization in every mode. Public key token changes are no longer suppressed, so AssemblyRef token differences remain visible in creator mode.
20+
- **Creator ignore defaults preserve more meaningful differences** — Renamed the built-in ignore profile from `buildserver-winforms` to `creator-default` and removed its RVA, code-size, WinForms `AxHost.TypeLibraryTimeStampAttribute`, and `.publickeytoken = (` entries. The first three are now handled by built-in normalization in every mode. Public key token changes are no longer suppressed, so AssemblyRef token differences remain visible in creator mode.
2121
- **Normalization reporting and tool guidance are more explicit** — Markdown and HTML reports show built-in normalization rules, configured normalization substrings, and configured ignore substrings in that order. Built-in and configured-normalization tables state that their row order is the application order. The tables distinguish `Line Prefix Pattern`, `Substring to Normalize`, and `Substring to Ignore`; configured values are displayed without decorative quotes, while an enabled setting with no effective values is reported without rendering an empty table. The built-in table also shows each pattern's replacement marker and observed disassembler. Duplicate and containment-related normalization values now produce console/report warnings. Guidance clarifies sequential raw-text matching order and inserted-marker protection, why the current built-in rules are order-independent, that `nildiff` itself targets `net8.0`, and that `ilspycmd 9.1.0.7988` is pinned as the fallback baseline for inspecting assemblies targeting .NET 8/9/10. English/Japanese configuration documentation, schema, guides, and report samples are aligned with the new behavior.
2222

2323
#### Removed
2424

2525
- **`ShouldIgnoreMVID` configuration setting and API** — Removed as a breaking change; MVID values are now always normalized to `<nildiff:normalized:mvid>`. Supplying the former JSON key or `FOLDERDIFF_SHOULDIGNOREMVID` environment variable fails with an explicit migration error instead of being accepted and ignored.
26+
- **`buildserver-winforms` creator profile name** — Removed as a breaking change. Use `creator-default`; the former name follows the normal unknown-profile path and exits with invalid arguments.
2627

2728
### [1.24.0] - 2026-07-29
2829

@@ -1742,12 +1743,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
17421743
#### 変更
17431744

17441745
- **ビルド依存 IL 値を破棄せず正規化** — MVID、method RVA、code-size、WinFormsの `AxHost.TypeLibraryTimeStampAttribute` 値を、全モードで規則別の安定したマーカーへ置換するようにしました。照合した行接頭辞は保持し、それに続くビルド依存部分だけを置換します。ILSpyの複数行type-library timestamp形式では、閉じ `)` までのbyte blob全体を1個のマーカーへ縮約します。組み込み規則は、ILSpyのcustom attribute構文がdotnet-ildasmの `class ` tokenを含まない違いも含め、両対応逆アセンブラが実際に出力するコメント/custom attribute形式を網羅し、生成元の逆アセンブラに関係なくすべてのIL textへ適用します。レポート上の逆アセンブラ名はパターンの由来を示すだけです。正規化は従来どおりILキャッシュ取得後に行い、キャッシュ形式とキーは変更していないため、互換性のある既存キャッシュエントリは引き続き利用できます。
1745-
- **creator無視既定値で意味のある差分をより多く保持** — 組み込み `buildserver-winforms` 無視プロファイルから、RVA、code-size、WinForms `AxHost.TypeLibraryTimeStampAttribute`、`.publickeytoken = (` の4エントリを除去しました。最初の3つは全モードの組み込み正規化で処理します。public key token変更は抑制しなくなったため、AssemblyRefのtoken差分はcreatorモードでも残ります。
1746+
- **creator無視既定値で意味のある差分をより多く保持** — 組み込み無視プロファイルを `buildserver-winforms` から `creator-default` へ改名し、RVA、code-size、WinForms `AxHost.TypeLibraryTimeStampAttribute`、`.publickeytoken = (` の4エントリを除去しました。最初の3つは全モードの組み込み正規化で処理します。public key token変更は抑制しなくなったため、AssemblyRefのtoken差分はcreatorモードでも残ります。
17461747
- **正規化レポートとツール案内を明確化** — Markdown/HTMLレポートには、組み込み正規化規則、設定正規化部分文字列、設定無視部分文字列の順で表示します。組み込み表と設定正規化表には、行の並びが適用順であることを明記します。表では `Line Prefix Pattern`、`Substring to Normalize`、`Substring to Ignore` を区別し、設定値へ装飾的なダブルクオートを付けません。有効だが実効値が0件の場合は空の表を出さず、設定値がないことだけを明示します。組み込み表には各パターンの置換マーカーと確認元逆アセンブラも表示します。重複または包含関係にある正規化値はコンソール/レポート警告の対象にしました。raw textへの逐次一致順と挿入済みマーカーの保護、現行の組み込み規則で順序が結果へ影響しない理由、`nildiff` 本体が `net8.0` をtargetとすること、`ilspycmd 9.1.0.7988` を.NET 8/9/10をtarget frameworkとするAssembly調査の固定fallback baselineとすることを案内に明記しました。英日両方の設定文書、schema、guide、レポートサンプルを新しい挙動へ揃えました。
17471748

17481749
#### 削除
17491750

17501751
- **`ShouldIgnoreMVID` 設定とAPI** — 破壊的変更として削除しました。MVID値は常に `<nildiff:normalized:mvid>` へ正規化します。旧JSON keyまたは環境変数 `FOLDERDIFF_SHOULDIGNOREMVID` を指定すると、受理して無視せず明示的な移行エラーで失敗します。
1752+
- **creatorプロファイル名 `buildserver-winforms`** — 破壊的変更として削除しました。`creator-default` を使用してください。旧名は通常の未知profile経路でinvalid argumentsとして終了します。
17511753

17521754
### [1.24.0] - 2026-07-29
17531755

‎FolderDiffIL4DotNet.Tests/CliOptionsTests.Combined.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void ParseCliOptions_AllFlagsCombined_ParsedCorrectly()
2020
{
2121
"/old", "/new", "lbl",
2222
"--no-pause", "--no-il-cache", "--skip-il",
23-
"--no-timestamp-warnings", "--creator", "--creator-il-ignore-profile", "buildserver-winforms", "--print-config", "--dry-run",
23+
"--no-timestamp-warnings", "--creator", "--creator-il-ignore-profile", "creator-default", "--print-config", "--dry-run",
2424
"--fail-on-diff",
2525
"--coffee", "--bell", "--wizard",
2626
"--log-format", "json",
@@ -31,7 +31,7 @@ public void ParseCliOptions_AllFlagsCombined_ParsedCorrectly()
3131
Assert.True(opts.SkipIL);
3232
Assert.True(opts.NoTimestampWarnings);
3333
Assert.True(opts.Creator);
34-
Assert.Equal("buildserver-winforms", opts.CreatorIlIgnoreProfile);
34+
Assert.Equal("creator-default", opts.CreatorIlIgnoreProfile);
3535
Assert.True(opts.PrintConfig);
3636
Assert.True(opts.DryRun);
3737
Assert.True(opts.FailOnDiff);

‎FolderDiffIL4DotNet.Tests/CliOptionsTests.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,9 @@ public void ParseCliOptions_CreatorFlag_SetsCreator()
354354
[Fact]
355355
public void ParseCliOptions_CreatorIlIgnoreProfileWithKnownName_SetsProfile()
356356
{
357-
var opts = CliParser.Parse(new[] { "--creator-il-ignore-profile", "buildserver-winforms" });
357+
var opts = CliParser.Parse(new[] { "--creator-il-ignore-profile", "creator-default" });
358358

359-
Assert.Equal("buildserver-winforms", opts.CreatorIlIgnoreProfile);
359+
Assert.Equal("creator-default", opts.CreatorIlIgnoreProfile);
360360
Assert.Null(opts.ParseError);
361361
}
362362

@@ -375,7 +375,7 @@ public void ParseCliOptions_CreatorIlIgnoreProfileWithUnknownName_SetsParseError
375375
var opts = CliParser.Parse(new[] { "--creator-il-ignore-profile", "missing-profile" });
376376

377377
Assert.NotNull(opts.ParseError);
378-
Assert.Contains("buildserver-winforms", opts.ParseError, System.StringComparison.Ordinal);
378+
Assert.Contains("creator-default", opts.ParseError, System.StringComparison.Ordinal);
379379
}
380380

381381
// -----------------------------------------------------------------------

‎FolderDiffIL4DotNet.Tests/ProgramRunnerTests.CliOverrides.cs‎

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,10 @@ public async Task RunAsync_ValidateConfigFlag_WithInvalidBundledFallback_ShowsRe
533533
}
534534
}
535535

536-
[Fact]
537-
public async Task RunAsync_ValidateConfigFlag_WithUnknownCreatorProfile_ReturnsInvalidArguments()
536+
[Theory]
537+
[InlineData("nope")]
538+
[InlineData("buildserver-winforms")]
539+
public async Task RunAsync_ValidateConfigFlag_WithUnknownCreatorProfile_ReturnsInvalidArguments(string profileName)
538540
{
539541
var logger = new TestLogger(logFileAbsolutePath: "test.log");
540542
var runner = new ProgramRunner(logger, new ConfigService());
@@ -546,10 +548,11 @@ public async Task RunAsync_ValidateConfigFlag_WithUnknownCreatorProfile_ReturnsI
546548
{
547549
await WithConfigFileAsync("{}", async () =>
548550
{
549-
var exitCode = await runner.RunAsync(new[] { "--validate-config", "--creator-il-ignore-profile", "nope" });
551+
var exitCode = await runner.RunAsync(new[] { "--validate-config", "--creator-il-ignore-profile", profileName });
550552

551553
Assert.Equal(2, exitCode);
552-
Assert.Contains("'--creator-il-ignore-profile' requires a known profile name. Got: 'nope'.", errorWriter.ToString(), StringComparison.Ordinal);
554+
Assert.Contains($"'--creator-il-ignore-profile' requires a known profile name. Got: '{profileName}'.", errorWriter.ToString(), StringComparison.Ordinal);
555+
Assert.Contains("Known profiles: creator-default", errorWriter.ToString(), StringComparison.Ordinal);
553556
Assert.Empty(logger.Messages);
554557
});
555558
}
@@ -633,8 +636,10 @@ await WithConfigFileAsync("{}", async () =>
633636
}
634637
}
635638

636-
[Fact]
637-
public async Task RunAsync_PrintConfigFlag_WithUnknownCreatorProfile_ReturnsInvalidArguments()
639+
[Theory]
640+
[InlineData("nope")]
641+
[InlineData("buildserver-winforms")]
642+
public async Task RunAsync_PrintConfigFlag_WithUnknownCreatorProfile_ReturnsInvalidArguments(string profileName)
638643
{
639644
var logger = new TestLogger(logFileAbsolutePath: "test.log");
640645
var runner = new ProgramRunner(logger, new ConfigService());
@@ -646,10 +651,11 @@ public async Task RunAsync_PrintConfigFlag_WithUnknownCreatorProfile_ReturnsInva
646651
{
647652
await WithConfigFileAsync("{}", async () =>
648653
{
649-
var exitCode = await runner.RunAsync(new[] { "--print-config", "--creator-il-ignore-profile", "nope" });
654+
var exitCode = await runner.RunAsync(new[] { "--print-config", "--creator-il-ignore-profile", profileName });
650655

651656
Assert.Equal(2, exitCode);
652-
Assert.Contains("'--creator-il-ignore-profile' requires a known profile name. Got: 'nope'.", errorWriter.ToString(), StringComparison.Ordinal);
657+
Assert.Contains($"'--creator-il-ignore-profile' requires a known profile name. Got: '{profileName}'.", errorWriter.ToString(), StringComparison.Ordinal);
658+
Assert.Contains("Known profiles: creator-default", errorWriter.ToString(), StringComparison.Ordinal);
653659
Assert.Empty(logger.Messages);
654660
});
655661
}
@@ -679,7 +685,7 @@ public async Task RunAsync_PrintConfigFlag_WithCreatorIlIgnoreProfile_OutputsMer
679685
{
680686
await WithConfigFileAsync(configJson, async () =>
681687
{
682-
var exitCode = await runner.RunAsync(new[] { "--creator-il-ignore-profile", "buildserver-winforms", "--print-config" });
688+
var exitCode = await runner.RunAsync(new[] { "--creator-il-ignore-profile", "creator-default", "--print-config" });
683689

684690
Assert.Equal(0, exitCode);
685691
var output = sw.ToString();

‎FolderDiffIL4DotNet.Tests/Runner/CliOverrideApplierTests.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void Apply_CreatorIlIgnoreProfile_EnablesFilteringAndMergesStrings()
106106
ShouldIgnoreILLinesContainingConfiguredStrings = false,
107107
ILIgnoreLineContainingStrings = new System.Collections.Generic.List<string> { "existing-filter" }
108108
};
109-
var opts = DefaultOpts() with { CreatorIlIgnoreProfile = "buildserver-winforms" };
109+
var opts = DefaultOpts() with { CreatorIlIgnoreProfile = "creator-default" };
110110

111111
CliOverrideApplier.Apply(builder, opts);
112112

‎PACKAGE_README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ nildiff "/old" "/new" "label" --config /path/to/config.json
5454

5555
When the report label is omitted, nildiff auto-generates a high-resolution timestamp label. Tokens beginning with `--` are treated as options, not report labels.
5656

57-
Individual settings can also be overridden via `FOLDERDIFF_*` environment variables (e.g. `FOLDERDIFF_MAXPARALLELISM=8`). For maintainer-only IL noise suppression, `--creator` applies the predefined `buildserver-winforms` `ILIgnoreLineContainingStrings` profile. See the [annotated sample config](https://github.com/Widthdom/FolderDiffIL4DotNet/blob/main/doc/config.sample.jsonc) for all available settings.
57+
Individual settings can also be overridden via `FOLDERDIFF_*` environment variables (e.g. `FOLDERDIFF_MAXPARALLELISM=8`). For maintainer-only IL noise suppression, `--creator` applies the predefined `creator-default` `ILIgnoreLineContainingStrings` profile. See the [annotated sample config](https://github.com/Widthdom/FolderDiffIL4DotNet/blob/main/doc/config.sample.jsonc) for all available settings.
5858

5959
The default user-local `config.json` location varies by OS:
6060

‎Runner/CreatorPrivilegeIlIgnoreProfiles.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace FolderDiffIL4DotNet.Runner
1212
/// </summary>
1313
internal static class CreatorPrivilegeIlIgnoreProfiles
1414
{
15-
internal const string DefaultProfileName = "buildserver-winforms";
15+
internal const string DefaultProfileName = "creator-default";
1616
private const string RESOURCE_NAME = "FolderDiffIL4DotNet.Runner.creator_il_ignore_profiles.json";
1717
private static readonly Lazy<IReadOnlyDictionary<string, IReadOnlyList<string>>> _profiles = new(LoadProfiles);
1818

‎Runner/creator_il_ignore_profiles.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"profiles": [
33
{
4-
"name": "buildserver-winforms",
4+
"name": "creator-default",
55
"strings": [
66
"buildserver1_",
77
"buildserver2_",

0 commit comments

Comments
 (0)