[pre-commit.ci] pre-commit autoupdate (#2394)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2690e3d542
commit
9c1ca98801
@@ -5,7 +5,7 @@ repos:
|
||||
- id: check-yaml
|
||||
args: [--allow-multiple-documents]
|
||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||
rev: v18.1.4
|
||||
rev: v18.1.5
|
||||
hooks:
|
||||
- id: clang-format
|
||||
files: '.*\.(hpp|cpp|h)'
|
||||
@@ -20,7 +20,7 @@ repos:
|
||||
- id: actionlint
|
||||
additional_dependencies: [shellcheck-py]
|
||||
- repo: https://github.com/nicklockwood/SwiftFormat
|
||||
rev: "0.53.8"
|
||||
rev: "0.53.9"
|
||||
hooks:
|
||||
- id: swiftformat
|
||||
args: [--swiftversion, "5.8"]
|
||||
|
||||
@@ -230,8 +230,8 @@ int main(int argc, char* argv[]) {
|
||||
std::cout << status.completedResourceCount << " / " << status.requiredResourceCount << " resources | "
|
||||
<< status.completedTileCount << " / " << status.requiredTileCount << " tiles"
|
||||
<< (status.requiredResourceCountIsPrecise ? " | " : " (indeterminate); ")
|
||||
<< status.completedResourceSize << " bytes downloaded" << " (" << bytesPerSecond << " bytes/sec)"
|
||||
<< std::endl;
|
||||
<< status.completedResourceSize << " bytes downloaded"
|
||||
<< " (" << bytesPerSecond << " bytes/sec)" << std::endl;
|
||||
|
||||
if (status.complete()) {
|
||||
std::cout << "Finished Download" << std::endl;
|
||||
|
||||
@@ -50,7 +50,9 @@ public:
|
||||
if (res.kind == Resource::Kind::Tile) {
|
||||
// onlineResponse.data will be null if data not modified
|
||||
MBGL_TIMING_FINISH(watch,
|
||||
" Action: " << "Requesting," << " URL: " << res.url.c_str() << " Size: "
|
||||
" Action: "
|
||||
<< "Requesting,"
|
||||
<< " URL: " << res.url.c_str() << " Size: "
|
||||
<< (response.data != nullptr ? response.data->size() : 0) << "B,"
|
||||
<< " Time")
|
||||
}
|
||||
|
||||
@@ -78,8 +78,10 @@ std::string simpleDiff(const Value& result, const Value& expected) {
|
||||
}
|
||||
|
||||
if (resultTokens[i] != expectedTokens[i]) {
|
||||
diff << "<b>" << "-" << expectedTokens[i] << "</b>" << std::endl;
|
||||
diff << "<b>" << "+" << resultTokens[i] << "</b>" << std::endl;
|
||||
diff << "<b>"
|
||||
<< "-" << expectedTokens[i] << "</b>" << std::endl;
|
||||
diff << "<b>"
|
||||
<< "+" << resultTokens[i] << "</b>" << std::endl;
|
||||
} else {
|
||||
diff << resultTokens[i] << std::endl;
|
||||
}
|
||||
|
||||
@@ -441,9 +441,10 @@ void GeometryTileWorker::parse() {
|
||||
requestNewImages(imageDependencies);
|
||||
|
||||
MBGL_TIMING_FINISH(watch,
|
||||
" Action: " << "Parsing," << " SourceID: " << sourceID.c_str()
|
||||
<< " Canonical: " << static_cast<int>(id.canonical.z) << "/" << id.canonical.x << "/"
|
||||
<< id.canonical.y << " Time");
|
||||
" Action: "
|
||||
<< "Parsing,"
|
||||
<< " SourceID: " << sourceID.c_str() << " Canonical: " << static_cast<int>(id.canonical.z)
|
||||
<< "/" << id.canonical.x << "/" << id.canonical.y << " Time");
|
||||
finalizeLayout();
|
||||
}
|
||||
|
||||
@@ -494,9 +495,10 @@ void GeometryTileWorker::finalizeLayout() {
|
||||
firstLoad = false;
|
||||
|
||||
MBGL_TIMING_FINISH(watch,
|
||||
" Action: " << "SymbolLayout," << " SourceID: " << sourceID.c_str()
|
||||
<< " Canonical: " << static_cast<int>(id.canonical.z) << "/" << id.canonical.x << "/"
|
||||
<< id.canonical.y << " Time");
|
||||
" Action: "
|
||||
<< "SymbolLayout,"
|
||||
<< " SourceID: " << sourceID.c_str() << " Canonical: " << static_cast<int>(id.canonical.z)
|
||||
<< "/" << id.canonical.x << "/" << id.canonical.y << " Time");
|
||||
|
||||
parent.invoke(&GeometryTile::onLayout,
|
||||
std::make_shared<GeometryTile::LayoutResult>(
|
||||
|
||||
Reference in New Issue
Block a user