Account Protection: Add password validation #68759
linting.yml
on: pull_request
detect changed files
8s
Copied files are in sync
7s
Changelogger use
16s
Changelogger validity
25s
Project structure
1m 21s
PHP Code Sniffer (non-excluded files only)
1m 56s
PHP Compatibility
1m 16s
PHP Code Sniffer (changes to excluded files only)
0s
ESLint (non-excluded files only)
0s
ESLint (changes to excluded files only)
0s
Lint GitHub Actions yaml files
0s
Check linter exclude lists
0s
Lock files are up to date
0s
Monorepo package version refs
0s
Matrix: php_lint
Annotations
11 errors and 6 warnings
Changelogger use
Project packages/account-protection is being changed, but no change file in projects/packages/account-protection/changelog/ is touched!
Use `jetpack changelogger add packages/account-protection` to add a change file.
Guidelines: https://github.com/Automattic/jetpack/blob/trunk/docs/writing-a-good-changelog-entry.md
|
Changelogger use
Process completed with exit code 2.
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L17
Missing doc comment for function validate_profile_update() (Squiz.Commenting.FunctionComment.Missing)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L23
Processing form data without nonce verification. (WordPress.Security.NonceVerification.Missing)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L23
Processing form data without nonce verification. (WordPress.Security.NonceVerification.Missing)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L35
Missing doc comment for function validation_user_register() (Squiz.Commenting.FunctionComment.Missing)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L45
Missing doc comment for function validate_after_password_reset() (Squiz.Commenting.FunctionComment.Missing)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L55
Missing doc comment for function verify_password_update_nonce() (Squiz.Commenting.FunctionComment.Missing)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L56
$_POST['_wpnonce'] not unslashed before sanitization. Use wp_unslash() or similar (WordPress.Security.ValidatedSanitizedInput.MissingUnslash)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L56
Detected usage of a non-sanitized input variable: $_POST['_wpnonce'] (WordPress.Security.ValidatedSanitizedInput.InputNotSanitized)
|
PHP Code Sniffer (non-excluded files only)
Process completed with exit code 1.
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L24
This comment is 75% valid code; is this commented out code? (Squiz.PHP.CommentedOutCode.Found)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L30
error_log() found. Debug code should not normally be used in production. (WordPress.PHP.DevelopmentFunctions.error_log_error_log)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L35
Unused function parameter $sanitized_user_login. (VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L35
Unused function parameter $user_email. (VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L42
error_log() found. Debug code should not normally be used in production. (WordPress.PHP.DevelopmentFunctions.error_log_error_log)
|
PHP Code Sniffer (non-excluded files only):
projects/packages/account-protection/src/class-validation-service.php#L52
error_log() found. Debug code should not normally be used in production. (WordPress.PHP.DevelopmentFunctions.error_log_error_log)
|