Skip to content
1 change: 1 addition & 0 deletions tools/commands/build_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def set_subparser(subparsers):
run_on_changed_packages=True,
base_sha=True,
command='build')
parser.set_defaults(func=run_build_examples)


def _build_examples(plugin_dir):
Expand Down
8 changes: 5 additions & 3 deletions tools/commands/check_tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@


class Stats(object):

def __init__(self):
self.files = 0
self.lines = 0
Expand All @@ -56,7 +57,8 @@ def _run_check_tidy(src_dir, update, clang_format, stats):
continue

for file in [
join(dirpath, name) for name in filenames
join(dirpath, name)
for name in filenames
if is_checked_by_clang(name)
]:

Expand Down Expand Up @@ -87,8 +89,7 @@ def report_error(msg, line=None):
if line.endswith(' \n') or line.endswith('\t\n'):
report_error('trailing whitespace', lineno)
if not line.endswith('\n'):
report_error('line ends without NEW LINE character',
lineno)
report_error('line ends without NEW LINE character', lineno)

if not line.strip():
stats.empty_lines += 1
Expand Down Expand Up @@ -116,6 +117,7 @@ def set_subparser(subparsers):
metavar='PATH',
default=DEFAULT_DIR,
help='directory to process (default: %(default)s)')
parser.set_defaults(func=run_check_tidy)


def run_check_tidy(args):
Expand Down
Loading