Skip to content

Commit

Permalink
also exclude vscode and angular from snippet detection
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Mar 26, 2024
1 parent 5bc9032 commit 1aa7e7e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/exclusion.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,29 @@ public static class DefaultDirectoryExclusions
{
var suffix = Path.GetFileName(path).ToLowerInvariant();
return suffix is

// source control
".git" or

// ide temp files
".vs" or
".vscode" or
".idea" or

// angular cache
".angular" or

// package cache
"packages" or
"node_modules" or

// build output
"bin" or
"obj";
}
}
```
<sup><a href='/src/MarkdownSnippets/Reading/Exclusions/DefaultDirectoryExclusions.cs#L1-L17' title='Snippet source file'>snippet source</a> | <a href='#snippet-DefaultDirectoryExclusions.cs' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/MarkdownSnippets/Reading/Exclusions/DefaultDirectoryExclusions.cs#L1-L29' title='Snippet source file'>snippet source</a> | <a href='#snippet-DefaultDirectoryExclusions.cs' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@ public static bool ShouldExcludeDirectory(string path)
{
var suffix = Path.GetFileName(path).ToLowerInvariant();
return suffix is

// source control
".git" or

// ide temp files
".vs" or
".vscode" or
".idea" or

// angular cache
".angular" or

// package cache
"packages" or
"node_modules" or

// build output
"bin" or
"obj";
}
Expand Down

0 comments on commit 1aa7e7e

Please sign in to comment.