Softilium: goode ideas, real tools Home | Download | Order | Contact me |

FAQ

Home > ClearCode > ClearCode docs > FAQ

I ensure that rule does not applicable for one file, but it's applicable for other. How to disable rule for one file?

Define "StopPattern" tag and use "StopPattern" label in particular file. Example:

== ClearCode.ini begin ==

[ExampleRule]

FindPattern=(?i)writeln

StopPattern=writeln_is_OK

Message=It is not console application – "writeln" doesn't allowed here

== ClearCode.ini end ==

== somefile.pas begin ==

writeln(‘hello'); //writeln_is_OK

== somefile.pas end ==

I have set up rules activity through "Active rules" command. When I restart ClearCode, activity was reset. Why?

"Active rules" is per-session command. You can set permanent activity status for rules using "Active" tag in rules file(s). Activity is inheritable through folders and can be turned on and off for each folder and each.

How to prevent some folders from checking?

For instance, you have folder "Common" with subfolders "MiddleTier" and "UserInterface". If you want to do not check folder "Common", just place into this folder file ClearCode.ini with these lines:

==cut ==

[Options]

Recursive=0

== cut ==


Prev Next
=== Documentation is generated by Word2Help ===

Copyright © 2000-2005, Nick Mokhnatov, Independent software developer. Terms of use. Privacy statement.
Updated on Sun, February 11, 2007