mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Fix checkswag not testing jshint correctly
The path was wrong, now it is correct. refs #4617
This commit is contained in:
parent
c5fde2324e
commit
a8b3716662
@ -113,8 +113,8 @@ def main():
|
|||||||
for a in arguments[:len(arguments)]
|
for a in arguments[:len(arguments)]
|
||||||
if os.path.isfile(a) or os.path.isdir(a)]
|
if os.path.isfile(a) or os.path.isdir(a)]
|
||||||
if not path_args:
|
if not path_args:
|
||||||
path_args = ['../../application', '../../bin',
|
path_args = ['../../public/js/icinga', '../../bin',
|
||||||
'../../library/Icinga']
|
'../../modules/']
|
||||||
if options.include:
|
if options.include:
|
||||||
path_args = [os.path.join(r, f)
|
path_args = [os.path.join(r, f)
|
||||||
for a in path_args
|
for a in path_args
|
||||||
@ -143,6 +143,7 @@ def main():
|
|||||||
with open(result_path, 'w') as result_file:
|
with open(result_path, 'w') as result_file:
|
||||||
result_file.write(result_data)
|
result_file.write(result_data)
|
||||||
else:
|
else:
|
||||||
|
print (application_path )
|
||||||
execute_command([application_path] + DEFAULT_ARGS +
|
execute_command([application_path] + DEFAULT_ARGS +
|
||||||
command_options + arguments + path_args)
|
command_options + arguments + path_args)
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user