Standards checker delivered example (SCByLevel.mvba) is not working as expected. Even if Cell header is set to false in settings it still checks cell components for level/style/weight
The CheckComponents function is flawed as it doesn't pass down the stream that component is part of cell so the cell header standard settings are ignored.
Why even provide CellHeader as standard when cell headers don't have attributes to check?
Pass the containing cell's
ele.TypetoCheckElement, and letCheckElementdecide which standard to use. If no override is supplied, it uses the element's own type as before.1. Update
CheckElementChange the function signature and standard lookup to:
Keep the remainder of existing function.
2. Update
CheckComponentsOnly one change the call to
CheckElement: