danmar/cppcheck — comment on commit de4a64332efa1cd4e662c4c03057228381f06615
File:  line 0
By kimmov:

Seriously... You copy/paste code to point out that you must copy/paste code. You can do better than that. And why should GUI feature match the same than CLI? If it wanted just that then I wouldn't have started this whole thread!

GUI already collects a list of files its going to check - it can expand that a bit (one function call) to get the extension. Then there are lots of possibilities - the basic thing of comparing extensions of course, but without platform-specific ifdefs etc. Then it could allow e.g. using user's configuration for the extensions to allow needed customization (and solve things like that problem with `.C` and `.c` extensions). If you think GUI as CLI with windows you don't get anywhere and can claim whole GUI is unnecessary. Based on development activity it might be?

One problem with GUI development is exactly this - people don't think past what they want CLI to do. So how could GUI add any of those neat features when it is limited to the very limited "CLI is everything we need to support" -thinking. lib should do its base task of checking given file and let clients to all the rest.