链接已复制
Fu,
We may need to know more about your usage model. In addition, there are various enhancement requests open for new and expanded state and suppression functionality. Are you looking to export the problem states
(Not fixed, Confirmed, Fixed, Not a problem) from one Inspector project to
another Inspector project? Currently, within
a single Inspector project, if you change the state for a problem from New to
Not a problem for example, the problem state is carried forward from analysis
to analysis within the same Inspector project and for the same analysis type
(mi3 for example) even if the line numbering changes.
In a simple test, I copied
the results folder (named r013mi3) from one project to another similar project
(same source files but slight line changes), then run a new mi3 analysis. In this case, an r014mi3 results directory was
created and the states from r013mi3 were carried over to r014mi3. However, this was a very simple test.
You can also create suppressions. Suppressions can be copied from project to
project. To do this, copy a .sup file
from the suppressions directory from one project to another and run analysis to
have the supplanted suppressions applied based on file name and line number. For example, create suppression rules using a
unique name (inspector will create a unique .sup file using the name you
provide) in one project and copy that .sup file to another Inspector projects
suppression directory. There is an
enhancement request to add suppression like functionality directly into the
source code.
Additionally, you can have multiple .sup files in the suppressions
directory which will be applied per the Project Properties Suppression mode
(these options are - Do not use, Mark problems, Delete problems) setting. To apply suppressions, make sure that in the
Project Properties dialog Target tab, the Advanced option named Suppression mode
is select either Mark problems or Delete problems.
Sincerely,
Rob
Fu,
I have added an enhancement request for this additional problem
state functionality. I will update this
forum thread if / when the feature is implemented in a future release of the
product. Thank you for your input and comments.
Sincerely,
Rob
