From 220e1f8e4bea6f6775cfe935ce60447426366fbf Mon Sep 17 00:00:00 2001 From: Xpol Wan Date: Thu, 24 Mar 2016 21:28:25 +0800 Subject: [PATCH] exclude some platform specific files form linter. --- tools/coding-style/include-linter.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/coding-style/include-linter.py b/tools/coding-style/include-linter.py index 2106e94e56..d51e8b0570 100755 --- a/tools/coding-style/include-linter.py +++ b/tools/coding-style/include-linter.py @@ -44,9 +44,13 @@ class Path: class LintContext: def __init__(self, root, fix): self.exclude = [ - # we are leaving win8.1 and winrt pch.cpp unchanged. + # exclude some platform specific files. + 'platform/win8.1-universal/Cocos2dRenderer.cpp', + 'platform/win8.1-universal/OpenGLES.cpp', + 'platform/win8.1-universal/OpenGLESPage.xaml.cpp', + 'platform/win8.1-universal/OpenGLESPage.xaml.h', 'platform/win8.1-universal/pch.cpp', - 'platform/winrt/pch.cpp' + 'platform/winrt/pch.cpp', ] self.source_exts = ['.h','.hpp','.inl','.c','.cpp', '.m', '.mm'] self.header_exts = ['.h','.hpp','.inl']