This may be an absolute path, or a path relative to the current working directory. The name of a directory containing suppression files. The name of a suppression file. May be an absolute pathname or name relative to the current working directory. The inspxe-cl. For multiple arguments: You may specify this option multiple times in a single command, or specify multiple arguments in a comma-separated list no spaces. For example, the following are equivalent:. Actions Modified.
Use the suppression-file. Depending on the number of suppression files you want to apply and their locations, you may want to specify a single suppression file, multiple individual suppression files, or the suppressions directory, as shown in these examples. The example commands all perform analysis using the ti2. Single Suppression File. If you want to use a single suppression file only, for example, you may have created a suppress-all file on the command line, you can specify just this one file.
In this command, a suppress-all file myTi2SuppressAllFile. You may want to specify multiple individual suppression files if you have suppression files stored in multiple directories, or if you only want to apply some of the suppression files stored in your project's suppressions directory.
Use one of these two syntax variations when you want to pass in multiple individual suppression files. Specify the suppression-file.
It is easiest to use an option file to pass in multiple suppression files, as explained in the next section. If you have multiple suppression files in the same directory and want to apply all the suppression files in this directory, you can simply specify the directory. If you have multiple suppression files but cannot specify the suppressions directory as described above, you can use the option-file.
This option file is named myOptionFile. Now myOptionFile. Applying Suppression Files During Analysis. There are suppressions that just seem to clutter the code and I would like to put them in GlobalSuppressions. Eric - If you put a suppress message in the. If that is what you want then just turn off the rule. You say clutter, I'd say documents. The attributes tell programmers that a situation has been considered and a resolution decided upon.
StyleCop will enforce using the Justification property to document the decision. I don't know of any resources describing the use, but I learnt to use fxCop at Microsoft.
Pete Whitehead Pete Whitehead 2 2 silver badges 10 10 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Quality code is the easiest to delete. Upcoming Events.
0コメント