Skip to content

Commit

Permalink
Update readme parser to latest master version
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Nov 27, 2024
1 parent 68f97ca commit fc7ae67
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"require": {
"php": ">=7.4",
"ext-json": "*",
"afragen/wordpress-plugin-readme-parser": "dev-master#67fba498d0b112acf84386b95e4905c539a33f0b",
"afragen/wordpress-plugin-readme-parser": "dev-master#c3758599348148be684b3c4ad1105d09b6230d51",
"automattic/vipwpcs": "^3.0.0",
"composer/installers": "^2.2",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
Expand Down
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,11 @@ private function check_for_warnings( Check_Result $result, string $readme_file,
// This should be ERROR rather than WARNING. So ignoring here to handle separately.
unset( $warnings['invalid_plugin_name_header'] );

// We handle license check in our own way.
unset( $warnings['license_missing'] );
unset( $warnings['invalid_license'] );
unset( $warnings['unknown_license'] );

$warning_keys = array_keys( $warnings );

$latest_wordpress_version = (float) $this->get_wordpress_stable_version();
Expand Down

0 comments on commit fc7ae67

Please sign in to comment.