Skip to content

fix typos in lint.py #5910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tools/targets/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _split_boards(resolution_order, tgt):
def _generate_hierarchy_string(mcus, boards):
global_errors = []
if len(mcus) < 1:
global_errors.append("No MCUS found in heirarchy")
global_errors.append("No MCUS found in hierarchy")
mcus_string = "??? ->"
elif len(mcus) > 3:
global_errors.append("No name for targets %s" % ", ".join(mcus[3:]))
Expand All @@ -174,7 +174,7 @@ def _generate_hierarchy_string(mcus, boards):
mcus_string = MCU_FORMAT_STRING[len(mcus)] % tuple(mcus)

if len(boards) < 1:
global_errors.append("no boards found in heirarchy")
global_errors.append("no boards found in hierarchy")
boards_string = "???"
elif len(boards) > 2:
global_errors.append("no name for targets %s" % ", ".join(boards[2:]))
Expand All @@ -187,7 +187,7 @@ def _generate_hierarchy_string(mcus, boards):


def check_hierarchy(tgt):
"""Atempts to assign labels to the heirarchy"""
"""Atempts to assign labels to the hierarchy"""
resolution_order = copy(tgt.resolution_order_names[:-1])
mcus, boards = _split_boards(resolution_order, tgt)

Expand Down