UNPKG

@admc.com/eslint-plugin-sn

Version:
16 lines (14 loc) 631 B
/** * Can run this as a bg script or in a fix script */ /* eslint-disable strict, prefer-template, no-var */ /* global GlideAggregate, gs */ const ga = new GlideAggregate("sys_script_include"); ga.addQuery("sys_scope.scope", "!=", "global"); //ga.addQuery("access", "public"); scripts shouldn't NEED to specify the scope, but they can ga.addQuery("active", true); // Comment out statement to allow for enabling active==false's ga.orderBy("sys_scope.scope"); ga._query(); const scopes = []; while (ga._next()) scopes.push(ga.getValue("sys_scope.scope")); gs.log(scopes.length + " scopes\n" + scopes.join("\n"), "siScopeList");