script: Enable SC2155 rule for Gitian scripts

Also pwd command is replaced with $PWD variable everywhere for
consistency.
This commit is contained in:
Hennadii Stepanov
2019-11-03 21:57:11 +02:00
parent 577682d9e8
commit 61bb21b418
6 changed files with 11 additions and 12 deletions

View File

@ -26,7 +26,6 @@ disabled_gitian=(
SC2001 # See if you can use ${variable//search/replace} instead.
SC2094 # Make sure not to read and write the same file in the same pipeline.
SC2129 # Consider using { cmd1; cmd2; } >> file instead of individual redirects.
SC2155 # Declare and assign separately to avoid masking return values.
SC2230 # which is non-standard. Use builtin 'command -v' instead.
)