mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: reword TSP diagnostics after doc team review
This commit is contained in:
@@ -42,7 +42,7 @@ nlohmann::json SwiftDiagnostic::json(const std::chrono::system_clock::time_point
|
||||
{"severity", severityToString(severity)},
|
||||
{"helpLinks", std::vector<std::string_view>(absl::StrSplit(helpLinks, ' '))},
|
||||
{format == Format::markdown ? "markdownMessage" : "plaintextMessage",
|
||||
absl::StrCat(message, ".\n\n", action)},
|
||||
absl::StrCat(message, "\n\n", action)},
|
||||
{"timestamp", fmt::format("{:%FT%T%z}", timestamp)},
|
||||
};
|
||||
if (location) {
|
||||
|
||||
@@ -91,8 +91,8 @@ struct SwiftDiagnostic {
|
||||
|
||||
// create a JSON diagnostics for this source with the given `timestamp` and `message`
|
||||
// Depending on format, either a plaintextMessage or markdownMessage is used that includes both
|
||||
// the message and the action to take. A dot '.' is appended to `message`. The id is used to
|
||||
// construct the source id in the form `swift/<prog name>/<id>`
|
||||
// the message and the action to take. The id is used to construct the source id in the form
|
||||
// `swift/<prog name>/<id>`
|
||||
nlohmann::json json(const std::chrono::system_clock::time_point& timestamp,
|
||||
std::string_view message) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user