Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for subfolders in node_modules #762

Merged
merged 2 commits into from
Nov 24, 2022
Merged

Conversation

belav
Copy link
Owner

@belav belav commented Nov 23, 2022

relates to #704

@belav belav added this to the 1.0.0 milestone Nov 23, 2022
@belav belav added type:bug Something isn't working priority:medium area:cli labels Nov 23, 2022
Copy link
Collaborator

@shocklateboy92 shocklateboy92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does bring something to mind. Do we have a mechanism in config to override the always ignored list?

I understand it's unlikely anyone will want to format any C# code in their node_modules directory, but I'm thinking about the future where this list might grow..

@@ -7,7 +7,7 @@ public class IgnoreFile
{
protected Ignore.Ignore Ignore { get; }
protected string IgnoreBaseDirectoryPath { get; }
private static string[] alwaysIgnored = { "**/node_modules/*.cs" };
private static readonly string[] alwaysIgnored = { "**/node_modules/**/*.cs" };
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤣

@shocklateboy92 shocklateboy92 merged commit 7cea674 into master Nov 24, 2022
@shocklateboy92 shocklateboy92 deleted the better-node-ignore branch November 24, 2022 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants