Forum OpenACS Development: Re: FYI: @return, not @returns

Collapse
Posted by Joel Aufrecht on
I made this an automated test for all tcl files by adding this line:
        aa_true "$file does not contain '@returns'.  @returns is probably a typo of @return" [expr [string first @returns $data] == -1]
to the test case acs_tcl__tcl_file_common_errors in the file /packages/acs-tcl/tcl/test/acs-tcl-test-procs.tcl. If people can think of other favorite typos or style rules etc, this would probably be a good place to check for them, just by adding new aa_true lines to the proc.