Line 1 SC2148: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Line 3 SC2276: This is interpreted as a command name containing '='. Bad assignment or comparison?
Line 3 SC1036: '(' is invalid here. Did you forget to escape it?
Line 3 SC1088: Parsing stopped here. Invalid use of parentheses?
For bugs
shellcheck --version
or 'online'): onlineFor new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
1) Assignment of an associative array or an array can be done post declaration. 2) The '+=' syntax with additional key-value's is valid syntax. https://zsh.sourceforge.io/Guide/zshguide05.html#5.4.2
Here is the relevant excerpt from the docs. Chap 15.2
15 Parameters
Let me know if you need anything else.