how to add a new rule (wiki page is needed)

Issue #35 new
skaluzka created an issue

hello all,

hello, let's assume that I would like to add a new rule to official vera++ code. I have written my *.tcl script and tested it a little bit locally, but I don't know how to add it properly to sources. I suppose some test files should be prepared for my new rule and probably some cmake build files should be modified as well. unfortunatelly I don't know how to do that because I don't know cmake at all. would it be possible to add some information on wiki pages (Developers section) about how to do that? I mean some description how to add own rule and prepare tests. what should be modified and where. how to test such own rule before pull request will be created and such rule will be proposed. what do you think about that?

-- best ragards, skaluzka

Comments (3)

  1. ThArGos

    Hi,

    Thanks for your input. We are currently trying to figure out what would be the best setup to integrate rules provided by the vera++ community.

    I was thinking of something similar to the munin project (and the munin-exchange initiative): https://github.com/munin-monitoring/contrib/

    We could then export the current vera++ shipped rules to a vera++ contrib repository.

    It is nice to have a ticket for this concern. More to come regarding this.

    Best regards,

    -- Vincent

  2. Ferhat Aram

    Is there a way in 2017 to add new rules or any explanation how to do so? Just for my own purpose?

  3. Vincent Hobeïka

    Hi,

    If you want to add a rule for your own purpose you can create a rule file and add it to a profile as explained in the wiki: https://bitbucket.org/verateam/vera/wiki/Introduction If you want to share your created rules we haven't figured how to do so today. If you have an idea on how to create a community sharing vera++ rules it will be welcomed.

    Best regards

  4. Log in to comment