diff --git a/WordPress/Sniffs/CodeAnalysis/AssignmentInConditionSniff.php b/WordPress/Sniffs/CodeAnalysis/AssignmentInConditionSniff.php
index <HASH>..<HASH> 100644
--- a/WordPress/Sniffs/CodeAnalysis/AssignmentInConditionSniff.php
+++ b/WordPress/Sniffs/CodeAnalysis/AssignmentInConditionSniff.php
@@ -193,10 +193,15 @@ class AssignmentInConditionSniff extends Sniff {
 			}
 
 			if ( true === $hasVariable ) {
+				$errorCode = 'Found';
+				if ( T_WHILE === $token['code'] ) {
+					$errorCode = 'FoundInWhileCondition';
+				}
+
 				$this->phpcsFile->addWarning(
 					'Variable assignment found within a condition. Did you mean to do a comparison?',
 					$hasAssignment,
-					'Found'
+					$errorCode
 				);
 			} else {
 				$this->phpcsFile->addWarning(
AssignmentInCondition: add separate errorcode for assignment found in while

A `while()` condition is the only control structure in which it is sometimes legitimate to use an assignment in condition.

Having a separate error code will enable people to selectively exclude warnings for this.