Suggestion by sumpfralle

Avatar

sumpfralle

over 2 years ago

Hi, the current code checking tool is mixing up clearsilver (http://clearsilver.net) templates and C# code. Both usually have the file extension ".cs". Examples are the ezmlm-web project and the cryptobox project. Both contain clearsilver templates, that are recogniced as C# code.

Maybe you could add a content check for ambiguous file extensions?

thanks, Lars


Avatar

Jason Allen

over 2 years ago

hi Lars,

Could you provide some suggestions on how to distinguish them? Is there any specific keyword unique to clearsilver (or vice-versa)?


Avatar

Michael Renzmann

over 2 years ago

All ClearSilver templates I've seen so far (basically those being used by Trac) had "<?cs ... ?>" style tags in them. I'm not sure if that is a general-purpose option for distinction, though.

Bye, Mike


Avatar

sumpfralle

over 2 years ago

yes, all clearsilver templates contain "<?cs ... ?>"

("<?cs" should be sufficient as a pattern, as the tags may span multiple lines)

It would be great, if you could scan for this pattern!

thanks, Lars


Avatar

Jason Allen

over 2 years ago

ok - done.

sumprfalle, I now pronounce you the world's top clearsilver developer!


Avatar

sumpfralle

over 2 years ago

hehe - what an unexpected honor :)

thanks for your efforts!