Profile error: tcl comment errors

Issue #46 invalid
Andrew Pennebaker created an issue

I want to comment out rule T011 in my profile, but vera++ misinterprets the comment as the name of a rule:

$ cat ~/.vera++/profiles/vera
#!/usr/bin/tclsh
# mcandre's preferred vera++ ruleset.
#
# Install with:
#
# ln -s vera ~/.vera++/profiles/vera

set rules {
    F001

    L001
    L002
    L003
    L004
    L005
    L006

    T001
    T002
    T003
    T004
    T005
    T006
    T007
    T008
    T009
    T010
    # T011
    T012
    T013
    T015
    T016
    T017
    T018
    T019
}

$ vera++ -p vera hello.c
error: cannot open script /Users/andrew/.vera++/scripts/rules/#.tcl

Since profiles are written in tcl, could vera++ become aware of tcl comment syntax?

Comments (2)

  1. Gaëtan Lehmann

    Unfortunately, tcl does not support comments in a list. You have to move your comment out of the list, are break your list in several parts. In a not so far future, no config file should use tcl - that would help on that side.

  2. Log in to comment