ocamlpro / scilint Goto Github PK
View Code? Open in Web Editor NEWA tool to analyze Scilab projects to find potential bugs
License: Other
A tool to analyze Scilab projects to find potential bugs
License: Other
-->[1,2,
-->3,4]
ans =
1. 2.
3. 4.
-->[1,2,3,4]
ans =
1. 2. 3. 4.
Scilint should warn for "," at the end of line.
disp should never be used with several arguments
Among the following examples, only the first one is valid, scilab should warn about the others.
[x, y] = (x, y)
[x, y] = [x, y]
[x, y] = x, y
I read somewhere on the internet that ~expr was the same as ~~~~expr, which is not, it is a repeated application of the ~ operator, and it happens that applying a boolean negation an odd (and > 1) number of times is useless since it can be rewritten as a single one. Applying ~ twice is ok, it is a cast to bool (~~3 is T), but applying it four or more times is also useless.
Scilint should warn about a number of nested applications of ~ strictly superior to 2.
Scilint should also probably warn about a number of applications of - strictly superior to 1.
It would be nice if scilint could export results to the firehose format:
https://github.com/fedora-static-analysis/firehose
2+3*%i
String "box-1", line 1, characters 2-6:
Error: multiplication does not work between values of types real and complex
Hint: you can try redefining %s_m_s
lycee()
exp(10)/factorielle(10)
String "box-2", line 1, characters 8-23:
String "factorielle.sci", line 16, characters 4-16:
Error: primitive factorial does not work on a value of type real
Hint: you can try redefining %s_factorial
⇊Insert a new box after this one.
I found a probably erroneous piece of code:
clear X,Y ;
which is equivalent to:
clear X
Y
and not at all what the programmer probably meant:
clear ('X','Y')
Scilint should warn about this however there is no simple way from the AST.
Three options seem possible to me:
indexes usually start at 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.