[comp.emacs] Please! sources ONLY in gnu.emacs.sources

tower@AI.MIT.EDU (Leonard H. Tower Jr.) (01/04/91)

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: <gnu-emacs-sources-request@prep.ai.mit.edu>
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

schultz@hivehom.serc.3m.com (John C. Schultz) (01/04/91)

sorry

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
From 3M DECNET, try me at 14436::"schultz@halley.est.3m.com"