Xref: utzoo gnu.emacs.help:706 comp.emacs:9815 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!AI.MIT.EDU!tower From: tower@AI.MIT.EDU (Leonard H. Tower Jr.) Newsgroups: gnu.emacs.help,comp.emacs Subject: Please! sources ONLY in gnu.emacs.sources Message-ID: <9101040121.AA01687@spiff.ai.mit.edu> Date: 4 Jan 91 01:21:25 GMT References: <1991Jan3.212730.13084@mmm.serc.3m.com> Sender: daemon@tut.cis.ohio-state.edu Reply-To: tower@prep.ai.mit.edu Followup-To: gnu.emacs.help Organization: Project GNU, Free Software Foundation, 675 Massachusetts Ave., Cambridge, MA 02139, USA +1 (617) 876-3296 Lines: 41 Your message was inappropriate for gnu.emacs.sources. That newsgroup is for GNU Emacs Sources ONLY! Discussion and inquiries to gnu.emacs.help (aka mailing list help-gnu-emacs@prep.ai.mit.edu). thanx -len Re: Return-Path:Received: from tut.cis.ohio-state.edu by life.ai.mit.edu (4.1/AI-4.10) id AA22521; Thu, 3 Jan 91 17:50:09 EST Received: by tut.cis.ohio-state.edu (5.61-kk/5.901120) id AA19998; Thu, 3 Jan 91 17:46:33 -0500 Received: from USENET by tut.cis.ohio-state.edu with netnews for gnu-emacs-sources@prep.ai.mit.edu (gnu-emacs-sources@prep.ai.mit.edu) (contact usenet@tut.cis.ohio-state.edu if you have questions) Date: 3 Jan 91 21:27:30 GMT From: news@mmm.serc.3m.com (John C. Schultz) Organization: Minnesota Mining & Manufacturing Subject: cyclomatic complexity & comments to code ratio Message-Id: <1991Jan3.212730.13084@mmm.serc.3m.com> Sender: gnu-emacs-sources-request@prep.ai.mit.edu To: gnu-emacs-sources@prep.ai.mit.edu Status: O I have a software standards document that requires 1. the cyclomatic complexity of a routine shall not exceed 10 (NBS 500-99) 2. the ratio of executable statements to comments shall be 1.5 or less What is cyclomatic complexity and does anyone have a way to compute it? Preferably as an emacs macro. Does anyone have a routine to count lines of executable code and/or lines of comments? Thanks. -- John C. Schultz EMAIL: schultz@halley.est.3m.com 3M Company, Building 518-01-1 WRK: +1 (612) 733-4047 1865 Woodlane Drive, Dock 4, Woodbury, MN 55125