/*
 * Copyright (c) 2018, 2026, Oracle and/or its affiliates.
 * Licensed under The Universal Permissive License (UPL), Version 1.0
 * as shown at https://oss.oracle.com/licenses/upl/
 */
const RULENAME="oj-html-badge-maintenance";const DESCRIPTION="class 'oj-badge' is moved to maintenance status starting in JET 19.0, and is superseded by oj-c-badge.";const SHORT_DESCRIPTION="class 'oj-badge' is superseded by 'oj-c-badge";class Rule{getName(){return RULENAME}getDescription(){return DESCRIPTION}getShortDescription(){return SHORT_DESCRIPTION}register(){return{"class":this._onClass}}_onClass(ruleCtx,attrib,classValue){var classes=classValue.split(" ");if(classes.includes("oj-badge")){let issue=new ruleCtx.Issue("class 'oj-badge' is in maintenance status (since 19.0) and is superseded by 'oj-c-badge'");ruleCtx.reporter.addIssue(issue,ruleCtx)}}}module.exports=Rule;