GlotPress / GlotPress-WP

Compare 97f3590 ... +0 ... e4c17f8

Coverage Reach
gp-includes/routes/translation.php gp-includes/routes/project.php gp-includes/routes/glossary-entry.php gp-includes/routes/translation-set.php gp-includes/routes/glossary.php gp-includes/routes/profile.php gp-includes/routes/locale.php gp-includes/routes/settings.php gp-includes/routes/original.php gp-includes/routes/index.php gp-includes/things/translation.php gp-includes/things/translation-set.php gp-includes/things/original.php gp-includes/things/project.php gp-includes/things/glossary.php gp-includes/things/glossary-entry.php gp-includes/things/validator-permission.php gp-includes/things/permission.php gp-includes/things/administrator-permission.php gp-includes/formats/format-properties.php gp-includes/formats/format-resx.php gp-includes/formats/format-android.php gp-includes/formats/format-strings.php gp-includes/formats/format-ngx.php gp-includes/formats/format-jed1x.php gp-includes/formats/format-pomo.php gp-includes/formats/format-json.php gp-includes/template.php gp-includes/warnings.php gp-includes/thing.php gp-includes/cli/translation-set.php gp-includes/cli/import-originals.php gp-includes/cli/remove-multiple-currents.php gp-includes/cli/upgrade-set-permissions.php gp-includes/cli/add-admin.php gp-includes/cli/branch-project.php gp-includes/cli/wipe-permissions.php gp-includes/cli/regenerate-paths.php gp-includes/misc.php gp-includes/route.php gp-includes/router.php gp-includes/validation.php gp-includes/template-links.php gp-includes/meta.php gp-includes/strings.php gp-includes/format.php gp-includes/assets-loader.php gp-includes/advanced-permissions.php gp-includes/schema.php gp-includes/default-filters.php gp-includes/url.php gp-includes/rewrite.php gp-includes/system.php gp-includes/cli.php gp-includes/install-upgrade.php locales/locales.php gp-settings.php glotpress.php

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 2 files from the diff.

@@ -374,7 +374,7 @@
Loading
374 374
		 *
375 375
		 * @param string $placeholders_re Regular expression pattern without leading or trailing slashes.
376 376
		 */
377 -
		$placeholders_re = apply_filters( 'gp_warning_placeholders_re', '(?<!%)%(\d+\$(?:\d+)?)?[bcdefgosuxEFGX%l@]' );
377 +
		$placeholders_re = apply_filters( 'gp_warning_placeholders_re', '(?<!%)%(\d+\$(?:\d+)?)?(\.\d+)?[bcdefgosuxEFGX%l@]' );
378 378
379 379
		$original_counts    = $this->_placeholders_counts( $original, $placeholders_re );
380 380
		$translation_counts = $this->_placeholders_counts( $translation, $placeholders_re );
@@ -617,7 +617,7 @@
Loading
617 617
			preg_match_all( '/(?P<context>[^\s%]*)%((\d+\$(?:\d+)?)?(?P<char>.))/i', $translation, $m );
618 618
			foreach ( $m['char'] as $i => $char ) {
619 619
				// % is included for escaped %%.
620 -
				if ( false === strpos( 'bcdefgosux%l', $char ) ) {
620 +
				if ( false === strpos( 'bcdefgosux%l.', $char ) ) {
621 621
					$unexpected_tokens[] = $m[0][ $i ];
622 622
				}
623 623
			}

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Complexity Coverage
gp-includes ø 55.47%
glotpress.php ø 0.00%
gp-settings.php ø 0.00%
locales/locales.php ø 99.18%
Project Totals (58 files) 1356 68.32%
Loading