-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
docs: Improve check_sample examples, add general comments #1039
Conversation
Please check if General Comments make sense! |
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.
You raise a good point @lazize, thank you!!
Please, check my suggestions it could be useful for new contributors.
checks/check_sample
Outdated
@@ -36,38 +36,68 @@ | |||
# CHECK_DOC_checkN="" | |||
# CHECK_CAF_EPIC_checkN="" | |||
|
|||
# General comments | |||
# ---------------- | |||
# Do not add double quotes (") arround variable ${PROFILE_OPT} |
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.
# Do not add double quotes (") arround variable ${PROFILE_OPT} | |
# Do not add double quotes (") arround variable ${PROFILE_OPT} because this variable holds "--profile <profile-name>" and we need to read it as it is. |
# - ${var:N} : Return string from position 'N' | ||
# - ${var:N:len} : Return 'len' characters from position 'N' | ||
# - ${var^^} : Convert to upper-case all characters | ||
# - ${var,,} : Convert to lower-case all characters |
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.
# - ${var,,} : Convert to lower-case all characters | |
# - ${var,,} : Convert to lower-case all characters | |
# - For more examples and how to use it please refer to https://www.gnu.org/software/bash/manual/bash.html#Shell-Parameter-Expansion |
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.
Thank you @lazize !!
Context
A lot of checks are failing due to the lack of error handling.
Also some best practices are being required on PR revision.
Description
Improve examples to fit them into the best practice and to pass most of ShellCheck.
Add general comments about what/how to do.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.