Please make slint() applicable to scripts.sce, .start, and tests.tst files
Bug Description
Presently, slint() can't be used for scripts.sce and tests.tst files, only for .sci files. To review the content of .sce and .tst files (for instance against the 00022 Deprecated function pattern), we have to temporarily rename them into .sci files. A quite dirty workaround..
This prevents updating easily all codes of a module, noticeably all tests and demos.
Steps to reproduce
filepath = TMPDIR + filesep() + "script.";
mputl("a=eval(''3*2'')", filepath+"sci");
slint(filepath+"sci")
mputl("a=eval(''3*2'')", filepath+"sce");
slint(filepath+"sce")
mputl("a=eval(''3*2'')", filepath+"tst");
slint(filepath+"tst")
--> filepath = TMPDIR + filesep() + "script.";
--> mputl("a=eval(''3*2'')", filepath+"sci")
ans =
T
--> slint(filepath+"sci")
In <TMPDIR>\script.sci:
At l. 0, c. 0: 00036: The minimal ratio between commented lines and total lines is not reached: 0 < 0.3.
At l. 1, c. 1: 00028: Operator = should be surrounded by single spaces.
At l. 1, c. 3: 00022: Deprecated function eval: use evstr instead.
--> mputl("a=eval(''3*2'')", filepath+"sce")
ans =
T
--> slint(filepath+"sce") // no output
-->
--> mputl("a=eval(''3*2'')", filepath+"tst")
ans =
T
--> slint(filepath+"tst") // no output
-->
What is the expected correct behavior?
Same output as with .sci, in the .sce and .tst cases
Other information
Still in Scilab 6.1.1.
Edited by Samuel GOUGEON