summaryrefslogtreecommitdiff
path: root/tools/cpplint.py
Commit message (Collapse)AuthorAgeFilesLines
* cpplint: disallow if one-linersFedor Indutny2013-10-171-0/+4
|
* cpplint: disallow comma-first in C++Fedor Indutny2013-10-171-0/+3
|
* tools: cpplint: fix NOLINT(build/include_order)Ben Noordhuis2013-08-151-13/+18
| | | | | And build/include, build/include_alpha and readability/streams probably too, though those are currently unused and therefore untested.
* tools: cpplint: fix up build/include_order ruleBen Noordhuis2013-07-311-30/+29
| | | | | | | | | | | | | | | | | | | Change the build/include_order rule to match our preference: project headers before system headers. The rationale is that system headers before project headers makes it easy to slip in bugs where a project header that requires a definition from a system header, forgets to include the system header but still compiles because the source files that include the project header coincidentally include the system header too. A good example is the size_t type. A project header file that needs the definition of size_t should include stddef.h but forgetting to do so will probably go unnoticed for a long time because almost every other system header includes stddef.h (either directly or indirectly) and almost every source file includes one or more system headers. Ergo, project headers before system headers. It's a good thing.
* cpplint: make lint rules closer to node's sourceFedor Indutny2013-07-311-13/+18
| | | | | | | | * Support C-style header guards (/* comments */) * Support `class NODE_EXTERN something` * Support `} // extern "C"` closures * Ignore header order * Ignore `long/short` usage (because of OpenSSL's API)
* tools: remove unnecessary cpplint rulesisaacs2013-05-141-14/+0
| | | | | We don't actually care about header order much, and since we never use stl classes, 'string' isn't an issue for node ever.
* Import cpplint.pyRyan Dahl2010-12-011-0/+3126
make cpplint make jslint make lint