Update the webpack config and package.json#2
Conversation
KMchaudhary
commented
Dec 11, 2024
- Update the package.json and webpack that will work as a base for easyDAM features development.
- Add EasyDAM Video block.
Update the package.json and webpack that will wor k as a base for easyDAM features development
rtBot
left a comment
There was a problem hiding this comment.
Code analysis identified issues
action-phpcs-code-review has identified potential problems in this pull request during automated scanning. We recommend reviewing the issues noted and that they are resolved.
phpcs scanning turned up:
🚫 16 errors
skipped-files
Maximum number of lines exceeded (15000):
- assets/build/blocks/easydam-player/frontend.js
- assets/build/blocks/easydam-player/index.js
Note that the above file(s) were not analyzed due to their length.
Powered by rtCamp's GitHub Actions Library
Posting will continue in further review(s)
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => 'e2d23771ba2d814f829e'); | |||
There was a problem hiding this comment.
🚫 Error: Missing file doc comment (Squiz.Commenting.FileComment.Missing).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => 'e2d23771ba2d814f829e'); | |||
There was a problem hiding this comment.
🚫 Error: Expected 1 space after the array opener in a single line array. Found: no spaces (NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceAfterArrayOpenerSingleLine).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => 'e2d23771ba2d814f829e'); | |||
There was a problem hiding this comment.
🚫 Error: When a multi-item array uses associative keys, each value should start on a new line (WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => 'e2d23771ba2d814f829e'); | |||
There was a problem hiding this comment.
🚫 Error: Expected 1 space before the array closer in a single line array. Found: no spaces (NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceBeforeArrayCloserSingleLine).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => 'c3fda1483d8ff073fe8d'); | |||
There was a problem hiding this comment.
🚫 Error: Missing file doc comment (Squiz.Commenting.FileComment.Missing).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => 'c3fda1483d8ff073fe8d'); | |||
There was a problem hiding this comment.
🚫 Error: Expected 1 space after the array opener in a single line array. Found: no spaces (NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceAfterArrayOpenerSingleLine).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => 'c3fda1483d8ff073fe8d'); | |||
There was a problem hiding this comment.
🚫 Error: Expected 1 space before the array closer in a single line array. Found: no spaces (NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceBeforeArrayCloserSingleLine).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => 'c3fda1483d8ff073fe8d'); | |||
There was a problem hiding this comment.
🚫 Error: When a multi-item array uses associative keys, each value should start on a new line (WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => '6ceb6cf9faa42622bc89'); | |||
There was a problem hiding this comment.
🚫 Error: Missing file doc comment (Squiz.Commenting.FileComment.Missing).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => '6ceb6cf9faa42622bc89'); | |||
There was a problem hiding this comment.
🚫 Error: Expected 1 space after the array opener in a single line array. Found: no spaces (NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceAfterArrayOpenerSingleLine).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => '6ceb6cf9faa42622bc89'); | |||
There was a problem hiding this comment.
🚫 Error: When a multi-item array uses associative keys, each value should start on a new line (WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => '6ceb6cf9faa42622bc89'); | |||
There was a problem hiding this comment.
🚫 Error: Expected 1 space before the array closer in a single line array. Found: no spaces (NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceBeforeArrayCloserSingleLine).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => 'd30a32a27c47da7979ee'); | |||
There was a problem hiding this comment.
🚫 Error: Missing file doc comment (Squiz.Commenting.FileComment.Missing).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => 'd30a32a27c47da7979ee'); | |||
There was a problem hiding this comment.
🚫 Error: Expected 1 space after the array opener in a single line array. Found: no spaces (NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceAfterArrayOpenerSingleLine).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => 'd30a32a27c47da7979ee'); | |||
There was a problem hiding this comment.
🚫 Error: When a multi-item array uses associative keys, each value should start on a new line (WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound).
| @@ -0,0 +1 @@ | |||
| <?php return array('dependencies' => array(), 'version' => 'd30a32a27c47da7979ee'); | |||
There was a problem hiding this comment.
🚫 Error: Expected 1 space before the array closer in a single line array. Found: no spaces (NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceBeforeArrayCloserSingleLine).
- Add permissions block to phpcs_on_pull_request.yml (contents: read, pull-requests: write) - Add permissions block to release_on_tag.yml (contents: write) - Add permissions block to deploy_on_push.yml (contents: read) This follows the principle of least privilege and resolves GitHub code scanning alerts #1, #2, and #3. Fixes: rtCamp/support#245