Yuri Astrakhan
2025-02-08 22:33:24 -05:00
committed by GitHub
parent 14559245d8
commit a8f4f70636
297 changed files with 10306 additions and 10320 deletions

View File

@@ -46,8 +46,8 @@ await writeResultsToOutputDir();
///////////////////////////////////////////////////////////////////////////////
/**
*
* @param {string} directory
*
* @param {string} directory
*/
async function unzipFilesInDirectory(directory) {
try {

View File

@@ -82,7 +82,7 @@ await storeRunArtifacts(runArn, outputDir);
/**
* Looks for the run with the provided ARN and returns the test spec output.
*
*
* @param {string[]} arnArr
* @param {string} outputDir
* @returns string

View File

@@ -116,7 +116,7 @@ async function loadResults(dir) {
/**
* @param {string} dbPath
* @param {any[]} results
* @param {any[]} results
*/
function updateDb(dbPath, results) {
const db = new DatabaseSync(dbPath);
@@ -171,7 +171,7 @@ function updateDb(dbPath, results) {
for (const run of results) {
for (const [index, result] of run.results.entries()) {
const id = `${run.timestamp}-${index}`;
const {
const {
deviceManufacturer,
gitRevision,
model,

View File

@@ -37,10 +37,10 @@ processFiles(dir);
///////////////////////////////////////////////////////////////////////////////
/**
*
* @param {string} filePath
* @param {string} gitRevision
* @param {string} filename
*
* @param {string} filePath
* @param {string} gitRevision
* @param {string} filename
*/
async function uploadFileToS3(filePath, gitRevision, filename) {
const s3Client = new S3Client({ region: "eu-central-1" });
@@ -62,8 +62,8 @@ async function uploadFileToS3(filePath, gitRevision, filename) {
}
/**
*
* @param {string} dir
*
* @param {string} dir
*/
async function processFiles(dir) {
const files = await fs.readdir(dir);

View File

@@ -26,7 +26,7 @@ function parseCSSColor(/** @type {string} **/ str) {
}
/**
* @param {any} property
* @param {any} property
*/
function isLightProperty(property) {
return property['light-property'] === true;
@@ -40,7 +40,7 @@ function isOverridable(property) {
};
/**
* @param {any} property
* @param {any} property
* @returns {string}
*/
function expressionType(property) {
@@ -69,8 +69,8 @@ function expressionType(property) {
};
/**
*
* @param {any} property
*
* @param {any} property
* @returns {string}
*/
function evaluatedType(property) {
@@ -124,8 +124,8 @@ function evaluatedType(property) {
};
/**
* @param {any} property
* @param {any} type
* @param {any} property
* @param {any} type
*/
function attributeUniformType(property, type) {
/** @type {Record<string, string[]>} **/
@@ -156,7 +156,7 @@ function attributeUniformType(property, type) {
}
/**
* @param {any} property
* @param {any} property
*/
function layoutPropertyType(property) {
switch (property['property-type']) {
@@ -169,10 +169,10 @@ function layoutPropertyType(property) {
};
/**
*
* @param {any} property
* @param {any} type
* @returns
*
* @param {any} property
* @param {any} type
* @returns
*/
function paintPropertyType(property, type) {
switch (property['property-type']) {
@@ -190,7 +190,7 @@ function paintPropertyType(property, type) {
};
/**
* @param {any} property
* @param {any} property
*/
function propertyValueType(property) {
switch (property['property-type']) {
@@ -202,8 +202,8 @@ function propertyValueType(property) {
};
/**
* @param {any} property
* @param {number} num
* @param {any} property
* @param {number} num
* @returns {string}
*/
function formatNumber(property, num = 0) {
@@ -215,7 +215,7 @@ function formatNumber(property, num = 0) {
}
/**
* @param {any} property
* @param {any} property
*/
function defaultValue(property) {
// https://github.com/mapbox/mapbox-gl-native/issues/5258

View File

@@ -15,7 +15,7 @@ export function iff(condition, val) {
};
/**
* @param {string} str
* @param {string} str
* @returns {string}
*/
export function camelize(str) {
@@ -25,7 +25,7 @@ export function camelize(str) {
};
/**
* @param {string} str
* @param {string} str
* @returns {string}
*/
export function camelizeWithLeadingLowercase(str) {
@@ -43,10 +43,10 @@ export function unhyphenate (/** @type {string} **/ str) {
};
/**
*
* @param {string} filename
* @param {string} newContent
* @param {string} output
*
* @param {string} filename
* @param {string} newContent
* @param {string} output
*/
export function writeIfModified(filename, newContent, output) {
if (output) {
@@ -73,10 +73,10 @@ export function writeIfModified(filename, newContent, output) {
};
/**
*
* @param {string} filename
* @param {string} root
* @returns
*
* @param {string} filename
* @param {string} root
* @returns
*/
export function readAndCompile(filename, root) {
if (root) {

View File

@@ -434,7 +434,7 @@
"js": "3.4"
}
}
},
},
"baseShift": {
"type": "number",
"default": 0.0,
@@ -444,7 +444,7 @@
"js": "3.4"
}
}
},
},
"volatile": {
"type": "boolean",
"default": false,

View File

@@ -12,7 +12,7 @@ src:*/mbgl/util/hash.hpp
# unsigned integer overflow: unsigned interger index in for loop
src:*/vendor/earcut.hpp/include/mapbox/earcut.hpp
# unsigned integer overflow: hash function: str_hash
# unsigned integer overflow: hash function: str_hash
src:*/vendor/eternal/*/eternal.hpp
# unsigned integer overflow

View File

@@ -7,8 +7,8 @@ import fs from "fs/promises";
import { join } from "path";
/**
* @param {string} baseDir
* @param {(path: string) => boolean} predicate
* @param {string} baseDir
* @param {(path: string) => boolean} predicate
* @returns paths
*/
async function getFilePaths(baseDir, predicate) {
@@ -82,9 +82,9 @@ async function loadExamples() {
/**
* Replaces code block in examples with actual example in source code.
*
* @param {string} documentationPath
* @param {Record<string, string>} examples
*
* @param {string} documentationPath
* @param {Record<string, string>} examples
*/
async function updateDocumentation(documentationPath, examples) {
const content = await fs.readFile(documentationPath, 'utf8');

View File

@@ -33,7 +33,7 @@ FILES=(
# Find dependencies for all of these files
echo ">> Finding dependencies..."
ALL=()
for FILE in "${FILES[@]}"; do
for FILE in "${FILES[@]}"; do
ALL+=($(cd "common" && $CXX -std=c++17 -I. -c "$FILE" -M | sed -e 's/^[a-z0-9._-]*: *//;s/ *\\$//'))
done