help.lint.checks: better error message for non-unique $see-also.
parent
018d12b29b
commit
3ec5c7074d
|
@ -105,9 +105,8 @@ SYMBOL: vocab-articles
|
||||||
[ "$values should not contain null" simple-lint-error ] when ;
|
[ "$values should not contain null" simple-lint-error ] when ;
|
||||||
|
|
||||||
: check-see-also ( element -- )
|
: check-see-also ( element -- )
|
||||||
\ $see-also swap elements [
|
\ $see-also swap elements [ rest all-unique? ] all?
|
||||||
rest all-unique? t assert=
|
[ "$see-also are not unique" simple-lint-error ] unless ;
|
||||||
] each ;
|
|
||||||
|
|
||||||
: vocab-exists? ( name -- ? )
|
: vocab-exists? ( name -- ? )
|
||||||
[ lookup-vocab ] [ all-vocabs get member? ] bi or ;
|
[ lookup-vocab ] [ all-vocabs get member? ] bi or ;
|
||||||
|
|
Loading…
Reference in New Issue