Skip to content

Getting ignore file to work according to git spec #266

Getting ignore file to work according to git spec

Getting ignore file to work according to git spec #266

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

ValidatePullRequest.yml

on: pull_request
Matrix: Test CSharpier.MSBuild
Fit to window
Zoom out
Zoom in

Annotations

10 errors
LiteralPlus: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L262
Expected subject to be a collection with 2 item(s), but {"foo", "bar+", "foo+bar"} contains 1 item(s) more than {"foo", "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.
LeadingSlash: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L285
Expected subject to be a collection with 1 item(s), but {"foobar", "bar", "foob"} contains 2 item(s) more than {"foobar"}. 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.
LeadingDoubleStar3: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L346
Expected subject to be a collection with 2 item(s), but {"foo.json", "bar/foo.json", "tar/bar/foo.json", "_foo.json", "bar/car_foo.json", "x_generated.csproj", "foo/x_generated.csproj", "_generated.csproj"} contains 6 item(s) more than {"_foo.json", "bar/car_foo.json"}. 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#L334
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.
LeadingDoubleStar: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L322
Expected subject to be a collection with 0 item(s), but {"src/foo", "foo/bar", "src/bar/foo"} contains 3 item(s). 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.
IgnoreDotFiles: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L153
Expected subject to be a collection with 3 item(s), but {".dotfile", "no.dotfile", "foo/.dotfile", "foo/no.dotfile", ".bar/nodot", ".bar/foo", "foo/.dot/adf", "bar/foo"} contains 5 item(s) more than {"bar/foo", "foo/no.dotfile", "no.dotfile"}. 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#L298
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.
EscapedHash: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L239
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/bar", ".foo/.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.
EscapedBang: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L228
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.
ComplexNegate: Src/CSharpier.Tests/Cli/IgnoreFileTests.cs#L565
Expected subject to be a collection with 1 item(s), but {"foo/bar", "bar", "src/foo", "src/bar/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.