Sub-theme's 'dist/script.js' is not added to a list of PHPCS exclusions when running 'npm run build'

Created on 19 January 2024, 10 months ago
Updated 26 March 2024, 8 months ago

Summary
When running in the sub-theme created from the starter kit, the compiled JS get's PHPCS exclusion comments added automatically.

This works for JS files in `sotrybook-static` directory, but not for js files in `dist`directory.

As a result - the PHPCS linting always reports violations on the file `dist/styles.css`

Steps to reproduce
Using GovCMS SaaS scaffold:

1. Create a subtheme
2. Run `npm ci`
3. Run `npm run lint`

Observed outcome
CSS files is scanned by phpcs and reported as a file with violations.

🐛 Bug report
Status

Fixed

Version

1.6

Component

Code

Created by

🇦🇺Australia alex.skrypnyk Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024