Why this matters
Modifying built-in prototypes can lead to compatibility issues and unexpected behavior, especially when working with third-party libraries. Create helper functions instead.
Detect modifications to built-in prototypes. Modifying built-in objects can lead to compatibility issues and unexpected behavior. Recommend creating helper functions instead.
Modifying built-in prototypes can lead to compatibility issues and unexpected behavior, especially when working with third-party libraries. Create helper functions instead.
Side-by-side examples engineers can pattern-match during review.
String.prototype.toCustomCase = function () {
return this.toUpperCase();
};function toCustomCase(value: string): string {
return value.toUpperCase();
}String.prototype.toCustomCase = function () {
return this.toUpperCase();
};function toCustomCase(value: string): string {
return value.toUpperCase();
}From the same buckets as this rule.
Before persisting ePHI, encrypt using a data key protected by a Key Management Service (KMS). Use authenticated encryption (AES-256-GCM or equivalent), rotate keys, and store the key id and algorithm with the record.