-
Notifications
You must be signed in to change notification settings - Fork 238
Scripts: Apply a consistent coding style #2582
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
Conversation
| declare -A LANGS | ||
| LANGS[de_DE]="German" | ||
| LANGS[fr_FR]="French" | ||
| LANGS[it_IT]="Italian" | ||
| LANGS[nl_NL]="Dutch" | ||
| LANGS[pl_PL]="Polish" | ||
| LANGS[pt_BR]="Portuguese Brazilian" | ||
| LANGS[pt_PT]="Portuguese European" | ||
| LANGS[sk_SK]="Slovak" | ||
| LANGS[es_ES]="Spanish" | ||
| LANGS[sv_SE]="Swedish" | ||
| LANGS[zh_CN]="Simplified Chinese" |
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.
This is a manual change (before running shfmt) as shfmt fails to handle the previous formatting properly (each shfmt increases the indentation...). I don't know of a way to selectively disable shfmt for specific lines similar to shellcheck or clang-format. Therefore, I've chosen a different array assignment syntax, although as it is more verbose.
|
@hoffie this PR needs to be rebased ;-) |
|
Thanks. @hoffie This PR needs rebasing |
|
@pljones This missed the mentioning of "scripts" in the Changelog |
|
I was wondering if this should be merged with 2547. |
|
Maybe. The changelog is already way too big... |
|
Yeah - that's why I was asking for suggesting on what to merge... |
Short description of changes
shfmtcan't handle properlyshfmt -w .(A CI check will be in a follow-up PR: hoffie@ci-check-shell-scripts)
CHANGELOG: Scripts: Applied a consistent coding style
Context: Fixes an issue?
Related: #2474
Does this change need documentation? What needs to be documented and how?
No.
Status of this Pull Request
Ready.
What is missing until this pull request can be merged?
Reviews.
Checklist