473,722 Members | 2,244 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

automated coding standard validation?

I am looking for tool to validate conformity to defined coding standard.
I have already found Parasoft's C++ Test, but it is quite expensive. Is
there any Open Source alternative? I do not need GUI, fancy reports nor
predefined sets of rules.
Jun 26 '06 #1
50 4724
Konrad Palczynski <ka****@interia .pl> writes:
I am looking for tool to validate conformity to defined coding
standard. I have already found Parasoft's C++ Test, but it is quite
expensive. Is there any Open Source alternative? I do not need GUI,
fancy reports nor predefined sets of rules.


Just out of interest, if you dont have rules, how will you define your
particular coding standards?

If you're interested in static checking of C/C++ then take a look at
splint at:

http://www.splint.org

Its free and its multi-platform.

"Splint is a tool for statically checking C programs for security
vulnerabilities and coding mistakes. With minimal effort, Splint can be
used as a better lint. If additional effort is invested adding
annotations to programs, Splint can perform stronger checking than can
be done by any standard lint."
Jun 26 '06 #2
On Mon, 26 Jun 2006 14:13:23 +0200, Konrad Palczynski
<ka****@interia .pl> wrote in comp.lang.c:
I am looking for tool to validate conformity to defined coding standard.
I have already found Parasoft's C++ Test, but it is quite expensive. Is
there any Open Source alternative? I do not need GUI, fancy reports nor
predefined sets of rules.


http://www.gimpel.com

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.l earn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jun 26 '06 #3
Richard G. Riley wrote:
Konrad Palczynski <ka****@interia .pl> writes:
I am looking for tool to validate conformity to defined coding
standard. I have already found Parasoft's C++ Test, but it is quite
expensive. Is there any Open Source alternative? I do not need GUI,
fancy reports nor predefined sets of rules.
Just out of interest, if you dont have rules, how will you define your
particular coding standards?


Sorry. I meant I do not need sets of rules to be included. I will define
them myself to follow my (client's) coding standard.
If you're interested in static checking of C/C++ then take a look at
splint at:

http://www.splint.org

Its free and its multi-platform.


Splint + Indent will probably be my choice. Thanks!
Jun 26 '06 #4
Richard G. Riley wrote:
Konrad Palczynski <ka****@interia .pl> writes:
I am looking for tool to validate conformity to defined coding
standard. I have already found Parasoft's C++ Test, but it is quite
expensive. Is there any Open Source alternative? I do not need GUI,
fancy reports nor predefined sets of rules.


Just out of interest, if you dont have rules, how will you define your
particular coding standards?

If you're interested in static checking of C/C++ then take a look at
splint at:


FYI: Splint doesn't support C++.

Robert Gamble

Jun 26 '06 #5
Richard G. Riley wrote:
Konrad Palczynski <ka****@interia .pl> writes:
I am looking for tool to validate conformity to defined coding
standard. I have already found Parasoft's C++ Test, but it is quite
expensive. Is there any Open Source alternative? I do not need GUI,
fancy reports nor predefined sets of rules.


Just out of interest, if you dont have rules, how will you define your
particular coding standards?

If you're interested in static checking of C/C++ then take a look at
splint at:


FYI: Splint doesn't support C++.

Robert Gamble

Jun 26 '06 #6
Jack Klein <ja*******@spam cop.net> wrote:
Konrad Palczynski <ka****@interia .pl> wrote in comp.lang.c:
I am looking for tool to validate conformity to defined coding standard.
I have already found Parasoft's C++ Test, but it is quite expensive. Is
there any Open Source alternative? I do not need GUI, fancy reports nor
predefined sets of rules.


http://www.gimpel.com


PC-Lint, (which I purchased) is an excellent product, but if I
understood the OP correctly, this is not what is requested.
"lints" does not cover naming conventions.

Rules such as:
* All global variables must have names ending in "_g"
* All function names in package XYZ must begin with "XYZ_"
* All structures declarations must have a matching typedef
ending with "_t"
can not be verified by lint, pc-lint, etc.

The only tool I know that could do this was Programming Research's
QA-C. ( http://www.programmingresearch.com/ )
It is *very* expensive.

I was thinking of writing my own, based on the LCC parser. Like many
of my ideas/projects this one is at the beginning of its eight year
gestation period.
Jun 26 '06 #7
In article <qm************ *************** *****@4ax.com>,
Roberto Waltman <us****@rwaltma n.net> wrote:
"lints" does not cover naming conventions. Rules such as:
* All global variables must have names ending in "_g"
* All function names in package XYZ must begin with "XYZ_"
* All structures declarations must have a matching typedef
ending with "_t"
can not be verified by lint, pc-lint, etc.


The _t suffix is reserved in current standards, so one might want
to check for the exact opposite ;-)

One difficulty is that the rules need to be different for "user"
definitions and "implementation " definitions; perhaps even turned off
for implementation include files, but on for user include files.
Then one hits the question of what to do with third-party libraries
(say, openssl), which also have to be exempted but not in a way
that allows the local coders to bypass checking by simply putting
the include files into another directory...
--
There are some ideas so wrong that only a very intelligent person
could believe in them. -- George Orwell
Jun 26 '06 #8
Roberto Waltman <us****@rwaltma n.net> writes:
Jack Klein <ja*******@spam cop.net> wrote:
Konrad Palczynski <ka****@interia .pl> wrote in comp.lang.c:
I am looking for tool to validate conformity to defined coding standard.
I have already found Parasoft's C++ Test, but it is quite expensive. Is
there any Open Source alternative? I do not need GUI, fancy reports nor
predefined sets of rules.
http://www.gimpel.com


PC-Lint, (which I purchased) is an excellent product, but if I
understood the OP correctly, this is not what is requested.
"lints" does not cover naming conventions.

Rules such as:
* All global variables must have names ending in "_g"
* All function names in package XYZ must begin with "XYZ_"
* All structures declarations must have a matching typedef
ending with "_t"
can not be verified by lint, pc-lint, etc.


True, but "coding standards" are frequently "developmen t standards"
which do require a "purificati on process" : nothing wrong in being aware
of it for C anyway. I see that van Der Linden espouses regular and
thorough use of Lint'like checks : its certainly something that would
benefit any processes being put in place with multiple programmers and
large legacy/developing/distributed code base.

Ive never used splint with c++ : I know it can check for c++ keywords and
there was a project for a C++ front end in the works sometime back.

The only tool I know that could do this was Programming Research's
QA-C. ( http://www.programmingresearch.com/ )
It is *very* expensive.

I was thinking of writing my own, based on the LCC parser. Like many
of my ideas/projects this one is at the beginning of its eight year
gestation period.

Jun 26 '06 #9
Konrad Palczynski wrote:
Richard G. Riley wrote:
Konrad Palczynski <ka****@interia .pl> writes:
I am looking for tool to validate conformity to defined coding
standard. I have already found Parasoft's C++ Test, but it is quite
expensive. Is there any Open Source alternative? I do not need GUI,
fancy reports nor predefined sets of rules.


Just out of interest, if you dont have rules, how will you define your
particular coding standards?


Sorry. I meant I do not need sets of rules to be included. I will define
them myself to follow my (client's) coding standard.
If you're interested in static checking of C/C++ then take a look at
splint at:

http://www.splint.org

Its free and its multi-platform.


Splint + Indent will probably be my choice. Thanks!


Don't plan on using Splint if you will be writing C99 code, much of C99
doesn't appear to be supported in the latest version of splint (which
was updated 3 years ago which brings us to the fact that Splint is no
longer actively maintained).

Robert Gamble

Jun 26 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
3918
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email adresses and so on. I thought it might be a better way to programm an automated, dynamic form validation that works for all kinds of fields, shows the necessary error messages and highlights the coresponding form fields.
78
4908
by: Robert Baer | last post by:
The homepage i have had up and seemingly working is: http://oil4lessllc.com/ However, the validator has so many complaints, and being so incompetent, i have no clue as to how to fix it all. Would the use of Dreamweaver be of great help?
0
8860
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8738
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9234
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9151
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8042
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6680
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5994
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2146
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.