microsoft / sarif-sdk

.NET code and supporting files for working with the 'Static Analysis Results Interchange Format' (SARIF, see https://github.com/oasis-tcs/sarif-spec)
Other
194 stars 93 forks source link

PREfast converter doesn't ensure slash between file path and file name #1722

Open ghost opened 4 years ago

ghost commented 4 years ago

Given:

    <SFA>
      <FILEPATH>E:\test\MyApp\MyApp</FILEPATH>
      <FILENAME>Config.xml</FILENAME>
      <LINE>948</LINE>
    </SFA>

it produces

"artifactLocation": {
  "uri": "file:///E:/test/MyApp/MyAppConfig.xml",
  "index": 1
},

@boAndron FYI

ghost commented 4 years ago

@michaelcfanning You fixed this, right?