| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,6 +37,9 @@ are: | |||
| 37 | 37 | - tools/closure_linter is copyrighted by The Closure Linter Authors and | |
| 38 | 38 | Google Inc and is released under the Apache license. | |
| 39 | 39 | ||
| 40 | + - tools/cpplint.py is copyrighted by Google Inc and is released under the | ||
| 41 | + BSD license. | ||
| 42 | + | ||
| 40 | 43 | ||
| 41 | 44 | Node's license follows: | |
| 42 | 45 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -130,11 +130,18 @@ bench-idle: | |||
| 130 | 130 | sleep 1 | |
| 131 | 131 | ./node benchmark/idle_clients.js & | |
| 132 | 132 | ||
| 133 | - lint: | ||
| 133 | + # TODO lint the test directories and src/node.js | ||
| 134 | + jslint: | ||
| 134 | 135 | @for i in lib/*.js; do \ | |
| 135 | 136 | PYTHONPATH=tools/closure_linter/ python tools/closure_linter/closure_linter/gjslint.py \ | |
| 136 | 137 | --unix_mode --strict --nojsdoc $$i || exit 1; \ | |
| 137 | 138 | done | |
| 138 | 139 | ||
| 140 | + cpplint: | ||
| 141 | + @for i in src/*.cc src/*.h src/*.c; do \ | ||
| 142 | + python tools/cpplint.py $$i || exit 1; \ | ||
| 143 | + done | ||
| 144 | + | ||
| 145 | + lint: jslint cpplint | ||
| 139 | 146 | ||
| 140 | - .PHONY: lint bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload | ||
| 147 | + .PHONY: lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments