File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,12 +150,12 @@ namespace {
150150
151151 // Set problem.severity for use with github
152152 const std::string problemSeverity = sarifSeverity (finding);
153- properties[" problem.severity" ] = picojson::value (problemSeverity);
154- rule[" properties" ] = picojson::value (properties);
153+ properties[" problem.severity" ] = picojson::value (problemSeverity);
154+ rule[" properties" ] = picojson::value (properties);
155155 // rule.defaultConfiguration.level
156156 picojson::object defaultConfiguration;
157157 defaultConfiguration[" level" ] = picojson::value (sarifSeverity (finding));
158- rule[" defaultConfiguration" ] = picojson::value (defaultConfiguration);
158+ rule[" defaultConfiguration" ] = picojson::value (defaultConfiguration);
159159
160160 ret.emplace_back (rule);
161161 }
@@ -171,12 +171,10 @@ namespace {
171171 artifactLocation[" uri" ] = picojson::value (location.getfile (false ));
172172 physicalLocation[" artifactLocation" ] = picojson::value (artifactLocation);
173173 picojson::object region;
174-
175174 region[" startLine" ] = picojson::value (static_cast <int64_t >(location.line < 1 ? 1 : location.line ));
176175 region[" startColumn" ] = picojson::value (static_cast <int64_t >(location.column < 1 ? 1 : location.column ));
177176 region[" endLine" ] = region[" startLine" ];
178177 region[" endColumn" ] = region[" startColumn" ];
179-
180178 physicalLocation[" region" ] = picojson::value (region);
181179 picojson::object loc;
182180 loc[" physicalLocation" ] = picojson::value (physicalLocation);
You can’t perform that action at this time.
0 commit comments