]> gitweb.factorcode.org Git - factor.git/commitdiff
Don't report aliases as having a duplicate word definition as the word they alias...
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 14 Oct 2011 17:13:39 +0000 (10:13 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 14 Oct 2011 17:15:13 +0000 (10:15 -0700)
extra/lint/lint.factor

index ee90f41595ce62325ecc1a7a2c4ef581e4237b4b..71c69796e61d13b80b4a55bd428d1349c1f7b569 100644 (file)
@@ -3,7 +3,7 @@
 USING: accessors alien arrays assocs combinators.short-circuit
 fry hashtables io kernel math namespaces prettyprint quotations
 sequences sequences.deep shuffle slots.private vectors vocabs
-words xml.data ;
+words xml.data words.alias ;
 IN: lint
 
 SYMBOL: lint-definitions
@@ -67,6 +67,8 @@ lint-definitions get-global [ drop empty? not ] assoc-filter
 
  [ nip [ vocabulary>> "windows.messages" = ] any? not ] assoc-filter
 
+ [ nip [ alias? ] any? not ] assoc-filter
+
 ! Remove trivial defs
 [ drop trivial-defs member? not ] assoc-filter