import{RULE_NAME_ALL as t}from"./constants.mjs";import e from"./utils/optionsMatches.mjs";import s from"./utils/reportCommentProblem.mjs";import o from"./validateDisableSettings.mjs";function r(r){const[i,n]=o(r,"reportInvalidScopeDisables");if(!n)return;const l=r.stylelint.config?.rules;if(!l)return;const a=new Set(Object.keys(l));a.add(t);for(const[t,o]of Object.entries(r.stylelint.disabledRanges))if(!a.has(t)&&i!==e(n,"except",t))for(const e of o)(e.strictStart||e.strictEnd)&&s({rule:"--report-invalid-scope-disables",message:`Rule "${t}" isn't enabled`,severity:n.severity,node:e.node,postcssResult:r})}export{r as default};