Skip to content

Commit 57ed268

Browse files
committed
Update validators, ignore .git
1 parent 990e6ca commit 57ed268

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

tools/config_style_checker.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,13 @@ def main():
134134
args = parser.parse_args()
135135

136136
# Allow running from root directory as well as from inside the tools directory
137-
rootDir = "../addons"
138-
if (os.path.exists("addons")):
139-
rootDir = "addons"
137+
rootDir = "../Framework"
138+
if (os.path.exists("Framework")):
139+
rootDir = "Framework"
140140

141141
for root, dirnames, filenames in os.walk(rootDir + '/' + args.module):
142+
if ".git" in root:
143+
continue
142144
for filename in fnmatch.filter(filenames, '*.cpp'):
143145
sqf_list.append(os.path.join(root, filename))
144146
for filename in fnmatch.filter(filenames, '*.hpp'):

tools/sqf_validator.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,13 @@ def main():
168168
args = parser.parse_args()
169169

170170
# Allow running from root directory as well as from inside the tools directory
171-
rootDir = "../addons"
172-
if (os.path.exists("addons")):
173-
rootDir = "addons"
171+
rootDir = "../Framework"
172+
if (os.path.exists("Framework")):
173+
rootDir = "Framework"
174174

175175
for root, dirnames, filenames in os.walk(rootDir + '/' + args.module):
176+
if ".git" in root:
177+
continue
176178
for filename in fnmatch.filter(filenames, '*.sqf'):
177179
sqf_list.append(os.path.join(root, filename))
178180

0 commit comments

Comments
 (0)