-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add SCION compiler output checks #25
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the source code formatting. Keep line length and maximum degree of nested blocks in check by extracting some sub-functions.
tools/scion/scion-topo-sanitizer.py
Outdated
def find_and_check_json_files(directory='.'): | ||
compose = parse_docker_compose_yaml() | ||
services = compose['services'] | ||
networks = compose['networks'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused variable
tools/scion/scion-topo-sanitizer.py
Outdated
print('No errors detected') | ||
|
||
if __name__ == "__main__": | ||
find_and_check_json_files() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The directory that is searched for topology files could easily be passed on the command line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done and documented in the README
2972f78
to
4b090b5
Compare
implemented the changes we discussed yesterday. [renamed & moved to unittests ] |
for description see #19