import{RULE_NAME_ALL as s}from"./constants.mjs";import e from"./utils/optionsMatches.mjs";import t from"./utils/reportCommentProblem.mjs";import o from"./validateDisableSettings.mjs";function i(i){const[r,n]=o(i,"reportDescriptionlessDisables");if(!n)return;const a=new Set;for(const[o,m]of Object.entries(i.stylelint.disabledRanges))for(const c of m){if(c.description)continue;const m=c.node;a.has(m)||(r!==e(n,"except",o)?(a.add(m),t({rule:"--report-descriptionless-disables",message:`Disable for "${o}" is missing a description`,severity:n.severity,node:m,postcssResult:i})):r||o!==s||a.add(m))}}export{i as default};