-
Notifications
You must be signed in to change notification settings - Fork 69
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 pb validations #4273
add pb validations #4273
Conversation
Changelog(s) in markdown:
|
# Conflicts: # demisto_sdk/commands/validate/sdk_validation_config.toml
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.
Good job.
Please see comments.
If for loops can run sequentially and are not dependent on each other it is better to break them to separate runs instead of nested for loops
# Rename the keys in dictionary to upper case | ||
next_tasks_upper = {k.upper(): v for k, v in next_tasks.items()} | ||
|
||
mapper_dict = { |
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.
Seems like we can define this once outside the nested for loops. as a CONST
...dk/commands/validate/validators/PB_validators/PB101_is_playbook_has_unreachable_condition.py
Show resolved
Hide resolved
...dk/commands/validate/validators/PB_validators/PB101_is_playbook_has_unreachable_condition.py
Show resolved
Hide resolved
...s/validate/validators/PB_validators/PB123_is_conditional_task_has_unhandled_reply_options.py
Show resolved
Hide resolved
# Rename the keys in dictionary to upper case | ||
next_tasks_upper = {k.upper(): v for k, v in next_tasks.items()} | ||
|
||
mapper_dict = { |
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.
move to CONST
Related Issues
fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-10535
Description