mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 13:12:08 +00:00
Ensure keyboard aliases do not point to themselves
This commit is contained in:
parent
f0b04b2a3a
commit
3a025f41e0
@ -32,6 +32,10 @@ def ci_validate_aliases(cli):
|
||||
success = True
|
||||
for alias in aliases.keys():
|
||||
target = aliases[alias].get('target', None)
|
||||
if alias == target:
|
||||
cli.log.error(f'Keyboard alias {alias} should not point to itself')
|
||||
success = False
|
||||
|
||||
if not _target_keyboard_exists(target):
|
||||
cli.log.error(f'Keyboard alias {alias} has a target that doesn\'t exist: {target}')
|
||||
success = False
|
||||
|
Loading…
Reference in New Issue
Block a user