Skip to content

Commit

Permalink
Let check_raise find more exception raising
Browse files Browse the repository at this point in the history
  • Loading branch information
toton committed Dec 9, 2011
1 parent cf05081 commit 91615a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion check_raise
@@ -1,3 +1,4 @@
#!/bin/bash
# Simple sanity checking of documentation of exceptions. # Simple sanity checking of documentation of exceptions.
# Usage: go to src/ and run ../check_raise # Usage: go to src/ and run ../check_raise


Expand Down Expand Up @@ -31,7 +32,7 @@ doc_raise=$(mktemp)
poor_doc_raise=$(mktemp) poor_doc_raise=$(mktemp)


# Crude check for presence of exceptions in implementations and interfaces # Crude check for presence of exceptions in implementations and interfaces
grep -n raise *.ml | cut -f1 -d. | uniq >$use_raise grep -n "\(raise\|invalid_arg\|failwith\)" *.ml | cut -f1 -d. | uniq >$use_raise
grep -n @raise *.mli | cut -f1 -d. | uniq >$doc_raise grep -n @raise *.mli | cut -f1 -d. | uniq >$doc_raise
grep -n raise *.mli | cut -f1 -d. | uniq >$poor_doc_raise grep -n raise *.mli | cut -f1 -d. | uniq >$poor_doc_raise


Expand Down

0 comments on commit 91615a2

Please sign in to comment.