Skip to content

[Bug]: Ignores files it shouldnt ignore when negative patterns are used #1803

@janthomasQS

Description

@janthomasQS

Description

Assume a repo with the following .csharpierignore

/*
!/CsharpierIngoreTest/IncludedSourceFolder/IncludedClass.cs

The intention is to exclude everyhing except specific files or folders because not the entire company wants to use csharpier on their code.

With the newest version csharpier will ignore the file that was included previously.
If this is intentional then how would i specify this situation instead? I honestly cannot find a way that works

PS B:\sgit\source\Playground\> dnx --version 1.0.0 csharpier format . --log-level Trace
Formatting - .\CsharpierIngoreTest\IncludedSourceFolder\IncludedClass.cs
Formatted 1 files in 1586ms.
PS B:\sgit\source\Playground\> dnx --version 1.2.5 csharpier format . --log-level Trace
Formatted 0 files in 598ms.

Steps to Reproduce

Create a csharpierignore with the specified content

Expected Behavior

It formats the files i included

Actual Behavior

It does not

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions