Menu

Exclude specific single file

2020-07-09
2020-07-11
  • Simon Large

    Simon Large - 2020-07-09

    I have a single directory of source files to check, but one of those I want to exclude. There doesn't appear to be any way to do this in the Windows GUI client.

    If I use the Add button to add an exclusion, it only allows me to exclude directories, not files.

    If I add the current directory I can manually edit the line to refer to a file, but the file still gets analysed. I tried excluding file.c and .\file.c, neither worked.

     
  • Daniel Marjamäki

    Thanks! This should be fixed. There is a "workaround":
    Click on "Add.." and select a folder in the dialog box.
    You now have a path in the listbox.
    Double click on the path and write the file path manually.

    I created the ticket: https://trac.cppcheck.net/ticket/9798

     
  • Simon Large

    Simon Large - 2020-07-11

    Thanks. I found the workaround, as I said at the end of the post, but it doesn't stop the file from being analysed. So it's kinda 2 separate issues: adding the file in the GUI and then actually excluding the file from analysis.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.