-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SH.FLOW.CheckCodeReturn #121
Comments
brigittehuynh
added a commit
that referenced
this issue
Jul 22, 2018
(including case-esac). Tests updated accordingly. Issue #137 remains valid).
brigittehuynh
added a commit
that referenced
this issue
Sep 11, 2018
- simple pipe command gets correct violation message - || no longer recognized as a pipe - different test management is supported - the last violation is on the correct line - no false positive on export command The test files have been updated accordingly.
The rule is corrected, with a limitation: $(command) style commands are not looked into. They do not interfere with the rest of the code. |
Merged
Merged
begarco
pushed a commit
to begarco/i-CodeCNES
that referenced
this issue
Jan 25, 2020
… localization (including case-esac). Tests updated accordingly. Issue cnescatlab#137 remains valid).
begarco
pushed a commit
to begarco/i-CodeCNES
that referenced
this issue
Jan 25, 2020
- simple pipe command gets correct violation message - || no longer recognized as a pipe - different test management is supported - the last violation is on the correct line - no false positive on export command The test files have been updated accordingly.
begarco
pushed a commit
that referenced
this issue
Feb 2, 2020
(including case-esac). Tests updated accordingly. Issue #137 remains valid).
begarco
pushed a commit
that referenced
this issue
Feb 2, 2020
- simple pipe command gets correct violation message - || no longer recognized as a pipe - different test management is supported - the last violation is on the correct line - no false positive on export command The test files have been updated accordingly.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Implementation of the rule SH.FLOW.CheckCodeReturn.
Description
Known problems
Commands execution handling
Description : Parseur behaviour becomes inaccurate when reading a command execution.
Pipe handling
Description : On a pipiline, where the first function hsouldn't be verified and that there is only one function to verify in the pipe line, the violation message is the one intended to simples functions. Also, raising false positive on
||
use.Code example :
grep "Date :" $ficresarc | awk '{print $3}' > datejul.tmp
cd -- "$idir" || { echo >&2 can not cd to "$idir"; exit 1; }
Test handling
Description : The checker raise a violation when the test returned isn't like
if [ $? -eq 0]
.Last file's violation is on a wrong line
Description : The last violation detected by the checker on a file is set on the previous line of the violation.
Code example :
Function declaration
Description : The checker is not handling some types of functions declaration. The problem is the same one as defined for several rules in #49 . This might also be the reason a false positive violation raise when a function name isn't clearly defined.
Exports handling
Description : The checker raises false positive on export use.
Code example :
export –f funcName
State of the implementation
The text was updated successfully, but these errors were encountered: