Giter VIP home page Giter VIP logo

ban-telnet's People

Contributors

codacy-badger avatar deepsource-autofix[bot] avatar deepsourcebot avatar johnsonjh avatar mend-bolt-for-github[bot] avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ban-telnet's Issues

(SH-2034) Unused variable

Description

Variables that are declared but not used for anything should be removed. #### Problematic code: bash foo=42 echo "$FOO" #### Preferred code: bash foo=42 echo "$foo" #### Exceptions: This warning may be falsely emitted when a variable is referenced indirectly, or it is intentionally not used. * Indirection: …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2034/occurrences/

(SH-2006) Use of legacy backtick

Description

Consider using the $(...) notation instead. Backtick command substitution \...`is legacy syntax with several issues. * It has a series of undefined behaviors related to quoting in POSIX. * It imposes a custom escaping mode with surprising results. * It's exceptionally hard to nest.$(...)` command substitution has none …

Occurrences

There are 109 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2006/occurrences/

(SH-2016) Use double quotes to expand expressions

Description

Problematic code: bash name=World echo 'Hello $name' #### Preferred code: bash name=World echo "Hello $name" If you want to use the values of variables and such, use double quotes instead. Note that if you have other items that needs single quoting, you can use both in a …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2016/occurrences/

(SH-2003) Outdated `expr` statement

Description

According to POSIX: > The expr utility has a rather difficult syntax [...] In many cases, the arithmetic and string features provided as part of the shell command language are easier to use than their equivalents in expr. Newly written scripts should avoid expr in favor of the new features …

Occurrences

There are 28 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2003/occurrences/

(SH-2012) Consider using `find` instead of `ls` to better handle non-alphanumeric filenames

Description

Problematic code: bash ls -l | grep " $USER " | grep '\.txt$' NUMGZ="$(ls -l *.gz | wc -l)" #### Preferred code: bash find . -maxdepth 1 -name '*.txt' -user "$USER" # Using the names of the files gz_files=(*.gz) numgz=${#gz_files[@]} # Sometimes, you just need a count

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2012/occurrences/

(SH-2003) Outdated `expr` statement

Description

According to POSIX: > The expr utility has a rather difficult syntax [...] In many cases, the arithmetic and string features provided as part of the shell command language are easier to use than their equivalents in expr. Newly written scripts should avoid expr in favor of the new features …

Occurrences

There are 28 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2003/occurrences/

(SH-2012) Consider using `find` instead of `ls` to better handle non-alphanumeric filenames

Description

Problematic code: bash ls -l | grep " $USER " | grep '\.txt$' NUMGZ="$(ls -l *.gz | wc -l)" #### Preferred code: bash find . -maxdepth 1 -name '*.txt' -user "$USER" # Using the names of the files gz_files=(*.gz) numgz=${#gz_files[@]} # Sometimes, you just need a count

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2012/occurrences/

(SH-2046) Consider quoting command expansion to prevent word splitting

Description

When command expansions are unquoted, word splitting and globbing will occur. This can result unintended behaviour filenames contain spaces. Trying to fix it by adding quotes or escapes to the data will not work. Instead, quote the command substitution itself. If the command substitution outputs multiple pieces of data, it …

Occurrences

There are 9 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2046/occurrences/

(SH-2059) Use of variable in `printf` format string

Description

Problematic code: bash printf "Hello, $NAME\n" #### Preferred code: bash printf "Hello, %s\n" "$NAME" printf interprets escape sequences and format specifiers in the format string. If variables are included, any escape sequences or format specifiers in the data will be interpreted too, where you might have wanted …

Occurrences

There are 12 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2059/occurrences/

(SH-2059) Use of variable in `printf` format string

Description

Problematic code: bash printf "Hello, $NAME\n" #### Preferred code: bash printf "Hello, %s\n" "$NAME" printf interprets escape sequences and format specifiers in the format string. If variables are included, any escape sequences or format specifiers in the data will be interpreted too, where you might have wanted …

Occurrences

There are 12 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2059/occurrences/

(SH-2016) Use double quotes to expand expressions

Description

Problematic code: bash name=World echo 'Hello $name' #### Preferred code: bash name=World echo "Hello $name" If you want to use the values of variables and such, use double quotes instead. Note that if you have other items that needs single quoting, you can use both in a …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2016/occurrences/

(SH-2046) Consider quoting command expansion to prevent word splitting

Description

When command expansions are unquoted, word splitting and globbing will occur. This can result unintended behaviour filenames contain spaces. Trying to fix it by adding quotes or escapes to the data will not work. Instead, quote the command substitution itself. If the command substitution outputs multiple pieces of data, it …

Occurrences

There are 9 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2046/occurrences/

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

None detected


  • Check this box to trigger a request for Renovate to run again on this repository

(SH-2034) Unused variable

Description

Variables that are declared but not used for anything should be removed. #### Problematic code: bash foo=42 echo "$FOO" #### Preferred code: bash foo=42 echo "$foo" #### Exceptions: This warning may be falsely emitted when a variable is referenced indirectly, or it is intentionally not used. * Indirection: …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2034/occurrences/

(SH-2006) Use of legacy backtick

Description

Consider using the $(...) notation instead. Backtick command substitution \...`is legacy syntax with several issues. * It has a series of undefined behaviors related to quoting in POSIX. * It imposes a custom escaping mode with surprising results. * It's exceptionally hard to nest.$(...)` command substitution has none …

Occurrences

There are 109 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2006/occurrences/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.