Shell
found issues in 5 files
Annotations
Check warning on line 1 in code-issue-examples/iac/terraform/vpc-3-layer-example/ec2-init-script.sh
github-actions / Codety scanner - Shell
code-issue-examples/iac/terraform/vpc-3-layer-example/ec2-init-script.sh#L1
[styling] [2148] Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Check warning on line 1 in code-issue-examples/shell/bad-shell.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell.sh#L1
[styling] [2148] Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Check warning on line 1 in code-issue-examples/shell/bad-shell.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell.sh#L1
[styling] [2086] Double quote to prevent globbing and word splitting.
Check warning on line 2 in code-issue-examples/shell/bad-shell.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell.sh#L2
[styling] [2061] Quote the parameter to -name so the shell won't interpret it.
Check warning on line 2 in code-issue-examples/shell/bad-shell.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell.sh#L2
[styling] [2035] Use ./*glob* or -- *glob* so names with dashes won't become options.
Check warning on line 3 in code-issue-examples/shell/bad-shell.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell.sh#L3
[styling] [2088] Tilde does not expand in quotes. Use $HOME.
Check warning on line 4 in code-issue-examples/shell/bad-shell.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell.sh#L4
[styling] [2089] Quotes/backslashes will be treated literally. Use an array.
Check warning on line 4 in code-issue-examples/shell/bad-shell.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell.sh#L4
[styling] [2090] Quotes/backslashes in this variable will not be respected.
Check warning on line 6 in code-issue-examples/shell/bad-shell.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell.sh#L6
[styling] [2038] Use 'find .. -print0 | xargs -0 ..' or 'find .. -exec .. +' to allow non-alphanumeric filenames.
Check warning on line 1 in code-issue-examples/shell/bad-shell-2.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell-2.sh#L1
[styling] [2148] Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Check warning on line 2 in code-issue-examples/shell/bad-shell-2.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell-2.sh#L2
[styling] [2016] Expressions don't expand in single quotes, use double quotes for that.
Check warning on line 3 in code-issue-examples/shell/bad-shell-2.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell-2.sh#L3
[styling] [2064] Use single quotes, otherwise this expands now rather than when signalled.
Check warning on line 4 in code-issue-examples/shell/bad-shell-2.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell-2.sh#L4
[styling] [2184] Quote arguments to unset so they're not glob expanded.
Check warning on line 7 in code-issue-examples/shell/bad-shell-2.sh
github-actions / Codety scanner - Shell
code-issue-examples/shell/bad-shell-2.sh#L7
[styling] [2038] Use 'find .. -print0 | xargs -0 ..' or 'find .. -exec .. +' to allow non-alphanumeric filenames.
Check warning on line 3 in scanner/codety.sh
github-actions / Codety scanner - Shell
scanner/codety.sh#L3
[styling] [2046] Quote this to prevent word splitting.
Check warning on line 25 in scanner/test_app_local.sh
github-actions / Codety scanner - Shell
scanner/test_app_local.sh#L25
[styling] [2125] Brace expansions and globs are literal in assignments. Quote it or use an array.
Check warning on line 60 in scanner/test_app_local.sh
github-actions / Codety scanner - Shell
scanner/test_app_local.sh#L60
[styling] [2046] Quote this to prevent word splitting.
Check warning on line 60 in scanner/test_app_local.sh
github-actions / Codety scanner - Shell
scanner/test_app_local.sh#L60
[styling] [2287] This is interpreted as a command name ending with '/'. Double check syntax.