mirror of https://gitlab.com/ita1024/waf.git
Check `env.CPPLINT_SKIP` after `options` are converted to `env`s #1953
This commit is contained in:
parent
45b11ef381
commit
2a7370c597
|
@ -194,9 +194,6 @@ def cpplint_includes(self, node):
|
|||
@TaskGen.feature('cpplint')
|
||||
@TaskGen.before_method('process_source')
|
||||
def post_cpplint(self):
|
||||
if self.env.CPPLINT_SKIP:
|
||||
return
|
||||
|
||||
if not self.env.CPPLINT_INITIALIZED:
|
||||
for key, value in Options.options.__dict__.items():
|
||||
if not key.startswith('CPPLINT_') or self.env[key]:
|
||||
|
@ -204,6 +201,9 @@ def post_cpplint(self):
|
|||
self.env[key] = value
|
||||
self.env.CPPLINT_INITIALIZED = True
|
||||
|
||||
if self.env.CPPLINT_SKIP:
|
||||
return
|
||||
|
||||
if not self.env.CPPLINT_OUTPUT in CPPLINT_RE:
|
||||
return
|
||||
|
||||
|
@ -216,4 +216,3 @@ def post_cpplint(self):
|
|||
self.bld.fatal('Could not find %r' % src)
|
||||
self.create_task('cpplint', node)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue