scripts/populateDemoData.js
Function run
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function run(num, storage, location) {
console.log(`Will upload ${num} photos to ${storage} in ${location}`);
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
Function uploadPhoto
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
async function uploadPhoto(image, tmpFilePath, id, location, i, num, fontWhite, fontBlack, maxWidth, maxHeight) {
Function addMetaDataSync
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function addMetaDataSync(id, locationName) {
const published = Math.random() <= publishedProbability ? true : null;
let location;
if (LOCATIONS[locationName].center) {