Skip to content

Commit

Permalink
Ignore git folders as well (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaltyagi committed Sep 14, 2024
1 parent b94af5e commit 4242376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ Current Filter Setting (Following is applied sequentially)
3. \tet\ is excluded
4. \.cvs\ is excluded
5. \.svn\ is excluded
6. \.git\ is excluded
Current File extension and Language Settings
C/C++=c,cxx,h,hpp,cpp,hxx
Expand Down
2 changes: 2 additions & 0 deletions nsiqcppstyle_exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,13 @@ def __init__(self, fileFilterPath, filterStringList, extLangMap, varMap, activeF
if len(filter.nsiqCppStyleRules) == 0:
filter.AddExclude("/.svn/")
filter.AddExclude("/.cvs/")
filter.AddExclude("/.git/")
return

for eachMapKey in self.filterMap:
self.filterMap[eachMapKey].AddExclude("/.cvs/")
self.filterMap[eachMapKey].AddExclude("/.svn/")
self.filterMap[eachMapKey].AddExclude("/.git/")

if activeFilterName in self.filterMap:
self.activeFilterName = activeFilterName
Expand Down

0 comments on commit 4242376

Please sign in to comment.