Skip to content

Commit

Permalink
dont ignore dirs starting eith period (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Dec 7, 2023
1 parent 8a0fe86 commit 7fa27df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591</NoWarn>
<Version>25.1.0</Version>
<Version>25.2.0</Version>
<LangVersion>preview</LangVersion>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>Markdown, Snippets, mdsnippets, documentation, MarkdownSnippets</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ public static class DefaultDirectoryExclusions
public static bool ShouldExcludeDirectory(string path)
{
var suffix = Path.GetFileName(path).ToLowerInvariant();
return suffix.StartsWith('.') ||
suffix is
"packages" or
"node_modules" or
"bin" or
"obj";
return suffix is
".git" or
"packages" or
"node_modules" or
"bin" or
"obj";
}
}

0 comments on commit 7fa27df

Please sign in to comment.