File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,10 @@ export function typecheck(spec: Spec) {
233233 . localEntries ( )
234234 . filter ( e => e . type === 'op' && e . signature ?. return != null ) as AlgorithmBiblioEntry [ ] ;
235235 const onlyPerformed : OnlyPerformedMap = new Map (
236- AOs . filter ( e => ! isUnused ( e . signature ! . return ! ) ) . map ( a => [ a . aoid , null ] ) ,
236+ AOs . filter ( e => ! e . skipGlobalChecks && ! isUnused ( e . signature ! . return ! ) ) . map ( a => [
237+ a . aoid ,
238+ null ,
239+ ] ) ,
237240 ) ;
238241 const alwaysAssertedToBeNormal : AlwaysAssertedToBeNormalMap = new Map (
239242 // prettier-ignore
Original file line number Diff line number Diff line change @@ -750,6 +750,32 @@ describe('typechecking completions', () => {
750750 </emu-alg>
751751 </emu-clause>
752752 ` ) ;
753+
754+ await assertLintFree ( `
755+ <emu-clause id="example" type="abstract operation">
756+ <h1>
757+ ExampleAlg (): a mathematical value
758+ </h1>
759+ <dl class="header">
760+ <dt>skip global checks</dt>
761+ <dd>true</dd>
762+ </dl>
763+ <emu-alg>
764+ 1. Return 0.
765+ </emu-alg>
766+ </emu-clause>
767+
768+ <emu-clause id="example2" type="abstract operation">
769+ <h1>
770+ Example2 ()
771+ </h1>
772+ <dl class="header">
773+ </dl>
774+ <emu-alg>
775+ 1. Perform ExampleAlg().
776+ </emu-alg>
777+ </emu-clause>
778+ ` ) ;
753779 } ) ;
754780 } ) ;
755781
You can’t perform that action at this time.
0 commit comments