Commit Graph

8 Commits

Author SHA1 Message Date
Xpol Wan a66c2060b5 Also check the #import statement for m and mm files. 2016-03-21 20:12:15 +08:00
Xpol Wan be688d33c4 Remove debug print [ci skip] 2016-03-21 15:08:45 +08:00
Xpol Wan 764389036d Try fix win32 path issue. 2016-03-21 15:01:01 +08:00
Xpol Wan d063f26173 Add some debug print in linter script. 2016-03-21 14:16:17 +08:00
Xpol Wan 56f2aff34c Replace '\\' with '/' when scan source files. 2016-03-21 13:53:15 +08:00
Xpol Wan bd2d7c3ee7 Always use posixpath. 2016-03-21 13:35:40 +08:00
Xpol Wan 6dcd7d51c3 Update include-linter.py excludes pch.cpp and include .m and .mm. 2016-03-21 11:01:23 +08:00
Xpol Wan 0001ac18f1 Add a include linter script.
It has follow:

1. lint mode: check include lines of all .h .hpp .inl .c .cpp files in cocos directory, find any included cocos2d-x files using #include "???" path not search from cocos directory.
2. fix mode: when run with -f (or --fix), it will fixes these include path.
3. when running in lint mode, it exit with code 1 if any issues found, this can be used in CI scripts to check commits and PRs.
2016-03-20 21:50:25 +08:00