Need full pathfile in reports

Issue #101 invalid
Steve Thompson created an issue

I have the following:

    <file name="my_file.c">
        <error source="M057" severity="info" line="115" message="Identifier names shall be at least 3  long (is 1)" />

the trouble is, what if there are several files with this same name in various locations in the project? Is there an option to include the full path?

Comments (2)

  1. Vincent Hobeïka

    Hi,

    The path is the one you gave to vera++ as an input:

    "/home/vincent/dev/vera/build/src/vera++" -c /tmp/report "--root" "/home/vincent/dev/vera" "--rule" "L001" "/home/vincent/dev/vera/tests/L001.cpp"
    
    <?xml version="1.0" encoding="UTF-8"?>
    <checkstyle version="5.0">
        <file name="/home/vincent/dev/vera/tests/L001.cpp">
            <error source="L001" severity="info" line="4" message="trailing whitespace" />
            <error source="L001" severity="info" line="6" message="trailing whitespace" />
        </file>
    </checkstyle>
    

    Feel free to reopen this issue if you think the need is not addressed.

    Best regards,

  2. Log in to comment