unixorn/awesome-zsh-plugins

View on GitHub

Showing 5 of 7 total issues

'(' is invalid here. Did you forget to escape it?
Open

[[ -z "$1" || "$1" = (-h|--help) ]] && {

Expected another argument for this operator.
Open

[[ -z "$1" || "$1" = (-h|--help) ]] && {

Couldn't parse this test expression.
Open

[[ -z "$1" || "$1" = (-h|--help) ]] && {

Couldn't parse this ...

This parsing error points to the structure ShellCheck was trying to parse when a parser error occurred. See [[Parser error]] for more information.

Notice

Original content from the ShellCheck https://github.com/koalaman/shellcheck/wiki.

Trailing spaces
Open

Go over all the following points, and put an `x` in all the boxes that apply. 

MD009 - Trailing spaces

Tags: whitespace

Aliases: no-trailing-spaces

Parameters: br_spaces (number; default: 0)

This rule is triggered on any lines that end with whitespace. To fix this, find the line that is triggered and remove any trailing spaces from the end.

The brspaces parameter allows an exception to this rule for a specific amount of trailing spaces used to insert an explicit line break/br element. For example, set brspaces to 2 to allow exactly 2 spaces at the end of a line.

Note: you have to set brspaces to 2 or higher for this exception to take effect - you can't insert a br element with just a single trailing space, so if you set brspaces to 1, the exception will be disabled, just as if it was set to the default of 0.

Fix any mentioned problems and try again.
Open

[[ -z "$1" || "$1" = (-h|--help) ]] && {

Unexpected ..

Note: There is a [known bug](../issues/1036) in the current version when [directives](../wiki/Directive) appear within then clauses of if blocks that causes Shellcheck to report SC1072 on otherwise valid code. Avoid using directives within then clauses - instead place them at the top of the if block or another enclosing block. This is fixed on the online version and the next release.

See Parser Error.

Notice

Original content from the ShellCheck https://github.com/koalaman/shellcheck/wiki.

Severity
Category
Status
Source
Language