![]() |
Telelogic Lifecycle Solutions (steve huntington) | ![]() |
Topic Title: Writing new rule in C++ rulecheck Topic Summary: Created On: 16-Dec-2005 06:21 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Is it possible to write a rule for layout such as indent or comment in C++ rule checker?
|
|
![]() |
|
![]() |
|
Assuming you are using 6.1.x, yes. Read the information under Start->Programs->Telelogic->TAU Logiscope 6.1->Documentation->Scriptable Rules Metrics and Contexts. I suggest you start from one of the examples and get it working then extend it incrementally to do what you want.
However in my experience using rule checking to enforce code layout isn't very popular with developers unless you also give them access to automatic layout using a pretty-printer or code beautifier. It's also a lot cheaper to let a pretty-printer automatically do the tedious work compared to expecting your expensive developers to manually make sure every tab is in the right place. I've not tried it, but there is another way of defining rules is described in the 'Studio' pdf help file, in Appendix B. HTH Ian ------------------------- ============= Ian Barnard Principal Consultant Telelogic UK, an IBM company Edited: 24-Mar-2006 at 16:56 by Ian Barnard |
|
![]() |
Telelogic Lifecycle Solutions
» Logiscope
»
Writing new rule in C++ rulecheck
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.