Skip to content

Getting ignore file to work according to git spec #267

Getting ignore file to work according to git spec

Getting ignore file to work according to git spec #267

Triggered via pull request December 7, 2025 17:27
@belavbelav
synchronize #1768
git-ignore
Status Failure
Total duration 1m 42s
Artifacts

ValidatePullRequest.yml

on: pull_request
Run Tests
1m 13s
Run Tests
No Warnings
59s
No Warnings
Builds Playground
58s
Builds Playground
Check Formatting
12s
Check Formatting
Check TODOs
14s
Check TODOs
Matrix: Test CSharpier.MSBuild
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Run Tests
Process completed with exit code 1.
StartsWithStar_LeadingSlash: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L193
Expected subject to be a collection with 2 item(s), but {"foo/bar/bar.csproj"} contains 1 item(s) less than {"foo/bar/bar.csproj", "foo/bar/foo.cs"}. With configuration: - Prefer the declared type of the members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match (JSON) member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
MiddleDoubleStar_3: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L395
Expected subject to be a collection with 3 item(s), but {"foo/bar/tar.ps", "foo/bar.ps", "foo/bar.js", "foo.ps"} contains 1 item(s) more than {"foo.ps", "foo/bar.js", "foo/bar/tar.ps"}. With configuration: - Prefer the declared type of the members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match (JSON) member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
LeadingDoubleStar2: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L332
Expected subject to be a collection with 1 item(s), but {"src/foo.txt", "foo/bar/foo.txt", "foo.txt", "foo.bar"} contains 3 item(s) more than {"foo.bar"}. With configuration: - Prefer the declared type of the members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match (JSON) member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
EscapedSpaces: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L296
Expected subject to be a collection with 3 item(s), but {"foobar", "bar", "fo b", "spacebar"} contains 1 item(s) more than {"bar", "foobar", "spacebar"}. With configuration: - Prefer the declared type of the members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match (JSON) member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.
EscapedBang: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L226
Expected subject to be a collection with 2 item(s), but {"!.foo/bar", ".foo/.foo/bar", ".foo/har"} contains 1 item(s) more than {".foo/.foo/bar", ".foo/har"}. With configuration: - Prefer the declared type of the members - Compare enums by value - Compare tuples by their properties - Compare anonymous types by their properties - Compare records by their members - Include non-browsable members - Include all non-private properties - Include all non-private fields - Match (JSON) member by name (or throw) - Be strict about the order of items in byte arrays - Without automatic conversion.