Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DC on hlx5 #917

Open
wants to merge 2 commits into
base: stage
Choose a base branch
from
Open

DC on hlx5 #917

wants to merge 2 commits into from

Conversation

mokimo
Copy link

@mokimo mokimo commented Dec 10, 2024

Description

Upgrading to aem.live from hlx.live as per the product requirements and docs.
This is not meant to be a complete PR but a spike to ensure you have everything you need and should be carefully QA'd

Todo's

  1. This will need proper QA
  2. This will need to get merged
  3. This will need an origin swap on the akamai level to consume aem.page and aem.live
  4. Once we switched the origin, we can delete references to hlx.live or hlx.page

Test URLs

All 4 variations should work: hlx.page aem.page hlx.live aem.live

Before: https://stage--dc--adobecom.hlx.live/uk/acrobat/business/industries/government
After: https://hlx-5--dc--adobecom.aem.live/uk/acrobat/business/industries/government
After-2: https://hlx-5--dc--adobecom.hlx.live/uk/acrobat/business/industries/government

Known issues

Copy link

aem-code-sync bot commented Dec 10, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

Copy link

aem-code-sync bot commented Dec 10, 2024

@codecov-commenter
Copy link

codecov-commenter commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 91.54930% with 6 lines in your changes missing coverage. Please review.

Project coverage is 81.17%. Comparing base (6b2c83e) to head (de335e0).
Report is 1 commits behind head on stage.

Files with missing lines Patch % Lines
acrobat/blocks/unity/unity.js 0.00% 4 Missing ⚠️
...-converter-widget-ootb/dc-converter-widget-ootb.js 80.00% 1 Missing ⚠️
acrobat/blocks/verb-widget/pdfAssetManager.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #917      +/-   ##
==========================================
- Coverage   81.31%   81.17%   -0.15%     
==========================================
  Files          49       49              
  Lines        6429     6501      +72     
==========================================
+ Hits         5228     5277      +49     
- Misses       1201     1224      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

eslint

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'be_nl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'be_fr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'be_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cz' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cy_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'dk' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'de' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ee' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'es' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'fr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'gr_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'gr_el' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ie' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'il_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'il_he' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'it' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'lv' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'lt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'lu_de' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'lu_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'lu_fr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hu' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'mt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'mena_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'mena_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'nl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'no' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'at' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ro' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_de' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'si' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sk' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_fr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'fi' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'se' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_it' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'tr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'uk' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'bg' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ru' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ua' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'au' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hk_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'in' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'in_hi' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'nz' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hk_zh' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'tw' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'jp' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ae_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ae_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sa_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sa_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'th_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'th_th' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sg' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'co' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ec' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pe' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'eg_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'eg_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'gt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'id_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'id_id' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ph_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ph_fil' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'my_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'my_ms' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kw_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kw_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ng' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'qa_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'qa_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'vn_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'vn_vi' found.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'createpdf' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sendforsignature' found.

'sendforsignature': 'sendforsignature',


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'fillsign' found.


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'url' is never reassigned. Use 'const' instead.

let url = new URL(window.location.href);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

let url = new URL(window.location.href);


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'langFromPath' is never reassigned. Use 'const' instead.

let langFromPath = url.pathname.split('/')[1];


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_VERSION_FALLBACK' is assigned a value but never used.

const DC_GENERATE_CACHE_VERSION_FALLBACK = '1.172.1';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_VERSION' is assigned a value but never used.

DC_GENERATE_CACHE_VERSION = STG_DC_GENERATE_CACHE_VERSION;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.

const dynamicHead = VERB === 'jpg-to-pdf' ? HEADING : WORD_HEADING;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.

const dynamicCopy = VERB === 'jpg-to-pdf' ? COPY : WORD_COPY;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const wrapper = tag('div', {id: 'CID', class: `fsw widget-wrapper wapper-${VERB}` });


🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required after '{'.

const wrapper = tag('div', {id: 'CID', class: `fsw widget-wrapper wapper-${VERB}` });


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const heading = tag('h1', { class: 'widget-heading' }, dynamicHead);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const center = tag('div', { class: 'widget-center' });


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const copy = tag('p', { class: 'widget-copy' }, dynamicCopy);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const legal = tag('p', { class: 'widget-legal' }, LEGAL);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const button = tag('p', { class: 'widget-button' }, BTN);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

wrapper.append(center)
center.append(copy);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const dcWidgetScript = tag('script', {


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.

'data-enable_unload_prompt': 'true',


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

document.addEventListener('milo:deferred', ()=> {


🚫 [eslint] <arrow-spacing> reported by reviewdog 🐶
Missing space before =>.

document.addEventListener('milo:deferred', ()=> {


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.

wrapper.classList.add('widget-loaded');


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

// wrapper.classList.add('widget-loaded');


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.

const GENERATE_CACHE_URL_DIV = widget.querySelectorAll('div')[4];


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.

// GENERATE_CACHE_URL_DIV.id = 'GENERATE_CACHE_URL';


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.

DC_GENERATE_CACHE_URL = GENERATE_CACHE_URL_DIV.textContent.trim();


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_URL' is assigned a value but never used.

DC_GENERATE_CACHE_URL = GENERATE_CACHE_URL_DIV.textContent.trim();


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <import/no-unresolved> reported by reviewdog 🐶
Unable to resolve path to module '../../scripts/legacyBrowser.js'.

const { redirectLegacyBrowsers } = await import('../../scripts/legacyBrowser.js');


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'evt' is never reassigned. Use 'const' instead.

evt = new CustomEvent('dc.imslib.ready', { detail: { instance: window.adobeIMS }});


🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required before '}'.

evt = new CustomEvent('dc.imslib.ready', { detail: { instance: window.adobeIMS }});


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//import init from '../../../acrobat/blocks/dc-converter-widget-ootb/dc-converter-widget-ootb';


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'fetchUrl' is assigned a value but never used.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/acrobat.adobe.com\//);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(document.querySelector('#CID').children).toHaveLength(3);


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(window.location).toMatch(/^https:\/\/www.adobe.com\/go\/acrobat-/);


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//expect(window.location).toMatch(/https:\/\/www.adobe.com\/go\/testredirect/);


🚫 [eslint] <import/extensions> reported by reviewdog 🐶
Missing file extension "js" for "../../../acrobat/scripts/contentSecurityPolicy/csp"

import ContentSecurityPolicy from '../../../acrobat/scripts/contentSecurityPolicy/csp';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'hostnameGetter' is defined but never used.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'url' is defined but never used.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com/acrobat/online/test');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://localhost:2000/acrobat/online/test');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'getLibs' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('https://www.adobe.com/libs');


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('http://localhost:6456/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=main--milo--tsayadobe'
);


🚫 [eslint] <import/order> reported by reviewdog 🐶
../../acrobat/scripts/utils import should occur after import of @esm-bundle/chai

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'getLibs' is defined but never used.

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <import/extensions> reported by reviewdog 🐶
Missing file extension "js" for "../../acrobat/scripts/utils"

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'sinon' is defined but never used.

import * as sinon from 'sinon';


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!eventWrappers.length){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(!eventWrappers.length){
return;
}


🚫 [eslint] <no-confusing-arrow> reported by reviewdog 🐶
Arrow function used ambiguously with a conditional expression.

const eventWrapper = Array.from(eventWrappers).filter((wrapper) => wrapper.querySelector(':scope > div').getAttribute('data-event-name') === 'onload' ? wrapper : wrapper.remove());


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!eventWrapper[0]){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(!eventWrapper[0]){
return;
}


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath && dataPath.includes('caas')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath && dataPath.includes('caas')){
fragmentTypes.splice(3, 0, 'caas');
}


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

const urlObject = new URL(url);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'WebImporter' is not defined.

const block = WebImporter.Blocks.getMetadataBlock(document, meta);


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!fragments.length) {


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath1 && dataPath1.includes('shell')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath1 && dataPath1.includes('shell')){
fragment.before(document.createElement('hr'));
fragment.after(document.createElement('hr'));
fragment.replaceWith(verbFragmentLink);
return;
}


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath2 && dataPath2.includes('verb-footer')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath2 && dataPath2.includes('verb-footer')){
fragment.before(document.createElement('hr'));
fragment.after(document.createElement('hr'));
fragment.replaceWith(verbFragmentLink);
return;
}


🚫 [eslint] <no-useless-return> reported by reviewdog 🐶
Unnecessary return statement.


🚫 [eslint] <padded-blocks> reported by reviewdog 🐶
Block must not be padded by blank lines.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

if (window.location.hostname === 'stage--dc--adobecom.aem.page'
|| window.location.hostname === 'main--dc--adobecom.aem.page'
|| window.location.hostname === 'stage--dc--adobecom.aem.live'
|| window.location.hostname === 'main--dc--adobecom.aem.live'
|| window.location.hostname === 'www.stage.adobe.com') {
WIDGET_ENV = `https://stage.acrobat.adobe.com/dc-hosted/${STG_DC_WIDGET_VERSION}/dc-app-launcher.js`;
DC_DOMAIN = 'https://stage.acrobat.adobe.com';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_DOMAIN' is assigned a value but never used.

@@ -227,7 +227,7 @@
// Redirect
const fallBack = 'https://www.adobe.com/go/acrobat-overview';
const redDir = () => {
if (window.location.hostname != 'main--dc--adobecom.hlx.live'
if (window.location.hostname != 'main--dc--adobecom.aem.live'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <eqeqeq> reported by reviewdog 🐶
Expected '!==' and instead saw '!='.

@@ -227,7 +227,7 @@
// Redirect
const fallBack = 'https://www.adobe.com/go/acrobat-overview';
const redDir = () => {
if (window.location.hostname != 'main--dc--adobecom.hlx.live'
if (window.location.hostname != 'main--dc--adobecom.aem.live'
&& window.location.hostname != 'www.adobe.com' ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <eqeqeq> reported by reviewdog 🐶
Expected '!==' and instead saw '!='.

@@ -227,7 +227,7 @@
// Redirect
const fallBack = 'https://www.adobe.com/go/acrobat-overview';
const redDir = () => {
if (window.location.hostname != 'main--dc--adobecom.hlx.live'
if (window.location.hostname != 'main--dc--adobecom.aem.live'
&& window.location.hostname != 'www.adobe.com' ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <space-in-parens> reported by reviewdog 🐶
There should be no space before this paren.

Suggested change
&& window.location.hostname != 'www.adobe.com' ) {
&& window.location.hostname != 'www.adobe.com') {

@@ -227,7 +227,7 @@
// Redirect
const fallBack = 'https://www.adobe.com/go/acrobat-overview';
const redDir = () => {
if (window.location.hostname != 'main--dc--adobecom.hlx.live'
if (window.location.hostname != 'main--dc--adobecom.aem.live'
&& window.location.hostname != 'www.adobe.com' ) {
window.location = `https://www.adobe.com/go/acrobat-${verbRedirMap[VERB] || VERB.split('-').join('')}-${ENV}`|| REDIRECT_URL;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '||' must be spaced.

Suggested change
window.location = `https://www.adobe.com/go/acrobat-${verbRedirMap[VERB] || VERB.split('-').join('')}-${ENV}`|| REDIRECT_URL;
window.location = `https://www.adobe.com/go/acrobat-${verbRedirMap[VERB] || VERB.split('-').join('')}-${ENV}` || REDIRECT_URL;

}

return `https://main--dc--adobecom.hlx.page/dc-shared/fragments/personalization-summary-frags/${page}/summary-frag-${type}`
return `https://main--dc--adobecom.aem.page/dc-shared/fragments/personalization-summary-frags/${page}/summary-frag-${type}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

Suggested change
return `https://main--dc--adobecom.aem.page/dc-shared/fragments/personalization-summary-frags/${page}/summary-frag-${type}`
return `https://main--dc--adobecom.aem.page/dc-shared/fragments/personalization-summary-frags/${page}/summary-frag-${type}`;

}

return `https://main--dc--adobecom.hlx.page/dc-shared/fragments/personalization-summary-frags/${page}/summary-frag-${type}`
return `https://main--dc--adobecom.aem.page/dc-shared/fragments/personalization-summary-frags/${page}/summary-frag-${type}`
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

Suggested change
}
};

meta.Chromeext = 'https://main--dc--adobecom.hlx.live/dc-shared/fragments/shared-fragments/browser-extension/browser-extension-chrome';
meta.Edgeext = 'https://main--dc--adobecom.hlx.live/dc-shared/fragments/shared-fragments/browser-extension/browser-extension-edge'
meta.Chromeext = 'https://main--dc--adobecom.aem.live/dc-shared/fragments/shared-fragments/browser-extension/browser-extension-chrome';
meta.Edgeext = 'https://main--dc--adobecom.aem.live/dc-shared/fragments/shared-fragments/browser-extension/browser-extension-edge'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

Suggested change
meta.Edgeext = 'https://main--dc--adobecom.aem.live/dc-shared/fragments/shared-fragments/browser-extension/browser-extension-edge'
meta.Edgeext = 'https://main--dc--adobecom.aem.live/dc-shared/fragments/shared-fragments/browser-extension/browser-extension-edge';

Comment on lines 1 to +2

const FRAGMENTLINK = 'https://main--dc--adobecom.hlx.page/dc-shared/fragments/shared-fragments/frictionless/verb-footer/verb-footer-shell'
const FRAGMENTLINK = 'https://main--dc--adobecom.aem.page/dc-shared/fragments/shared-fragments/frictionless/verb-footer/verb-footer-shell'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-multiple-empty-lines> reported by reviewdog 🐶
Too many blank lines at the beginning of file. Max of 0 allowed.

Suggested change
const FRAGMENTLINK = 'https://main--dc--adobecom.hlx.page/dc-shared/fragments/shared-fragments/frictionless/verb-footer/verb-footer-shell'
const FRAGMENTLINK = 'https://main--dc--adobecom.aem.page/dc-shared/fragments/shared-fragments/frictionless/verb-footer/verb-footer-shell'
const FRAGMENTLINK = 'https://main--dc--adobecom.aem.page/dc-shared/fragments/shared-fragments/frictionless/verb-footer/verb-footer-shell'

@@ -1,5 +1,5 @@

const FRAGMENTLINK = 'https://main--dc--adobecom.hlx.page/dc-shared/fragments/shared-fragments/frictionless/verb-footer/verb-footer-shell'
const FRAGMENTLINK = 'https://main--dc--adobecom.aem.page/dc-shared/fragments/shared-fragments/frictionless/verb-footer/verb-footer-shell'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

Suggested change
const FRAGMENTLINK = 'https://main--dc--adobecom.aem.page/dc-shared/fragments/shared-fragments/frictionless/verb-footer/verb-footer-shell'
const FRAGMENTLINK = 'https://main--dc--adobecom.aem.page/dc-shared/fragments/shared-fragments/frictionless/verb-footer/verb-footer-shell';

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required after '{'.

import {createTag} from "../../scripts/miloUtils.js";

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required before '}'.

import {createTag} from "../../scripts/miloUtils.js";

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quotes> reported by reviewdog 🐶
Strings must use singlequote.

import {createTag} from "../../scripts/miloUtils.js";

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'br' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ca' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ca_fr' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'mx' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'la' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'africa' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'za' found.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

eslint

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'gr_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'gr_el' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ie' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'il_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'il_he' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'it' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'lv' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'lt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'lu_de' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'lu_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'lu_fr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hu' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'mt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'mena_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'mena_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'nl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'no' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'at' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ro' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_de' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'si' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sk' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_fr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'fi' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'se' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_it' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'tr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'uk' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'bg' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ru' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ua' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'au' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hk_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'in' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'in_hi' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'nz' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hk_zh' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'tw' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'jp' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ae_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ae_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sa_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sa_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'th_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'th_th' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sg' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'co' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ec' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pe' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'eg_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'eg_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'gt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'id_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'id_id' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ph_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ph_fil' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'my_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'my_ms' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kw_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kw_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ng' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'qa_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'qa_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'vn_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'vn_vi' found.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'createpdf' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sendforsignature' found.

'sendforsignature': 'sendforsignature',


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'fillsign' found.


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'url' is never reassigned. Use 'const' instead.

let url = new URL(window.location.href);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

let url = new URL(window.location.href);


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'langFromPath' is never reassigned. Use 'const' instead.

let langFromPath = url.pathname.split('/')[1];


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_VERSION_FALLBACK' is assigned a value but never used.

const DC_GENERATE_CACHE_VERSION_FALLBACK = '1.172.1';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_VERSION' is assigned a value but never used.

DC_GENERATE_CACHE_VERSION = STG_DC_GENERATE_CACHE_VERSION;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.

const dynamicHead = VERB === 'jpg-to-pdf' ? HEADING : WORD_HEADING;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.

const dynamicCopy = VERB === 'jpg-to-pdf' ? COPY : WORD_COPY;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const wrapper = tag('div', {id: 'CID', class: `fsw widget-wrapper wapper-${VERB}` });


🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required after '{'.

const wrapper = tag('div', {id: 'CID', class: `fsw widget-wrapper wapper-${VERB}` });


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const heading = tag('h1', { class: 'widget-heading' }, dynamicHead);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const center = tag('div', { class: 'widget-center' });


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const copy = tag('p', { class: 'widget-copy' }, dynamicCopy);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const legal = tag('p', { class: 'widget-legal' }, LEGAL);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const button = tag('p', { class: 'widget-button' }, BTN);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

wrapper.append(center)
center.append(copy);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const dcWidgetScript = tag('script', {


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.

'data-enable_unload_prompt': 'true',


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

document.addEventListener('milo:deferred', ()=> {


🚫 [eslint] <arrow-spacing> reported by reviewdog 🐶
Missing space before =>.

document.addEventListener('milo:deferred', ()=> {


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.

wrapper.classList.add('widget-loaded');


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

// wrapper.classList.add('widget-loaded');


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.

const GENERATE_CACHE_URL_DIV = widget.querySelectorAll('div')[4];


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.

// GENERATE_CACHE_URL_DIV.id = 'GENERATE_CACHE_URL';


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.

DC_GENERATE_CACHE_URL = GENERATE_CACHE_URL_DIV.textContent.trim();


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_URL' is assigned a value but never used.

DC_GENERATE_CACHE_URL = GENERATE_CACHE_URL_DIV.textContent.trim();


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <import/no-unresolved> reported by reviewdog 🐶
Unable to resolve path to module '../../scripts/legacyBrowser.js'.

const { redirectLegacyBrowsers } = await import('../../scripts/legacyBrowser.js');


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'evt' is never reassigned. Use 'const' instead.

evt = new CustomEvent('dc.imslib.ready', { detail: { instance: window.adobeIMS }});


🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required before '}'.

evt = new CustomEvent('dc.imslib.ready', { detail: { instance: window.adobeIMS }});


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//import init from '../../../acrobat/blocks/dc-converter-widget-ootb/dc-converter-widget-ootb';


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'fetchUrl' is assigned a value but never used.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/acrobat.adobe.com\//);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(document.querySelector('#CID').children).toHaveLength(3);


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(window.location).toMatch(/^https:\/\/www.adobe.com\/go\/acrobat-/);


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//expect(window.location).toMatch(/https:\/\/www.adobe.com\/go\/testredirect/);


🚫 [eslint] <import/extensions> reported by reviewdog 🐶
Missing file extension "js" for "../../../acrobat/scripts/contentSecurityPolicy/csp"

import ContentSecurityPolicy from '../../../acrobat/scripts/contentSecurityPolicy/csp';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'hostnameGetter' is defined but never used.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'url' is defined but never used.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com/acrobat/online/test');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://localhost:2000/acrobat/online/test');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'getLibs' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('https://www.adobe.com/libs');


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('http://localhost:6456/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=main--milo--tsayadobe'
);


🚫 [eslint] <import/order> reported by reviewdog 🐶
../../acrobat/scripts/utils import should occur after import of @esm-bundle/chai

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'getLibs' is defined but never used.

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <import/extensions> reported by reviewdog 🐶
Missing file extension "js" for "../../acrobat/scripts/utils"

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'sinon' is defined but never used.

import * as sinon from 'sinon';


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!eventWrappers.length){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(!eventWrappers.length){
return;
}


🚫 [eslint] <no-confusing-arrow> reported by reviewdog 🐶
Arrow function used ambiguously with a conditional expression.

const eventWrapper = Array.from(eventWrappers).filter((wrapper) => wrapper.querySelector(':scope > div').getAttribute('data-event-name') === 'onload' ? wrapper : wrapper.remove());


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!eventWrapper[0]){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(!eventWrapper[0]){
return;
}


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath && dataPath.includes('caas')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath && dataPath.includes('caas')){
fragmentTypes.splice(3, 0, 'caas');
}


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

const urlObject = new URL(url);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'WebImporter' is not defined.

const block = WebImporter.Blocks.getMetadataBlock(document, meta);


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!fragments.length) {


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath1 && dataPath1.includes('shell')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath1 && dataPath1.includes('shell')){
fragment.before(document.createElement('hr'));
fragment.after(document.createElement('hr'));
fragment.replaceWith(verbFragmentLink);
return;
}


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath2 && dataPath2.includes('verb-footer')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath2 && dataPath2.includes('verb-footer')){
fragment.before(document.createElement('hr'));
fragment.after(document.createElement('hr'));
fragment.replaceWith(verbFragmentLink);
return;
}


🚫 [eslint] <no-useless-return> reported by reviewdog 🐶
Unnecessary return statement.


🚫 [eslint] <padded-blocks> reported by reviewdog 🐶
Block must not be padded by blank lines.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'be_nl' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'be_fr' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'be_en' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cz' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cy_en' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'dk' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'de' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ee' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'es' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'fr' found.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

eslint

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'lu_fr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hu' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'mt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'mena_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'mena_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'nl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'no' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'at' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ro' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_de' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'si' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sk' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_fr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'fi' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'se' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_it' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'tr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'uk' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'bg' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ru' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ua' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'au' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hk_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'in' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'in_hi' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'nz' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hk_zh' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'tw' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'jp' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ae_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ae_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sa_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sa_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'th_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'th_th' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sg' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'co' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ec' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pe' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'eg_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'eg_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'gt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'id_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'id_id' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ph_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ph_fil' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'my_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'my_ms' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kw_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kw_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ng' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'qa_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'qa_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'vn_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'vn_vi' found.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'createpdf' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sendforsignature' found.

'sendforsignature': 'sendforsignature',


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'fillsign' found.


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'url' is never reassigned. Use 'const' instead.

let url = new URL(window.location.href);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

let url = new URL(window.location.href);


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'langFromPath' is never reassigned. Use 'const' instead.

let langFromPath = url.pathname.split('/')[1];


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_VERSION_FALLBACK' is assigned a value but never used.

const DC_GENERATE_CACHE_VERSION_FALLBACK = '1.172.1';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_VERSION' is assigned a value but never used.

DC_GENERATE_CACHE_VERSION = STG_DC_GENERATE_CACHE_VERSION;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.

const dynamicHead = VERB === 'jpg-to-pdf' ? HEADING : WORD_HEADING;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.

const dynamicCopy = VERB === 'jpg-to-pdf' ? COPY : WORD_COPY;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const wrapper = tag('div', {id: 'CID', class: `fsw widget-wrapper wapper-${VERB}` });


🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required after '{'.

const wrapper = tag('div', {id: 'CID', class: `fsw widget-wrapper wapper-${VERB}` });


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const heading = tag('h1', { class: 'widget-heading' }, dynamicHead);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const center = tag('div', { class: 'widget-center' });


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const copy = tag('p', { class: 'widget-copy' }, dynamicCopy);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const legal = tag('p', { class: 'widget-legal' }, LEGAL);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const button = tag('p', { class: 'widget-button' }, BTN);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

wrapper.append(center)
center.append(copy);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const dcWidgetScript = tag('script', {


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.

'data-enable_unload_prompt': 'true',


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

document.addEventListener('milo:deferred', ()=> {


🚫 [eslint] <arrow-spacing> reported by reviewdog 🐶
Missing space before =>.

document.addEventListener('milo:deferred', ()=> {


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.

wrapper.classList.add('widget-loaded');


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

// wrapper.classList.add('widget-loaded');


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.

const GENERATE_CACHE_URL_DIV = widget.querySelectorAll('div')[4];


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.

// GENERATE_CACHE_URL_DIV.id = 'GENERATE_CACHE_URL';


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.

DC_GENERATE_CACHE_URL = GENERATE_CACHE_URL_DIV.textContent.trim();


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_URL' is assigned a value but never used.

DC_GENERATE_CACHE_URL = GENERATE_CACHE_URL_DIV.textContent.trim();


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <import/no-unresolved> reported by reviewdog 🐶
Unable to resolve path to module '../../scripts/legacyBrowser.js'.

const { redirectLegacyBrowsers } = await import('../../scripts/legacyBrowser.js');


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'evt' is never reassigned. Use 'const' instead.

evt = new CustomEvent('dc.imslib.ready', { detail: { instance: window.adobeIMS }});


🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required before '}'.

evt = new CustomEvent('dc.imslib.ready', { detail: { instance: window.adobeIMS }});


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//import init from '../../../acrobat/blocks/dc-converter-widget-ootb/dc-converter-widget-ootb';


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'fetchUrl' is assigned a value but never used.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/acrobat.adobe.com\//);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(document.querySelector('#CID').children).toHaveLength(3);


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(window.location).toMatch(/^https:\/\/www.adobe.com\/go\/acrobat-/);


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//expect(window.location).toMatch(/https:\/\/www.adobe.com\/go\/testredirect/);


🚫 [eslint] <import/extensions> reported by reviewdog 🐶
Missing file extension "js" for "../../../acrobat/scripts/contentSecurityPolicy/csp"

import ContentSecurityPolicy from '../../../acrobat/scripts/contentSecurityPolicy/csp';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'hostnameGetter' is defined but never used.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'url' is defined but never used.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com/acrobat/online/test');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://localhost:2000/acrobat/online/test');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'getLibs' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('https://www.adobe.com/libs');


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('http://localhost:6456/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=main--milo--tsayadobe'
);


🚫 [eslint] <import/order> reported by reviewdog 🐶
../../acrobat/scripts/utils import should occur after import of @esm-bundle/chai

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'getLibs' is defined but never used.

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <import/extensions> reported by reviewdog 🐶
Missing file extension "js" for "../../acrobat/scripts/utils"

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'sinon' is defined but never used.

import * as sinon from 'sinon';


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!eventWrappers.length){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(!eventWrappers.length){
return;
}


🚫 [eslint] <no-confusing-arrow> reported by reviewdog 🐶
Arrow function used ambiguously with a conditional expression.

const eventWrapper = Array.from(eventWrappers).filter((wrapper) => wrapper.querySelector(':scope > div').getAttribute('data-event-name') === 'onload' ? wrapper : wrapper.remove());


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!eventWrapper[0]){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(!eventWrapper[0]){
return;
}


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath && dataPath.includes('caas')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath && dataPath.includes('caas')){
fragmentTypes.splice(3, 0, 'caas');
}


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

const urlObject = new URL(url);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'WebImporter' is not defined.

const block = WebImporter.Blocks.getMetadataBlock(document, meta);


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!fragments.length) {


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath1 && dataPath1.includes('shell')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath1 && dataPath1.includes('shell')){
fragment.before(document.createElement('hr'));
fragment.after(document.createElement('hr'));
fragment.replaceWith(verbFragmentLink);
return;
}


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath2 && dataPath2.includes('verb-footer')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath2 && dataPath2.includes('verb-footer')){
fragment.before(document.createElement('hr'));
fragment.after(document.createElement('hr'));
fragment.replaceWith(verbFragmentLink);
return;
}


🚫 [eslint] <no-useless-return> reported by reviewdog 🐶
Unnecessary return statement.


🚫 [eslint] <padded-blocks> reported by reviewdog 🐶
Block must not be padded by blank lines.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'gr_en' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'gr_el' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ie' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'nl' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'no' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'at' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pl' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pt' found.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

eslint

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'bg' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ru' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ua' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'au' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hk_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'in' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'in_hi' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'nz' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hk_zh' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'tw' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'jp' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ae_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ae_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sa_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sa_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'th_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'th_th' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sg' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'co' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ec' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pe' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'eg_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'eg_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'gt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'id_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'id_id' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ph_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ph_fil' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'my_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'my_ms' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kw_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kw_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ng' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'qa_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'qa_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'vn_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'vn_vi' found.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'createpdf' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sendforsignature' found.

'sendforsignature': 'sendforsignature',


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'fillsign' found.


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'url' is never reassigned. Use 'const' instead.

let url = new URL(window.location.href);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

let url = new URL(window.location.href);


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'langFromPath' is never reassigned. Use 'const' instead.

let langFromPath = url.pathname.split('/')[1];


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_VERSION_FALLBACK' is assigned a value but never used.

const DC_GENERATE_CACHE_VERSION_FALLBACK = '1.172.1';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_VERSION' is assigned a value but never used.

DC_GENERATE_CACHE_VERSION = STG_DC_GENERATE_CACHE_VERSION;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.

const dynamicHead = VERB === 'jpg-to-pdf' ? HEADING : WORD_HEADING;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.

const dynamicCopy = VERB === 'jpg-to-pdf' ? COPY : WORD_COPY;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const wrapper = tag('div', {id: 'CID', class: `fsw widget-wrapper wapper-${VERB}` });


🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required after '{'.

const wrapper = tag('div', {id: 'CID', class: `fsw widget-wrapper wapper-${VERB}` });


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const heading = tag('h1', { class: 'widget-heading' }, dynamicHead);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const center = tag('div', { class: 'widget-center' });


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const copy = tag('p', { class: 'widget-copy' }, dynamicCopy);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const legal = tag('p', { class: 'widget-legal' }, LEGAL);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const button = tag('p', { class: 'widget-button' }, BTN);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

wrapper.append(center)
center.append(copy);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const dcWidgetScript = tag('script', {


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.

'data-enable_unload_prompt': 'true',


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

document.addEventListener('milo:deferred', ()=> {


🚫 [eslint] <arrow-spacing> reported by reviewdog 🐶
Missing space before =>.

document.addEventListener('milo:deferred', ()=> {


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.

wrapper.classList.add('widget-loaded');


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

// wrapper.classList.add('widget-loaded');


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.

const GENERATE_CACHE_URL_DIV = widget.querySelectorAll('div')[4];


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.

// GENERATE_CACHE_URL_DIV.id = 'GENERATE_CACHE_URL';


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.

DC_GENERATE_CACHE_URL = GENERATE_CACHE_URL_DIV.textContent.trim();


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_URL' is assigned a value but never used.

DC_GENERATE_CACHE_URL = GENERATE_CACHE_URL_DIV.textContent.trim();


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <import/no-unresolved> reported by reviewdog 🐶
Unable to resolve path to module '../../scripts/legacyBrowser.js'.

const { redirectLegacyBrowsers } = await import('../../scripts/legacyBrowser.js');


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'evt' is never reassigned. Use 'const' instead.

evt = new CustomEvent('dc.imslib.ready', { detail: { instance: window.adobeIMS }});


🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required before '}'.

evt = new CustomEvent('dc.imslib.ready', { detail: { instance: window.adobeIMS }});


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//import init from '../../../acrobat/blocks/dc-converter-widget-ootb/dc-converter-widget-ootb';


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'fetchUrl' is assigned a value but never used.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/acrobat.adobe.com\//);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(document.querySelector('#CID').children).toHaveLength(3);


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(window.location).toMatch(/^https:\/\/www.adobe.com\/go\/acrobat-/);


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//expect(window.location).toMatch(/https:\/\/www.adobe.com\/go\/testredirect/);


🚫 [eslint] <import/extensions> reported by reviewdog 🐶
Missing file extension "js" for "../../../acrobat/scripts/contentSecurityPolicy/csp"

import ContentSecurityPolicy from '../../../acrobat/scripts/contentSecurityPolicy/csp';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'hostnameGetter' is defined but never used.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'url' is defined but never used.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com/acrobat/online/test');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://localhost:2000/acrobat/online/test');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'getLibs' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('https://www.adobe.com/libs');


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('http://localhost:6456/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=main--milo--tsayadobe'
);


🚫 [eslint] <import/order> reported by reviewdog 🐶
../../acrobat/scripts/utils import should occur after import of @esm-bundle/chai

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'getLibs' is defined but never used.

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <import/extensions> reported by reviewdog 🐶
Missing file extension "js" for "../../acrobat/scripts/utils"

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'sinon' is defined but never used.

import * as sinon from 'sinon';


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!eventWrappers.length){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(!eventWrappers.length){
return;
}


🚫 [eslint] <no-confusing-arrow> reported by reviewdog 🐶
Arrow function used ambiguously with a conditional expression.

const eventWrapper = Array.from(eventWrappers).filter((wrapper) => wrapper.querySelector(':scope > div').getAttribute('data-event-name') === 'onload' ? wrapper : wrapper.remove());


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!eventWrapper[0]){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(!eventWrapper[0]){
return;
}


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath && dataPath.includes('caas')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath && dataPath.includes('caas')){
fragmentTypes.splice(3, 0, 'caas');
}


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

const urlObject = new URL(url);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'WebImporter' is not defined.

const block = WebImporter.Blocks.getMetadataBlock(document, meta);


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!fragments.length) {


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath1 && dataPath1.includes('shell')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath1 && dataPath1.includes('shell')){
fragment.before(document.createElement('hr'));
fragment.after(document.createElement('hr'));
fragment.replaceWith(verbFragmentLink);
return;
}


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath2 && dataPath2.includes('verb-footer')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath2 && dataPath2.includes('verb-footer')){
fragment.before(document.createElement('hr'));
fragment.after(document.createElement('hr'));
fragment.replaceWith(verbFragmentLink);
return;
}


🚫 [eslint] <no-useless-return> reported by reviewdog 🐶
Unnecessary return statement.


🚫 [eslint] <padded-blocks> reported by reviewdog 🐶
Block must not be padded by blank lines.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ro' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_de' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'si' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sk' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_fr' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'fi' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'se' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ch_it' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'tr' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'uk' found.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

eslint

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'jp' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ae_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ae_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sa_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sa_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'th_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'th_th' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sg' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cl' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'co' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'cr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pr' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ec' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'pe' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'eg_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'eg_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'gt' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'id_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'id_id' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ph_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ph_fil' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'my_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'my_ms' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kw_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'kw_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ng' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'qa_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'qa_ar' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'vn_en' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'vn_vi' found.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'createpdf' found.


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'sendforsignature' found.

'sendforsignature': 'sendforsignature',


🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'fillsign' found.


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'url' is never reassigned. Use 'const' instead.

let url = new URL(window.location.href);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

let url = new URL(window.location.href);


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'langFromPath' is never reassigned. Use 'const' instead.

let langFromPath = url.pathname.split('/')[1];


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_VERSION_FALLBACK' is assigned a value but never used.

const DC_GENERATE_CACHE_VERSION_FALLBACK = '1.172.1';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_VERSION' is assigned a value but never used.

DC_GENERATE_CACHE_VERSION = STG_DC_GENERATE_CACHE_VERSION;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.

const dynamicHead = VERB === 'jpg-to-pdf' ? HEADING : WORD_HEADING;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.

const dynamicCopy = VERB === 'jpg-to-pdf' ? COPY : WORD_COPY;


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const wrapper = tag('div', {id: 'CID', class: `fsw widget-wrapper wapper-${VERB}` });


🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required after '{'.

const wrapper = tag('div', {id: 'CID', class: `fsw widget-wrapper wapper-${VERB}` });


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const heading = tag('h1', { class: 'widget-heading' }, dynamicHead);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const center = tag('div', { class: 'widget-center' });


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const copy = tag('p', { class: 'widget-copy' }, dynamicCopy);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const legal = tag('p', { class: 'widget-legal' }, LEGAL);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const button = tag('p', { class: 'widget-button' }, BTN);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

wrapper.append(center)
center.append(copy);


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

const dcWidgetScript = tag('script', {


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.

'data-enable_unload_prompt': 'true',


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

document.addEventListener('milo:deferred', ()=> {


🚫 [eslint] <arrow-spacing> reported by reviewdog 🐶
Missing space before =>.

document.addEventListener('milo:deferred', ()=> {


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.

wrapper.classList.add('widget-loaded');


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 6 spaces but found 10.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.

// wrapper.classList.add('widget-loaded');


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 8.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.

const GENERATE_CACHE_URL_DIV = widget.querySelectorAll('div')[4];


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.

// GENERATE_CACHE_URL_DIV.id = 'GENERATE_CACHE_URL';


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.

DC_GENERATE_CACHE_URL = GENERATE_CACHE_URL_DIV.textContent.trim();


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'DC_GENERATE_CACHE_URL' is assigned a value but never used.

DC_GENERATE_CACHE_URL = GENERATE_CACHE_URL_DIV.textContent.trim();


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 6.


🚫 [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 2 spaces but found 4.


🚫 [eslint] <import/no-unresolved> reported by reviewdog 🐶
Unable to resolve path to module '../../scripts/legacyBrowser.js'.

const { redirectLegacyBrowsers } = await import('../../scripts/legacyBrowser.js');


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <prefer-const> reported by reviewdog 🐶
'evt' is never reassigned. Use 'const' instead.

evt = new CustomEvent('dc.imslib.ready', { detail: { instance: window.adobeIMS }});


🚫 [eslint] <object-curly-spacing> reported by reviewdog 🐶
A space is required before '}'.

evt = new CustomEvent('dc.imslib.ready', { detail: { instance: window.adobeIMS }});


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//import init from '../../../acrobat/blocks/dc-converter-widget-ootb/dc-converter-widget-ootb';


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'fetchUrl' is assigned a value but never used.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/acrobat.adobe.com\//);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(document.querySelector('#CID').children).toHaveLength(3);


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(window.location).toMatch(/^https:\/\/www.adobe.com\/go\/acrobat-/);


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//expect(window.location).toMatch(/https:\/\/www.adobe.com\/go\/testredirect/);


🚫 [eslint] <import/extensions> reported by reviewdog 🐶
Missing file extension "js" for "../../../acrobat/scripts/contentSecurityPolicy/csp"

import ContentSecurityPolicy from '../../../acrobat/scripts/contentSecurityPolicy/csp';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'hostnameGetter' is defined but never used.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'url' is defined but never used.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com/acrobat/online/test');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://localhost:2000/acrobat/online/test');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('http-equiv')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.hasAttribute('content')).toBe(true);


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(meta.getAttribute('http-equiv')).toBe('Content-Security-Policy');


🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

//import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'getLibs' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('https://www.adobe.com/libs');


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('http://localhost:6456/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=main--milo--tsayadobe'
);


🚫 [eslint] <import/order> reported by reviewdog 🐶
../../acrobat/scripts/utils import should occur after import of @esm-bundle/chai

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'getLibs' is defined but never used.

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <import/extensions> reported by reviewdog 🐶
Missing file extension "js" for "../../acrobat/scripts/utils"

import { setLibs, getLibs } from '../../acrobat/scripts/utils';


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'sinon' is defined but never used.

import * as sinon from 'sinon';


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!eventWrappers.length){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(!eventWrappers.length){
return;
}


🚫 [eslint] <no-confusing-arrow> reported by reviewdog 🐶
Arrow function used ambiguously with a conditional expression.

const eventWrapper = Array.from(eventWrappers).filter((wrapper) => wrapper.querySelector(':scope > div').getAttribute('data-event-name') === 'onload' ? wrapper : wrapper.remove());


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!eventWrapper[0]){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(!eventWrapper[0]){
return;
}


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath && dataPath.includes('caas')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath && dataPath.includes('caas')){
fragmentTypes.splice(3, 0, 'caas');
}


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

const urlObject = new URL(url);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'WebImporter' is not defined.

const block = WebImporter.Blocks.getMetadataBlock(document, meta);


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(!fragments.length) {


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath1 && dataPath1.includes('shell')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath1 && dataPath1.includes('shell')){
fragment.before(document.createElement('hr'));
fragment.after(document.createElement('hr'));
fragment.replaceWith(verbFragmentLink);
return;
}


🚫 [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dataPath2 && dataPath2.includes('verb-footer')){


🚫 [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dataPath2 && dataPath2.includes('verb-footer')){
fragment.before(document.createElement('hr'));
fragment.after(document.createElement('hr'));
fragment.replaceWith(verbFragmentLink);
return;
}


🚫 [eslint] <no-useless-return> reported by reviewdog 🐶
Unnecessary return statement.


🚫 [eslint] <padded-blocks> reported by reviewdog 🐶
Block must not be padded by blank lines.


🚫 [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'bg' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ru' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'ua' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'au' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hk_en' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'in' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'in_hi' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'nz' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'hk_zh' found.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <quote-props> reported by reviewdog 🐶
Unnecessarily quoted property 'tw' found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants