We only need to write file0="file1.cpp" once in one <location>. I see no reason to write it on every location because for a single <error> it's always the same.</error></location>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see no reason to write it on every location because for a single <error> it's always the same.
I suggest to reconsider your data model design once more here.
Would you like to introduce a case distinction?
If you know that only a single file was analysed (so that also a single error type was detected for this example), you can avoid a bit of data repetition.
But the provided data structures need to be consistent for the safe general usage.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A code review increased the software development attention for the comparison of key attributes in error information which is described to some degree by a XML schema.
I find this data format specification questionable after the discussed details.
Should the attribute “
file0
” become mandatory?Will further improvements be needed for the involved data types?
The Cppcheck software can offer data format descriptions for different files.
--errorlist
”)--xml
”)Will these areas be improved any further?
It is optional by intention. we can avoid writing redundant information.
file1.cpp
file1.h
Cppcheck will write:
We only need to write file0="file1.cpp" once in one <location>. I see no reason to write it on every location because for a single <error> it's always the same.</error></location>
I suggest to reconsider your data model design once more here.
Would you like to introduce a case distinction?
I don't want to waste more time on this debate.
Why do you think that anything would be wasted by this software design clarification?