arxanas / lint381 Goto Github PK
View Code? Open in Web Editor NEWlint381 checks your EECS 381 projects for coding style errors
lint381 checks your EECS 381 projects for coding style errors
Comments like // *** remove this comment
are double tagged
Presently class members named compare are thought to be instances of calling compare on a string.
i.e.
struct S{ int compare }
S s;
s.compare = 2; //this is flagged
It should flag this in a header file:
using namespace std;
But not this:
class Foo {
using namespace std;
}
This can be done by counting the brace-indentation level.
So this doesn't trigger errors, presumably because #include <streambuf>
looks like a use of streambuf
.
#include <streambuf>
using std::streambuf;
// don't use streambuf
Inline Vim support would be nice if only to retaliate against the Emacs support already present.
I use Syntastic as my syntax checker; I think it's reasonable to assume a lot of Vimmers do as well.
Some issues to consider:
lint381
.lint381
the current C/C++ file? (The answer is most likely that we always do it assuming that lint381
is installed and the syntax-checking code is present, and to stop doing this we uninstall one or both.)lint381
? It may be that running it synchronously is too slow.if I have defined an exception:
struct DoTheException {};
It should not be flagged if I have a catch that looks like this:
catch(DoTheException)
If instead I do this it is not flagged, but catching by reference in this case is nonsense:
catch(DoTheException&)
/***** Island Class *****/
would be flagged.
It's reasonable to assume that the first and last sequences of tokens in any header file for this class should be #ifndef FOO_H #define FOO_H
and #endif
.
sizeof(char)
is defined to be equal to 1
in the C standard, so its use is redundant. Flag uses of it for C and import the linter into C++ (see cpp.py
for what that means).
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.