- Fix "Cannot set properties of undefined (setting '_class')" after adding a person on a server page: kept Overview/People tabs are taken out before dom.content() wipes their LuCI registry - No portal links while the personal portal is off - "Off" disguise writes a plain WireGuard config (no neutral Jc..H4 lines) - Setup wizard: Settings-style groups, portal off by default, "Internet like a home device" switch; no "Link path" (server ids are picked by the router) - Server ids and imported section names may not contain dashes - Health: Cloudflare-proxied endpoint and portal address are not warnings - Themes other than Outline: solid menus, drawer, palette, toasts and tooltips (Bootstrap colour tokens as fallbacks), custom select chevron - Server section tabs scroll sideways instead of wrapping; centred empty People list; wider search; "1 device" in the palette - lint-ucode: exported functions must end with "};"
This commit is contained in:
1 parent
a3910f8b97
commit
d0955e44b8
13 files changed
+168
-112
No files matched your search
@@ -32,5 +32,17 @@ for f in files:
|
||||
line = code[: m.start()].count('\n') + 1
|
||||
print(f"{f}:{line}: {name}() is used before its definition")
|
||||
bad = 1
|
||||
# In a module an exported function is an expression statement: its closing
|
||||
# brace needs a semicolon ("Expecting ';'" breaks the whole module).
|
||||
lines = open(f, encoding='utf-8').read().split('\n')
|
||||
inside = None
|
||||
for n, text in enumerate(lines, 1):
|
||||
if inside is None and re.match(r'^export function \w+\(', text):
|
||||
inside = n
|
||||
elif inside is not None and re.match(r'^}', text):
|
||||
if not text.startswith('};'):
|
||||
print(f"{f}:{n}: exported function from line {inside} must end with '}};'")
|
||||
bad = 1
|
||||
inside = None
|
||||
print(f"lint-ucode: {checked} files checked" + (", problems found" if bad else ", ok"))
|
||||
sys.exit(bad)
|
||||
Reference in new issue
Block a user