@oracle/oraclejet-audit 10.0.0 → 11.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jaf-amd.js +12 -4
- package/jaf.js +6 -1
- package/jafapi.js +6 -1
- package/lib/AST.js +6 -1
- package/lib/AST_Ts.js +6 -1
- package/lib/AstJson.js +6 -1
- package/lib/AstNodeTypes.js +6 -1
- package/lib/Comments.js +6 -1
- package/lib/ComponentSvcs.js +5 -0
- package/lib/Components.js +6 -1
- package/lib/Config.js +6 -1
- package/lib/ConfigLib.js +6 -1
- package/lib/CssLib.js +5 -0
- package/lib/CssUtils.js +5 -0
- package/lib/DomUtils.js +6 -1
- package/lib/FileIndex.js +5 -0
- package/lib/FileSet.js +5 -0
- package/lib/FsUtils.js +6 -1
- package/lib/Histo.js +6 -0
- package/lib/HtmlTree.js +6 -1
- package/lib/HtmlUtils.js +5 -0
- package/lib/Issue.js +5 -0
- package/lib/JafEvents.js +5 -0
- package/lib/JafLib.js +6 -1
- package/lib/Json.js +6 -0
- package/lib/JsonLoader.js +6 -1
- package/lib/MetaLib.js +6 -1
- package/lib/NetUtils.js +5 -0
- package/lib/NodeTypes.js +5 -0
- package/lib/Parser.js +6 -1
- package/lib/RegTypes.js +5 -0
- package/lib/Registry.js +5 -0
- package/lib/Reporter.js +5 -0
- package/lib/RuleContext.js +5 -0
- package/lib/RulePack.js +5 -0
- package/lib/RuleSet.js +6 -1
- package/lib/Rules.js +6 -1
- package/lib/Scope.js +6 -1
- package/lib/SemVer.js +5 -0
- package/lib/Server.js +5 -0
- package/lib/SevLib.js +5 -0
- package/lib/Severity.js +6 -1
- package/lib/Stats.js +6 -0
- package/lib/Ts.js +6 -1
- package/lib/Utils.js +6 -1
- package/lib/Watch.js +5 -0
- package/lib/Writer.js +5 -0
- package/lib/ZipUtils.js +5 -0
- package/lib/api.js +6 -0
- package/lib/cliStats.js +6 -0
- package/lib/clone.js +5 -0
- package/lib/cmdline.js +6 -1
- package/lib/colors.js +5 -0
- package/lib/exportRules.js +6 -0
- package/lib/extends.js +6 -0
- package/lib/filetypes.js +6 -0
- package/lib/groups.js +6 -0
- package/lib/help.js +6 -1
- package/lib/imanual.js +6 -0
- package/lib/jetver.js +6 -1
- package/lib/macros.js +6 -0
- package/lib/metaLoader.js +5 -0
- package/lib/metahist.js +5 -0
- package/lib/msgidLoader.js +6 -1
- package/lib/ns.js +6 -1
- package/lib/nslist.js +6 -1
- package/lib/outFormat.js +6 -0
- package/lib/outfile.js +5 -0
- package/lib/ruleLoader.js +5 -0
- package/lib/scaffold.js +6 -1
- package/lib/scaffoldRule.js +6 -1
- package/lib/schema.js +5 -0
- package/lib/scopewalker.js +6 -0
- package/lib/spinner.js +5 -0
- package/lib/spinnernoop.js +5 -0
- package/lib/tabs.js +5 -0
- package/lib/xmanual.js +6 -0
- package/libext/expparser.js +6 -1
- package/meta/10.1.0/jetauditmeta.js +9 -0
- package/meta/11.0.0/jetauditmeta.js +9 -0
- package/meta/11.1.0/jetauditmeta.js +9 -0
- package/meta/metaverlist.json +1 -1
- package/package.json +2 -3
- package/rulepacks/csp/csp-html-script-unsafe-inline.js +5 -0
- package/rulepacks/csp/csp-html-style-unsafe-inline.js +5 -0
- package/rulepacks/csp/csp-html-unsafe-expr.js +5 -0
- package/rulepacks/csp/csp-js-script-unsafe-eval.js +6 -1
- package/rulepacks/csp/csp-js-style-unsafe-inline.js +5 -0
- package/rulepacks/csp/csp-ts-script-unsafe-eval.js +6 -0
- package/rulepacks/csp/csp-ts-style-unsafe-inline.js +6 -0
- package/rulepacks/csp/msgid.json +6 -1
- package/rulepacks/csp/rules.json +6 -1
- package/rulepacks/jetwc/jetwc-absolute-jetversion.js +6 -1
- package/rulepacks/jetwc/jetwc-aria-redefinition.js +6 -1
- package/rulepacks/jetwc/jetwc-bootstrap.js +6 -1
- package/rulepacks/jetwc/jetwc-compjson-bp-ar.js +6 -1
- package/rulepacks/jetwc/jetwc-compjson-bp-obj.js +6 -1
- package/rulepacks/jetwc/jetwc-component-dependencies.js +6 -1
- package/rulepacks/jetwc/jetwc-component-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-component-foldername.js +6 -1
- package/rulepacks/jetwc/jetwc-component-location.js +6 -1
- package/rulepacks/jetwc/jetwc-component-type.js +6 -1
- package/rulepacks/jetwc/jetwc-data-property-prefix.js +6 -1
- package/rulepacks/jetwc/jetwc-deprecated-lifecycle.js +6 -1
- package/rulepacks/jetwc/jetwc-disabled-property.js +6 -1
- package/rulepacks/jetwc/jetwc-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-dynamic-slot-context.js +6 -1
- package/rulepacks/jetwc/jetwc-dynamic-slots-naming.js +6 -1
- package/rulepacks/jetwc/jetwc-event-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-events.js +6 -1
- package/rulepacks/jetwc/jetwc-jet-version.js +6 -1
- package/rulepacks/jetwc/jetwc-loader-file.js +6 -1
- package/rulepacks/jetwc/jetwc-method-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-methods.js +6 -1
- package/rulepacks/jetwc/jetwc-namespace.js +6 -1
- package/rulepacks/jetwc/jetwc-nested-defaults.js +6 -1
- package/rulepacks/jetwc/jetwc-nls-languages.js +6 -1
- package/rulepacks/jetwc/jetwc-nls-root.js +6 -1
- package/rulepacks/jetwc/jetwc-oj-register.js +6 -1
- package/rulepacks/jetwc/jetwc-ojcss.js +6 -1
- package/rulepacks/jetwc/jetwc-pack-children.js +6 -1
- package/rulepacks/jetwc/jetwc-packable-components.js +6 -1
- package/rulepacks/jetwc/jetwc-prerelease-dependencies.js +6 -1
- package/rulepacks/jetwc/jetwc-prerelease-pattern.js +6 -1
- package/rulepacks/jetwc/jetwc-prerelease-version.js +6 -1
- package/rulepacks/jetwc/jetwc-property-changed.js +6 -1
- package/rulepacks/jetwc/jetwc-property-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-property-nesting.js +6 -1
- package/rulepacks/jetwc/jetwc-public-modules.js +6 -1
- package/rulepacks/jetwc/jetwc-register-css.js +6 -1
- package/rulepacks/jetwc/jetwc-register-with-promises.js +6 -1
- package/rulepacks/jetwc/jetwc-require-paths.js +6 -1
- package/rulepacks/jetwc/jetwc-required-subproperty.js +6 -0
- package/rulepacks/jetwc/jetwc-reserved-property.js +6 -1
- package/rulepacks/jetwc/jetwc-schema.js +6 -1
- package/rulepacks/jetwc/jetwc-semantic-version.js +6 -1
- package/rulepacks/jetwc/jetwc-slot-displayname.js +6 -1
- package/rulepacks/jetwc/jetwc-slots.js +6 -1
- package/rulepacks/jetwc/jetwc-standard-files.js +6 -1
- package/rulepacks/jetwc/jetwc-subproperty-writeback.js +6 -0
- package/rulepacks/jetwc/jetwc-template-slots.js +6 -1
- package/rulepacks/jetwc/jetwc-unused-events.js +6 -1
- package/rulepacks/jetwc/jetwc-unused-slots.js +6 -1
- package/rulepacks/jetwc/jetwc-vb-category.js +6 -1
- package/rulepacks/jetwc/jetwc-vb-icon.js +6 -1
- package/rulepacks/jetwc/jetwc-version-openrange.js +6 -1
- package/rulepacks/jetwc/jetwc-writeback-required.js +6 -1
- package/rulepacks/jetwc/msgid.json +6 -0
- package/rulepacks/jetwc/rules.json +6 -1
- package/rulepacks/jetwc-lib/component-audit-utils.js +6 -1
- package/rulepacks/jetwco/jetwco-bootstrap.js +6 -1
- package/rulepacks/jetwco/jetwco-compjson-ns-reg.js +6 -1
- package/rulepacks/jetwco/jetwco-component-api-baseline-changes.js +6 -0
- package/rulepacks/jetwco/jetwco-component-api-changes.js +6 -1
- package/rulepacks/jetwco/jetwco-component-cdn.js +6 -1
- package/rulepacks/jetwco/jetwco-exchange-version-check.js +6 -1
- package/rulepacks/jetwco/jetwco-license-info.js +6 -1
- package/rulepacks/jetwco/jetwco-prerelease-cdn.js +6 -1
- package/rulepacks/jetwco/jetwco-thirdparty-ba.js +6 -1
- package/rulepacks/jetwco/msgid.json +6 -0
- package/rulepacks/jetwco/rules.json +6 -1
- package/rulepacks/spoc/msgid.json +5 -0
- package/rulepacks/spoc/rules.json +5 -0
- package/rulepacks/spoc/spoc-dom-manip-inv-tag.js +5 -0
- package/rulepacks/spoc/spoc-dom-manip-tag-pos.js +5 -0
- package/rulepacks/spoc/spoc-dom-manip.js +5 -0
- package/rules/jaf/jaf-css-diagnose.js +5 -0
- package/rules/jaf/jaf-html-diagnose.js +5 -0
- package/rules/jaf/jaf-init-schema.js +5 -0
- package/rules/jaf/jaf-js-diagnose.js +5 -0
- package/rules/jaf/jaf-ts-diagnose.js +6 -0
- package/rules/jaf/msgid.json +6 -1
- package/rules/jaf/rules.json +6 -1
- package/rules/jet/helpers/acc-aria-label.js +6 -1
- package/rules/jet/helpers/bp-checkPropType.js +5 -0
- package/rules/jet/helpers/cssHelper.js +6 -1
- package/rules/jet/helpers/extractStylesFromClass.js +6 -1
- package/rules/jet/helpers/has-slot-name.js +6 -1
- package/rules/jet/helpers/has-slot.js +5 -0
- package/rules/jet/helpers/json-prop-pos.js +5 -0
- package/rules/jet/helpers/json-propname-pos.js +5 -0
- package/rules/jet/helpers/style-selector.js +6 -1
- package/rules/jet/helpers/valid-attr.js +5 -0
- package/rules/jet/helpers/vartrack.js +5 -0
- package/rules/jet/jet-css-ojselector.js +5 -0
- package/rules/jet/msgid.json +6 -1
- package/rules/jet/oj-acc-aria-labelledby.js +5 -0
- package/rules/jet/oj-acc-aria-prop.js +5 -0
- package/rules/jet/oj-acc-avatar-aria-role.js +5 -0
- package/rules/jet/oj-acc-combobox-aria-label.js +6 -1
- package/rules/jet/oj-acc-film-strip-aria-label.js +5 -0
- package/rules/jet/oj-acc-input-aria-label.js +6 -1
- package/rules/jet/oj-acc-select-aria-label.js +6 -1
- package/rules/jet/oj-cca-compjson-bp-ar.js +5 -0
- package/rules/jet/oj-cca-compjson-bp-dsplyname.js +5 -0
- package/rules/jet/oj-cca-compjson-bp-jetver.js +5 -0
- package/rules/jet/oj-cca-compjson-bp-obj.js +5 -0
- package/rules/jet/oj-cca-compjson-ns-reg.js +5 -0
- package/rules/jet/oj-css-bp-border-color.js +5 -0
- package/rules/jet/oj-css-bp-dir-flow.js +6 -1
- package/rules/jet/oj-css-bp-float.js +5 -0
- package/rules/jet/oj-css-bp-textalign.js +5 -0
- package/rules/jet/oj-css-style-abs-units.js +5 -0
- package/rules/jet/oj-css-style-bp-color.js +6 -1
- package/rules/jet/oj-css-style-bp-display.js +6 -1
- package/rules/jet/oj-css-style-bp-font-family.js +6 -1
- package/rules/jet/oj-css-style-bp-font.js +5 -0
- package/rules/jet/oj-css-style-deprecated.js +6 -1
- package/rules/jet/oj-css-style-override.js +6 -1
- package/rules/jet/oj-css-var-override.js +5 -0
- package/rules/jet/oj-form-maxcols.js +6 -0
- package/rules/jet/oj-html-5-attr-obs.js +5 -0
- package/rules/jet/oj-html-5-tag-obs.js +5 -0
- package/rules/jet/oj-html-attr-$unique.js +5 -0
- package/rules/jet/oj-html-attr-2def.js +5 -0
- package/rules/jet/oj-html-attr-json.js +6 -1
- package/rules/jet/oj-html-attr-prefix-expr.js +6 -1
- package/rules/jet/oj-html-attr-prefix-ro.js +5 -0
- package/rules/jet/oj-html-attr-req.js +5 -0
- package/rules/jet/oj-html-bindforeach-data.js +5 -0
- package/rules/jet/oj-html-bindif-test.js +5 -0
- package/rules/jet/oj-html-binding-attr.js +5 -0
- package/rules/jet/oj-html-cca-count.js +5 -0
- package/rules/jet/oj-html-cca-tagname.js +6 -1
- package/rules/jet/oj-html-cdn.js +5 -0
- package/rules/jet/oj-html-combo-converter.js +5 -0
- package/rules/jet/oj-html-cspexpr.js +6 -1
- package/rules/jet/oj-html-databind-all.js +5 -0
- package/rules/jet/oj-html-dlg-title.js +5 -0
- package/rules/jet/oj-html-file-pick-accept.js +6 -0
- package/rules/jet/oj-html-form-bindif.js +6 -1
- package/rules/jet/oj-html-form-layout-maxcols.js +6 -0
- package/rules/jet/oj-html-form-noflex.js +5 -0
- package/rules/jet/oj-html-input-isodate.js +6 -0
- package/rules/jet/oj-html-invalid-doctype.js +6 -1
- package/rules/jet/oj-html-jq-databind.js +6 -1
- package/rules/jet/oj-html-ko-comment.js +5 -0
- package/rules/jet/oj-html-ko-databind.js +5 -0
- package/rules/jet/oj-html-label-for-prefix.js +5 -0
- package/rules/jet/oj-html-missing-doctype.js +6 -1
- package/rules/jet/oj-html-oj-lib.js +5 -0
- package/rules/jet/oj-html-ojattr-520.js +6 -1
- package/rules/jet/oj-html-ojattr-deprecated.js +6 -1
- package/rules/jet/oj-html-ojattr-enum-deprecated.js +6 -1
- package/rules/jet/oj-html-ojattr-evt-syntax.js +5 -0
- package/rules/jet/oj-html-ojattr-value.js +6 -1
- package/rules/jet/oj-html-ojattr.js +6 -1
- package/rules/jet/oj-html-ojevent.js +6 -1
- package/rules/jet/oj-html-ojslot.js +5 -0
- package/rules/jet/oj-html-ojstyle.js +5 -0
- package/rules/jet/oj-html-ojtag-datacmd.js +6 -1
- package/rules/jet/oj-html-ojtag-datactx.js +5 -0
- package/rules/jet/oj-html-ojtag-deprecated.js +6 -1
- package/rules/jet/oj-html-ojtag-globattr-noprefix.js +5 -0
- package/rules/jet/oj-html-ojtag-id.js +5 -0
- package/rules/jet/oj-html-ojtag-nonglobattr-prefix.js +5 -0
- package/rules/jet/oj-html-ojtag-ns.js +5 -0
- package/rules/jet/oj-html-picker-attrs.js +6 -0
- package/rules/jet/oj-html-redwood-cssnovars.js +6 -0
- package/rules/jet/oj-html-redwood-cssvars.js +6 -0
- package/rules/jet/oj-html-self-close.js +5 -0
- package/rules/jet/oj-html-slot-item-minmax.js +6 -0
- package/rules/jet/oj-html-slot-name.js +6 -1
- package/rules/jet/oj-html-slot-pref-content.js +6 -0
- package/rules/jet/oj-html-style-abs-units.js +5 -0
- package/rules/jet/oj-html-style-bp-color.js +5 -0
- package/rules/jet/oj-html-style-bp-display.js +6 -1
- package/rules/jet/oj-html-style-bp-font-family.js +5 -0
- package/rules/jet/oj-html-style-bp-font.js +5 -0
- package/rules/jet/oj-html-style-deprecated.js +5 -0
- package/rules/jet/oj-html-style.js +6 -1
- package/rules/jet/oj-html-stylesel.js +6 -1
- package/rules/jet/oj-html-tag-attr-noprefix.js +5 -0
- package/rules/jet/oj-html-template-index.js +6 -0
- package/rules/jet/oj-html-unsup-theme.js +6 -1
- package/rules/jet/oj-html-wctag-$props.js +6 -1
- package/rules/jet/oj-html-wctag-arialabelledby.js +5 -0
- package/rules/jet/oj-html-wctag-for.js +5 -0
- package/rules/jet/oj-html-wctag-id.js +5 -0
- package/rules/jet/oj-html-wctag-packprivate.js +6 -0
- package/rules/jet/oj-js-comp-attr-deprecated.js +5 -0
- package/rules/jet/oj-js-comp-meth-deprecated.js +5 -0
- package/rules/jet/oj-js-no-ext-final.js +5 -0
- package/rules/jet/oj-js-noconsole.js +5 -0
- package/rules/jet/oj-js-ojcomp-deprecated.js +6 -1
- package/rules/jet/oj-js-ojcomp-exist.js +5 -0
- package/rules/jet/oj-js-ojcomp-new.js +5 -0
- package/rules/jet/oj-js-poly-promise.js +6 -1
- package/rules/jet/oj-js-var-undef.js +5 -0
- package/rules/jet/oj-json-syntax.js +6 -1
- package/rules/jet/oj-ts-comp-attr-deprecated.js +5 -0
- package/rules/jet/oj-ts-comp-meth-deprecated.js +5 -0
- package/rules/jet/oj-ts-no-ext-final.js +6 -0
- package/rules/jet/oj-ts-noconsole.js +6 -1
- package/rules/jet/oj-ts-ojcomp-deprecated.js +6 -1
- package/rules/jet/oj-ts-ojcomp-exist.js +6 -1
- package/rules/jet/oj-ts-ojcomp-new.js +6 -1
- package/rules/jet/oj-ts-poly-promise.js +6 -1
- package/rules/jet/rules.json +6 -1
- package/schema/component-schema.json +122 -2
- package/src/JafCore.js +6 -1
- package/types/index.d.ts +144 -35
- package/lib/manual.js +0 -1
- package/lib/stats.js +0 -1
- package/rules/exch/helpers/json-prop-pos.js +0 -1
- package/rules/exch/msgid.json +0 -1
- package/rules/exch/oj-cca-comp-zip-content-composite.js +0 -1
- package/rules/exch/oj-cca-comp-zip-content-pack.js +0 -1
- package/rules/exch/oj-cca-comp-zip-expand.js +0 -1
- package/rules/exch/oj-cca-compjson-evnames.js +0 -1
- package/rules/exch/oj-cca-compjson-file.js +0 -1
- package/rules/exch/oj-cca-compjson-prefix.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-compdeps.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-deps.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-jetver.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-obs.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-type.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-types.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-undef.js +0 -1
- package/rules/exch/oj-cca-compjson-prop-version.js +0 -1
- package/rules/exch/oj-cca-compjson-schema.js +0 -1
- package/rules/exch/oj-cca-zip-compjson.js +0 -1
- package/rules/exch/rules.json +0 -1
- package/rules/jet/oj-css-bp-bgcolor.js +0 -1
- package/tests/components/attr-req-test/component.json +0 -1
- package/tests/components/demo-analog-clock/component.json +0 -1
- package/tests/components/demo-analog-clock/demo-analog-clock-viewModel.js +0 -1
- package/tests/components/demo-analog-clock/extension/demo/js/viewModels/demo.js +0 -1
- package/tests/components/demo-analog-clock/loader.js +0 -1
- package/tests/components/demo-card/component.json +0 -1
- package/tests/components/demo-chart-orientation-control/component.json +0 -1
- package/tests/components/demo-chart-stack-control/component.json +0 -1
- package/tests/components/made-up/component.json +0 -1
- package/tests/components/oj-made-up/component.json +0 -1
- package/tests/components/sp-activity-item/component.json +0 -1
- package/tests/config/config_base.json +0 -1
- package/tests/golden/10.0.0/golden_base.json +0 -1
- package/tests/golden/8.1.0/golden_base.json +0 -1
- package/tests/golden/9.0.0/golden_base.json +0 -1
- package/tests/rulepacks/hooks/hook-rpext.js +0 -1
- package/tests/rulepacks/hooks/hook-start-close-rulepack.js +0 -1
- package/tests/rulepacks/hooks/rule-rpext.js +0 -1
- package/tests/rulepacks/hooks/rules.json +0 -1
- package/tests/rulepacks/tags/proc_directive.js +0 -1
- package/tests/rulepacks/tags/rules.json +0 -1
- package/tests/rulepacks/tags/tag-count-setup.js +0 -1
- package/tests/rulepacks/tags/tag-count.js +0 -1
- package/tests/rules/bugs/JET-4770_PASS_1.html +0 -9
- package/tests/rules/comments/com_FAIL_1.js +0 -57
- package/tests/rules/comments/com_FAIL_2.js +0 -96
- package/tests/rules/comments/com_PASS_1.js +0 -42
- package/tests/rules/comments/com_PASS_2.js +0 -63
- package/tests/rules/comments/com_PASS_3.js +0 -40
- package/tests/rules/comments/com_PASS_4.js +0 -36
- package/tests/rules/comments/com_PASS_5.js +0 -19
- package/tests/rules/csp/html-script-unsafe-inline/FAIL_1.html +0 -11
- package/tests/rules/csp/html-script-unsafe-inline/FAIL_2.html +0 -8
- package/tests/rules/csp/html-script-unsafe-inline/PASS_1.html +0 -8
- package/tests/rules/csp/html-script-unsafe-inline/PASS_2.html +0 -8
- package/tests/rules/csp/html-script-unsafe-inline/PASS_3.html +0 -8
- package/tests/rules/csp/html-style-unsafe-inline/FAIL_1.html +0 -11
- package/tests/rules/csp/html-style-unsafe-inline/PASS_1.html +0 -11
- package/tests/rules/csp/html-unsafe-expr/FAIL_1.html +0 -14
- package/tests/rules/csp/html-unsafe-expr/PASS_1.html +0 -23
- package/tests/rules/csp/js-script-unsafe-eval/FAIL_1.js +0 -17
- package/tests/rules/csp/js-script-unsafe-eval/FAIL_2.js +0 -40
- package/tests/rules/csp/js-script-unsafe-eval/FAIL_3.js +0 -22
- package/tests/rules/csp/js-script-unsafe-eval/PASS_1.js +0 -20
- package/tests/rules/csp/js-script-unsafe-eval/PASS_2.js +0 -44
- package/tests/rules/csp/js-script-unsafe-eval/PASS_3.js +0 -16
- package/tests/rules/csp/js-style-unsafe-inline/FAIL_1.js +0 -25
- package/tests/rules/csp/js-style-unsafe-inline/PASS.js +0 -22
- package/tests/rules/demo/noself_FAIL_1.js +0 -101
- package/tests/rules/import/import_FAIL_1.js +0 -11
- package/tests/rules/import/import_PASS_1.js +0 -10
- package/tests/rules/jet-composites/demo-buttonset-enum/component.json +0 -57
- package/tests/rules/jet-composites/demo-buttonset-enum/loader.js +0 -19
- package/tests/rules/jet-composites/demo-buttonset-enum/view.html +0 -48
- package/tests/rules/jet-composites/demo-card/component.json +0 -28
- package/tests/rules/jet-composites/demo-card/loader.js +0 -16
- package/tests/rules/jet-composites/demo-card/view.html +0 -30
- package/tests/rules/jet-composites/demo-card/viewModel.js +0 -46
- package/tests/rules/jet-composites/demo-card/view_PASS_1.html +0 -21
- package/tests/rules/jet-composites/demo-contact-form/component.json +0 -23
- package/tests/rules/jet-composites/demo-contact-form/loader.js +0 -16
- package/tests/rules/jet-composites/demo-contact-form/view.html +0 -9
- package/tests/rules/jet-composites/demo-grocery-list/component.json +0 -18
- package/tests/rules/jet-composites/demo-grocery-list/loader.js +0 -19
- package/tests/rules/jet-composites/demo-grocery-list/view.html +0 -22
- package/tests/rules/jet-composites/demo-grocery-list/viewModel.js +0 -48
- package/tests/rules/jet-composites/dummy-component-1/component.json +0 -82
- package/tests/rules/jet-composites/dummy-component-2/component.json +0 -72
- package/tests/rules/jet-composites/foo-my-cca/component.json +0 -14
- package/tests/rules/jet-composites/foo-unsup-theme/component.json +0 -29
- package/tests/rules/jet-composites/header/component.json +0 -12
- package/tests/rules/jet-composites/oj-cgbu-omc/attribute-selection/component.json +0 -154
- package/tests/rules/jet-composites/oj-cgbu-omc/component.json +0 -11
- package/tests/rules/jet-composites/oj-cgbu-omc/reference/component.json +0 -185
- package/tests/rules/jet-composites/oj-cgbu-omc/wctag_props_FAIL_1.html +0 -34
- package/tests/rules/jet-composites/oj-enum-depr/component.json +0 -69
- package/tests/rules/jet-composites/oj-html-wctag-id/id_FAIL_1.html +0 -10
- package/tests/rules/jet-composites/oj-html-wctag-id/id_PASS_1.html +0 -6
- package/tests/rules/misc/oj.js +0 -12
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_FAIL_1.html +0 -23
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_FAIL_2.html +0 -22
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_1.html +0 -23
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_2.html +0 -22
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_3.html +0 -22
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_4.html +0 -22
- package/tests/rules/oj-acc-aria-labelledby/aria_labelledby_PASS_5.html +0 -22
- package/tests/rules/oj-acc-aria-prop/aria_prop_FAIL_1.html +0 -22
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_FAIL_1.html +0 -20
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_1.html +0 -23
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_2.html +0 -24
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_3.html +0 -21
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_4.html +0 -22
- package/tests/rules/oj-acc-avatar-aria-role/aria_avatar_role_PASS_5.html +0 -22
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_many_FAIL_1.html +0 -20
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_many_FAIL_2.html +0 -21
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_many_PASS_1.html +0 -20
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_one_FAIL_1.html +0 -21
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_one_FAIL_2.html +0 -22
- package/tests/rules/oj-acc-combobox-aria-label/aria_combo_one_PASS_1.html +0 -22
- package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_FAIL_1.html +0 -18
- package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_FAIL_2.html +0 -18
- package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_PASS_1.html +0 -18
- package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_PASS_2.html +0 -19
- package/tests/rules/oj-acc-film-strip-aria-label/aria_filmstrip_PASS_3.html +0 -22
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_FAIL_1.html +0 -21
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_FAIL_2.html +0 -22
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_PASS_1.html +0 -16
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_PASS_2.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_PASS_3.html +0 -26
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_time_FAIL_1.html +0 -19
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_time_FAIL_2.html +0 -20
- package/tests/rules/oj-acc-input-aria-label/oj_input_date_time_PASS_1.html +0 -19
- package/tests/rules/oj-acc-input-aria-label/oj_input_number_FAIL_1.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_number_FAIL_2.html +0 -18
- package/tests/rules/oj-acc-input-aria-label/oj_input_number_PASS_1.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_password_FAIL_1.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_password_FAIL_2.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_password_PASS_1.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_text_3_PASS_1.html +0 -20
- package/tests/rules/oj-acc-input-aria-label/oj_input_text_FAIL_1.html +0 -20
- package/tests/rules/oj-acc-input-aria-label/oj_input_text_FAIL_2.html +0 -21
- package/tests/rules/oj-acc-input-aria-label/oj_input_text_PASS_2.html +0 -62
- package/tests/rules/oj-acc-input-aria-label/oj_input_text_nolabel_PASS_2.html +0 -17
- package/tests/rules/oj-acc-input-aria-label/oj_input_time_FAIL_1.html +0 -19
- package/tests/rules/oj-acc-input-aria-label/oj_input_time_FAIL_2.html +0 -20
- package/tests/rules/oj-acc-input-aria-label/oj_input_time_PASS_1.html +0 -19
- package/tests/rules/oj-acc-select-aria-label/aria_selectmany_FAIL_1.html +0 -19
- package/tests/rules/oj-acc-select-aria-label/aria_selectmany_FAIL_2.html +0 -20
- package/tests/rules/oj-acc-select-aria-label/aria_selectmany_PASS_1.html +0 -19
- package/tests/rules/oj-acc-select-aria-label/aria_selectone_FAIL_1.html +0 -20
- package/tests/rules/oj-acc-select-aria-label/aria_selectone_FAIL_2.html +0 -21
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_1.zip +0 -1
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_2.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_3.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_4.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_5.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_6.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_7.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_FAIL_8.zip +0 -0
- package/tests/rules/oj-cca-comp-zip/zip_PASS_1.zip +0 -0
- package/tests/rules/oj-cca-ns-reg/oj-cca-ns-FAIL_1/component.json +0 -19
- package/tests/rules/oj-cca-ns-reg/oj-cca-ns-PASS_1/component.json +0 -19
- package/tests/rules/oj-cgbu-omc_tests/html_ojevent_FAIL_1.html +0 -15
- package/tests/rules/oj-cgbu-omc_tests/html_ojevent_PASS_1.html +0 -17
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_1/component.json +0 -16
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_10/component.json +0 -103
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_11/component.json +0 -24
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_12/component.json +0 -17
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_13/component.json +0 -17
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_14/component.json +0 -40
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_15/component.json +0 -24
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_16/component.json +0 -44
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_17/component.json +0 -8
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_18/component.json +0 -8
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_19/component.json +0 -8
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_2/component.json +0 -15
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_20/component.json +0 -18
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_21/component.json +0 -16
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_22/component.json +0 -19
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_3/component.json +0 -15
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_4/component.json +0 -16
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_5/component.json +0 -16
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_6/component.json +0 -18
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_7/component.json +0 -15
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_8/component.json +0 -15
- package/tests/rules/oj-compjson-syntax/ojcomp-FAIL_9/component.json +0 -52
- package/tests/rules/oj-compjson-syntax/ojcomp-PASS_1/component.json +0 -17
- package/tests/rules/oj-compjson-syntax/ojcomp-PASS_2/component.json +0 -88
- package/tests/rules/oj-compjson-syntax/ojcomp-PASS_3/component.json +0 -19
- package/tests/rules/oj-css-bp-dir-flow/dirflow_FAIL_1.html +0 -22
- package/tests/rules/oj-css-bp-dir-flow/dirflow_FAIL_2.html +0 -22
- package/tests/rules/oj-css-diagnose/css_FAIL_1.html +0 -14
- package/tests/rules/oj-css-diagnose/css_PASS_1.html +0 -14
- package/tests/rules/oj-css-var-override/varovr_FAIL_1.html +0 -8
- package/tests/rules/oj-html-5-attr-depr/attrdepr_FAIL_1.html +0 -16
- package/tests/rules/oj-html-5-attr-depr/attrdepr_PASS_1.html +0 -16
- package/tests/rules/oj-html-5-tag-depr/tagdepr_FAIL_1.html +0 -9
- package/tests/rules/oj-html-attr/attr_FAIL_1.html +0 -27
- package/tests/rules/oj-html-attr-$unique/attr_$unique1_FAIL_1.html +0 -19
- package/tests/rules/oj-html-attr-$unique/attr_$unique_FAIL_2.html +0 -25
- package/tests/rules/oj-html-attr-2def/attr2def_FAIL_1.html +0 -10
- package/tests/rules/oj-html-attr-2def/attr2def_PASS_1.html +0 -10
- package/tests/rules/oj-html-attr-json/attr-json_FAIL_1.html +0 -20
- package/tests/rules/oj-html-attr-json/attr-json_FAIL_2.html +0 -20
- package/tests/rules/oj-html-attr-json/attr-json_FAIL_3.html +0 -20
- package/tests/rules/oj-html-attr-json/attr-json_PASS_1.html +0 -20
- package/tests/rules/oj-html-attr-json/attr-json_PASS_2.html +0 -20
- package/tests/rules/oj-html-attr-json/attr-json_PASS_3.html +0 -8
- package/tests/rules/oj-html-attr-prefix-expr/attrprefixexpr_FAIL_1.html +0 -10
- package/tests/rules/oj-html-attr-prefix-expr/attrprefixexpr_PASS_1.html +0 -10
- package/tests/rules/oj-html-attr-prefix-ro/attrprefixro_FAIL_1.html +0 -10
- package/tests/rules/oj-html-attr-prefix-ro/attrprefixro_PASS_1.html +0 -10
- package/tests/rules/oj-html-attr-req/attrreq_FAIL_1.html +0 -17
- package/tests/rules/oj-html-attr-req/attrreq_FAIL_2.html +0 -13
- package/tests/rules/oj-html-attr-req/attrreq_FAIL_3.html +0 -8
- package/tests/rules/oj-html-attr-req/attrreq_FAIL_4.html +0 -13
- package/tests/rules/oj-html-attr-req/attrreq_FAIL_5.html +0 -17
- package/tests/rules/oj-html-attr-req/attrreq_PASS_1.html +0 -24
- package/tests/rules/oj-html-attr-req/attrreq_PASS_2.html +0 -24
- package/tests/rules/oj-html-attr-req/attrreq_PASS_3.html +0 -10
- package/tests/rules/oj-html-attr-req/attrreq_PASS_4.html +0 -11
- package/tests/rules/oj-html-bindforeach-data/bindforeach_data_FAIL_1.html +0 -19
- package/tests/rules/oj-html-bindforeach-data/bindforeach_data_PASS_1.html +0 -10
- package/tests/rules/oj-html-bindif-test/bindif_test_FAIL_1.html +0 -22
- package/tests/rules/oj-html-bindif-test/bindif_test_PASS_1.html +0 -11
- package/tests/rules/oj-html-binding-attr/binding-foreach_FAIL_2.html +0 -28
- package/tests/rules/oj-html-binding-attr/binding-if_FAIL_1.html +0 -23
- package/tests/rules/oj-html-binding-attr/binding-if_PASS_1.html +0 -23
- package/tests/rules/oj-html-cca-count/cca-count_FAIL_1.html +0 -119
- package/tests/rules/oj-html-cca-tagname/ccatag_FAIL_1.html +0 -7
- package/tests/rules/oj-html-cca-tagname/ccatag_PASS_1.html +0 -7
- package/tests/rules/oj-html-cca-tagname/tag_ns_FAIL_1.html +0 -8
- package/tests/rules/oj-html-cca-tagname/tag_ns_FAIL_2.html +0 -8
- package/tests/rules/oj-html-cca-tagname/tag_ns_FAIL_3.html +0 -8
- package/tests/rules/oj-html-cca-tagname/tag_ns_PASS_1.html +0 -10
- package/tests/rules/oj-html-cdn/html_cdn_FAIL_1.html +0 -18
- package/tests/rules/oj-html-cspexpr/cspexpr_FAIL_1.html +0 -14
- package/tests/rules/oj-html-cspexpr/cspexpr_FAIL_2.html +0 -10
- package/tests/rules/oj-html-cspexpr/cspexpr_PASS_1.html +0 -23
- package/tests/rules/oj-html-cspexpr/cspexpr_PASS_2.html +0 -10
- package/tests/rules/oj-html-cspexpr/cspexpr_PASS_3.html +0 -13
- package/tests/rules/oj-html-dlg-title/dlgtitle_FAIL_1.html +0 -12
- package/tests/rules/oj-html-dlg-title/dlgtitle_PASS_1.html +0 -12
- package/tests/rules/oj-html-form-noflex/noflex_FAIL_1.html +0 -10
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_1.html +0 -20
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_2.html +0 -13
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_3.html +0 -16
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_FAIL_4.html +0 -13
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_PASS_1.html +0 -6
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_PASS_2.html +0 -7
- package/tests/rules/oj-html-invalid-doctype/doctype_invalid_PASS_3.html +0 -7
- package/tests/rules/oj-html-jq-databind/jq-databind_FAIL_1.html +0 -37
- package/tests/rules/oj-html-jq-databind/jq-databind_FAIL_2.html +0 -34
- package/tests/rules/oj-html-jq-databind/jq-databind_FAIL_3.html +0 -27
- package/tests/rules/oj-html-jq-databind/jq-databind_PASS_1.html +0 -30
- package/tests/rules/oj-html-ko-comment/ko-comment_FAIL_1.html +0 -47
- package/tests/rules/oj-html-ko-comment/ko-comment_FAIL_2.html +0 -36
- package/tests/rules/oj-html-ko-databind/ko-databind_FAIL_1.html +0 -24
- package/tests/rules/oj-html-ko-databind/ko-databind_FAIL_2.html +0 -36
- package/tests/rules/oj-html-ko-databind/ko-databind_FAIL_3.html +0 -29
- package/tests/rules/oj-html-label-for-prefix/for_FAIL_1.html +0 -8
- package/tests/rules/oj-html-label-for-prefix/for_PASS_1.html +0 -8
- package/tests/rules/oj-html-missing-doctype/doctype_missing_FAIL_1.html +0 -12
- package/tests/rules/oj-html-missing-doctype/doctype_missing_FAIL_2.html +0 -11
- package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_1.html +0 -14
- package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_2.html +0 -5
- package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_3.html +0 -12
- package/tests/rules/oj-html-missing-doctype/doctype_missing_PASS_5.html +0 -6
- package/tests/rules/oj-html-nonvoid-close/close_FAIL_1.html +0 -28
- package/tests/rules/oj-html-nonvoid-close/close_FAIL_2.html +0 -14
- package/tests/rules/oj-html-nonvoid-close/close_FAIL_3.html +0 -13
- package/tests/rules/oj-html-nonvoid-close/close_FAIL_5.html +0 -28
- package/tests/rules/oj-html-nonvoid-close/close_FAIL_6.html +0 -28
- package/tests/rules/oj-html-nonvoid-close/close_PASS_1.html +0 -7
- package/tests/rules/oj-html-oj-lib/oj_lib_FAIL_1.html +0 -15
- package/tests/rules/oj-html-ojattr/ojattr_PASS_1.html +0 -8
- package/tests/rules/oj-html-ojattr/ojattr_PASS_2.html +0 -10
- package/tests/rules/oj-html-ojattr/ojattr_PASS_3.html +0 -7
- package/tests/rules/oj-html-ojattr/ojattr_PASS_4.html +0 -7
- package/tests/rules/oj-html-ojattr-deprecated/ojattr-dep_FAIL1.html +0 -156
- package/tests/rules/oj-html-ojattr-enum-deprecated/enum_FAIL_1.html +0 -19
- package/tests/rules/oj-html-ojattr-enum-deprecated/enum_FAIL_2.html +0 -20
- package/tests/rules/oj-html-ojattr-enum-deprecated/enum_PASS_1.html +0 -25
- package/tests/rules/oj-html-ojattr-evt-syntax/evt-attr-syntax_FAIL_1.html +0 -6
- package/tests/rules/oj-html-ojattr-evt-syntax/evt-attr-syntax_PASS_1.html +0 -6
- package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_1.html +0 -26
- package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_2.html +0 -26
- package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_3.html +0 -8
- package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_4.html +0 -8
- package/tests/rules/oj-html-ojattr-value/attr-value_FAIL_5.html +0 -8
- package/tests/rules/oj-html-ojattr-value/attr-value_PASS_1.html +0 -26
- package/tests/rules/oj-html-ojattr-value/attr-value_PASS_2.html +0 -8
- package/tests/rules/oj-html-ojattr-value/attr-value_PASS_3.html +0 -7
- package/tests/rules/oj-html-ojattr-value/attr-value_PASS_6.html +0 -7
- package/tests/rules/oj-html-ojattr-value/attr-value_PASS_7.html +0 -10
- package/tests/rules/oj-html-ojattr-value/attr_value_PASS_4.html +0 -7
- package/tests/rules/oj-html-ojattr-value/attr_value_PASS_5.html +0 -9
- package/tests/rules/oj-html-ojslot/ojslot_FAIL_1.html +0 -11
- package/tests/rules/oj-html-ojslot/ojslot_PASS_1.html +0 -12
- package/tests/rules/oj-html-ojstyle/style_FAIL_1.html +0 -103
- package/tests/rules/oj-html-ojstyle/style_PASS_2.html +0 -7
- package/tests/rules/oj-html-ojtag-datacmd/datacmd_FAIL_1.html +0 -10
- package/tests/rules/oj-html-ojtag-datacmd/datacmd_FAIL_2.html +0 -18
- package/tests/rules/oj-html-ojtag-datacmd/datacmd_FAIL_3.html +0 -10
- package/tests/rules/oj-html-ojtag-datacmd/datacmd_PASS_1.html +0 -28
- package/tests/rules/oj-html-ojtag-datacmd/datacmd_PASS_2.html +0 -15
- package/tests/rules/oj-html-ojtag-datactx/datactx_FAIL_1.html +0 -14
- package/tests/rules/oj-html-ojtag-datactx/datactx_PASS_1.html +0 -14
- package/tests/rules/oj-html-ojtag-globattr-noprefix/globattr-noprefix_FAIL_1.html +0 -36
- package/tests/rules/oj-html-ojtag-nonglobattr-prefix/nonglobattr-prefix_FAIL_1.html +0 -26
- package/tests/rules/oj-html-slot-name/slot_name.FAIL_1.html +0 -24
- package/tests/rules/oj-html-slot-name/slot_name.FAIL_2.html +0 -46
- package/tests/rules/oj-html-slot-name/slot_name.FAIL_3.html +0 -10
- package/tests/rules/oj-html-slot-name/slot_name.PASS_1.html +0 -24
- package/tests/rules/oj-html-slot-name/slot_name.PASS_2.html +0 -39
- package/tests/rules/oj-html-slot-name/slot_name.PASS_3.html +0 -10
- package/tests/rules/oj-html-slot-name/slot_name_PASS_4.html +0 -16
- package/tests/rules/oj-html-slot-name/slot_name_PASS_5.html +0 -11
- package/tests/rules/oj-html-slot-name/slot_name_PASS_6.html +0 -14
- package/tests/rules/oj-html-slot-name/slot_name_PASS_7.html +0 -10
- package/tests/rules/oj-html-style/style_FAIL_1.html +0 -7
- package/tests/rules/oj-html-style/style_PASS_1.html +0 -12
- package/tests/rules/oj-html-style/style_PASS_2.html +0 -7
- package/tests/rules/oj-html-style-bp-color/color-FAIL_1.html +0 -17
- package/tests/rules/oj-html-style-bp-color/color-FAIL_2.html +0 -15
- package/tests/rules/oj-html-style-bp-color/color-FAIL_3.html +0 -7
- package/tests/rules/oj-html-style-bp-color/color-PASS_1.html +0 -7
- package/tests/rules/oj-html-style-bp-font-family/fam_FAIL_1.html +0 -23
- package/tests/rules/oj-html-tag-attr-noprefix/attr-noprefix_FAIL_1.html +0 -15
- package/tests/rules/oj-html-tag-attr-noprefix/attr-noprefix_FAIL_2.html +0 -9
- package/tests/rules/oj-html-tag-attr-noprefix/attr-noprefix_PASS_1.html +0 -9
- package/tests/rules/oj-html-unsup-theme/unsup_FAIL_1.html +0 -8
- package/tests/rules/oj-html-wctag-for/for_FAIL_1.html +0 -8
- package/tests/rules/oj-html-wctag-for/for_PASS_1.html +0 -8
- package/tests/rules/oj-js-comp-attr-deprecated/attr-del_FAIL_1.js +0 -20
- package/tests/rules/oj-js-comp-attr-deprecated/attr-dep_FAIL_1.js +0 -20
- package/tests/rules/oj-js-comp-meth-deprecated/meth-del_FAIL_1.js +0 -20
- package/tests/rules/oj-js-comp-meth-deprecated/meth-dep_FAIL_1.js +0 -20
- package/tests/rules/oj-js-define-promise/def-prom_FAIL_1.js +0 -16
- package/tests/rules/oj-js-define-promise/def-prom_FAIL_2.js +0 -16
- package/tests/rules/oj-js-diagnose/es6_PASS_1.js +0 -24
- package/tests/rules/oj-js-diagnose/js_FAIL_1.js +0 -12
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_1.js +0 -30
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_2.js +0 -23
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_3.js +0 -22
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_4.js +0 -20
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_5.js +0 -24
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_6.js +0 -30
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_7.js +0 -15
- package/tests/rules/oj-js-no-ext-final/noextfinal_FAIL_8.js +0 -16
- package/tests/rules/oj-js-no-ext-final/noextfinal_PASS_1.js +0 -17
- package/tests/rules/oj-js-no-ext-final/noextfinal_PASS_2.js +0 -17
- package/tests/rules/oj-js-noconsole/nocons_FAIL_1.js +0 -11
- package/tests/rules/oj-js-ojcomp-deprecated/jscomp_FAIL_1.js +0 -27
- package/tests/rules/oj-json-syntax/json_FAIL_1.json +0 -8
- package/tests/rules/oj-json-syntax/json_FAIL_2.json +0 -12
- package/tests/rules/oj-json-syntax/json_PASS_1.json +0 -25
- package/tests/rules/oj-json-syntax/json_PASS_2.json +0 -12
- package/tests/rules/oj-json-syntax/json_PASS_3.json +0 -14
- package/tests/rules/ojcompjson/attrreq_FAIL_1/component.json +0 -69
- package/tests/rules/pack-compjson/audit-pack/component-1/component-1-view.html +0 -6
- package/tests/rules/pack-compjson/audit-pack/component-1/component-1-viewModel.js +0 -56
- package/tests/rules/pack-compjson/audit-pack/component-1/component.json +0 -13
- package/tests/rules/pack-compjson/audit-pack/component-1/loader.js +0 -20
- package/tests/rules/pack-compjson/audit-pack/component-1/resources/nls/component-1-strings.js +0 -18
- package/tests/rules/pack-compjson/audit-pack/component-2/component-2-view.html +0 -5
- package/tests/rules/pack-compjson/audit-pack/component-2/component-2-viewModel.js +0 -56
- package/tests/rules/pack-compjson/audit-pack/component-2/component.json +0 -13
- package/tests/rules/pack-compjson/audit-pack/component-2/loader.js +0 -20
- package/tests/rules/pack-compjson/audit-pack/component-2/resources/nls/component-1-strings.js +0 -18
- package/tests/rules/pack-compjson/audit-pack/component.json +0 -12
- package/tests/rules/pack-compjson/audit-singleton-1/audit-singleton-1-view.html +0 -5
- package/tests/rules/pack-compjson/audit-singleton-1/audit-singleton-1-viewModel.js +0 -56
- package/tests/rules/pack-compjson/audit-singleton-1/component.json +0 -20
- package/tests/rules/pack-compjson/audit-singleton-1/loader.js +0 -20
- package/tests/rules/pack-compjson/audit-singleton-1/resources/nls/audit-singleton-1-strings.js +0 -18
- package/tests/rules/pack-compjson/audit-singleton-2/audit-singleton-2-view.html +0 -8
- package/tests/rules/pack-compjson/audit-singleton-2/audit-singleton-2-viewModel.js +0 -56
- package/tests/rules/pack-compjson/audit-singleton-2/component.json +0 -15
- package/tests/rules/pack-compjson/audit-singleton-2/loader.js +0 -20
- package/tests/rules/pack-compjson/audit-singleton-2/resources/nls/audit-singleton-2-strings.js +0 -18
- package/tests/rules/parse-html/proc_instr.html +0 -9
- package/tests/rules/spoc-dom-manip/dom-manip_FAIL_1.js +0 -113
- package/tests/rules/spoc-dom-manip/dom-manip_FAIL_2.js +0 -151
- package/tests/rules/spoc-dom-manip/dom-manip_PASS_1.js +0 -149
- package/tests/rules/spoc-dom-manip/dom-manip_PASS_2.js +0 -147
- package/tests/rules/spoc-dom-manip/dom-manip_PASS_3.js +0 -147
- package/tests/rules/spoc-dom-manip/dom-manip_PASS_4.js +0 -20
- package/tests/rules/spoc-dom-manip/dom-manip_PASS_5.js +0 -246
- package/tests/rules/tab-tests/tab-test_FAIL_1.html +0 -37
- package/tests/rules/tab-tests/tab-test_FAIL_2.html +0 -8
- package/tests/rules/webcomptests/jet-composites/oj-html-wctag-$props/prop_PASS_1.html +0 -8
- package/tests/rules/webcomptests/jet-composites/oj-html-wctag-$props/prop_PASS_2.html +0 -8
- package/tests/rules/webcomptests/jet-composites/oj-html-wctag-for/for_FAIL_1.html +0 -8
- package/tests/rules/webcomptests/jet-composites/oj-html-wctag-for/for_PASS_1.html +0 -8
- package/tests/src/JetTest.js +0 -1
- package/tests/src/server.js +0 -1
- package/tests/test.js +0 -1
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
6
|
+
var path=require("path");const RULENAME="oj-js-poly-promise";const SHORT="The 'promise' polyfill should not be declared explicitly in define/require()";const DESCRIPTION="The Promise polyfill is no longer distributed with JET v11 and higher. Support for Internet Explorer 11 and ES5 "+"has been removed starting with JET v11. All modern browsers provide direct support for Promise and the Promise "+"polyfill should no longer be referenced separately.";const DEFINE="define";const REQUIRE="require";const TS="ts";var nt;class Rule{getName(){return RULENAME}getDescription(){return DESCRIPTION}getShortDescription(){return SHORT}register(regCtx){nt=regCtx.jsNodeTypes;return{CallExpression:this._onCall}}_onCall(ruleCtx,node){var args,arg,argVal,i,start,issue;if(node.callee&&(node.callee.name===DEFINE||node.callee.name===REQUIRE)){if(node.arguments&&node.arguments.length>=1){if(node.arguments[0].type===nt.ARRAY_EXPR){args=node.arguments[0].elements;for(i=0;i<args.length;i++){arg=args[i];if(arg&&arg.type==="Literal"){argVal=arg.raw.toLowerCase();argVal=path.basename(argVal);if(argVal.includes("promise")){issue=new ruleCtx.Issue(node.callee.name+"() explicitly loads polyfill 'promise'");start=_isTS(ruleCtx)?arg.range[0]:arg.start;start=start+arg.raw.indexOf("promise");issue.setPosition(null,null,start,start+6);ruleCtx.reporter.addIssue(issue,ruleCtx);break}}}}}}}}function _isTS(ctx){return ctx.filepath.substring(ctx.filepath.lastIndexOf(".")+1)===TS};module.exports=Rule;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
1
6
|
const helperClass=require("./helpers/vartrack");const RULE_NAME="oj-js-var-undef";var NT;function Rule(){this._reset()};Rule.prototype.getName=function(){return RULE_NAME};Rule.prototype.getShortDescription=function(){return"JS variables should be defined"};Rule.prototype.getDescription=function(){return"Referenced Javascript variables should be defined."};Rule.prototype.register=function(){return{FunctionDeclaration:this._setup,file:this._newFile,startscript:this._newFile,endfile:this._endFile,endscript:this._endFile,CallExpression:this._handleCallExpressions,MemberExpression:this._handleMemberExpressions,AssignmentExpression:this._handleAssignments,FunctionExpression:this._handleFuncExpressions,IfStatement:this._handleIf,NewExpression:this._handleNew,ReturnStatement:this._handleReturns}};Rule.prototype._reset=function(){this._funcVarTable=null;this._globalVars=false;this._define=false;if(this._helper){this._helper.reset()}};Rule.prototype._handleCallExpressions=function(context,node){var n,arg,props,prop,i,j;if(node.callee&&(node.callee.name==="define"||node.callee.name==="require")){this._funcVarTable=this._handleViewModelDefine(context,node);return}n=node.callee;while(n){if(n.type===NT.IDENTIFIER){break}n=n.object}if(n&&n.name){if(!this._funcVarTable[n.name]){this._helper.isVarDefined(context,node,n,n.name)}}if(node.arguments){for(i=0;i<node.arguments.length;i++){arg=node.arguments[i];if(arg&&arg.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,arg,arg.name)}else if(arg.type===NT.OBJ_EXPR){props=arg.properties;for(j=0;j<props.length;j++){prop=props[j];if(prop.type===NT.PROPERTY){if(prop.value.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,prop.value,prop.value.name)}}}}}}};Rule.prototype._handleMemberExpressions=function(context,node){var n,v;if(node.parent&&node.parent.type===NT.NEW_EXPR){return}if(node.object&&node.object.type===NT.IDENTIFIER&&node.property.name!=="prototype"){if(node.object.name){this._helper.isVarDefined(context,node,node.object,node.object.name);return}}if(node.object){n=node.object;while(n){if(n.property&&n.property.type===NT.IDENTIFIER&&n.property.name==="prototype"){return}if(n.type===NT.IDENTIFIER){v=n.name;break}n=n.object}}else if(node.callee){n=node.callee;while(n){if(n.type===NT.IDENTIFIER){v=n.name;break}n=n.object}}if(v){if(!this._funcVarTable[v]){this._helper.isVarDefined(context,node,n,v)}}};Rule.prototype._handleAssignments=function(context,node){var n;if(node.left.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,node.left,node.left.name)}if(node.right.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,node.right,node.right.name)}if(node.right.type===NT.CONDITIONAL_EXPR){if(node.right.test.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,node.right,node.right.test.name)}if(node.right.alternate.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,node.right.alternate,node.right.alternate.name)}if(node.right.consequent.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,node.right.consequent,node.right.consequent.name)}}if(node.left.type===NT.MEMBER_EXPR){n=node.left.object;while(n){if(n.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,n,n.name);break}n=n.object}}if(node.right.type===NT.MEMBER_EXPR){n=node.right.object;while(n){if(n.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,n,n.name);break}n=n.object}}if(node.left.object&&node.left.object.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,node.left.object,node.left.object.name)}if(node.right.object&&node.right.object.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,node.right.object,node.right.object.name)}};Rule.prototype._handleIf=function(context,node){var n,body,stmt;if(node.test){if(node.test.type===NT.BINARY_EXPR){if(node.test.left.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,node.test.left,node.test.left.name)}if(node.test.right.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,node.test.right,node.test.right.name)}return}else if(node.test.type===NT.MEMBER_EXPR){n=node.test.object;while(n){if(n.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,n,n.name);return}n=n.object}}else if(node.test.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,node.test,node.test.name)}}if(node.consequent){n=node.consequent;if(n.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,n,n.name);return}n=n.object;while(n){if(n.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,n,n.name);return}n=n.object}if(node.consequent.body){body=node.consequent.body;for(stmt in body){stmt=body[stmt];this._helper.pushNodeWithParent(node);this._dispatchHandler(context,stmt);this._helper.popNodeWithParent()}}}if(node.alternate){n=node.alternate;if(n.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,n,n.name);return}n=n.object;while(n){if(n.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,n,n.name);return}n=n.object}if(node.alternate.body){body=node.alternate.body;for(stmt in body){stmt=body[stmt];this._helper.pushNodeWithParent(node);this._dispatchHandler(context,stmt);this._helper.popNodeWithParent()}}}};Rule.prototype._handleFuncExpressions=function(context,node){if(!this._helper.isFunctionKnown(context,node)){this._helper.createFuncDeclarations(context,node)}};Rule.prototype._handleExpressions=function(context,node){var expr=node.expression;if(expr.type===NT.ASSIGNMENT_EXPR){this._handleAssignments(context,expr)}};Rule.prototype._handleReturns=function(context,node){var n,args,arg,i;if(node.argument){if(node.argument.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,node.argument,node.argument.name)}else if(node.argument.type===NT.MEMBER_EXPR){n=n.argument.object;while(n){if(n.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,n,n.name);return}n=n.object}}else if(node.argument.type===NT.NEW_EXPR){this._handleNew(context,node)}else if(node.argument.type===NT.CALL_EXPR){args=node.argument.arguments;for(i=0;i<args.length;i++){arg=args[i];if(arg.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,arg,arg.name)}}}}};Rule.prototype._handleNew=function(context,node){var i,arg;if(node.arguments){for(i=0;i<node.arguments.length;i++){arg=node.arguments[i];if(arg.type===NT.IDENTIFIER){this._helper.isVarDefined(context,node,arg,arg.name)}}}};Rule.prototype._dispatchHandler=function(context,node){if(node.type===NT.MEMBER_EXPR){this._handleMemberExpressions(context,node)}else if(node.type===NT.ASSIGNMENT_EXPR){this._handleAssignments(context,node)}else if(node.type===NT.CALL_EXPR){this._handleCallExpressions(context,node)}else if(node.type===NT.EXPR_STMT){this._handleExpressions(context,node)}else{var jj=42}};Rule.prototype._newFile=function(context){if(context.type==="file"&&context.filetype==="html"){return}this._globalVars=this._funcVarTable=null;this._define=false;if(!this._helper){this._helper=new helperClass}this._reset();if(!NT&&context.utils.AstUtils){NT=context.utils.AstUtils.getNodeTypes()}};Rule.prototype._endFile=function(context){var funcName;var undeclared=this._helper.getUndeclared();if(this._funcVarTable){for(funcName in this._funcVarTable){this._reportUnusedVars(context,this._funcVarTable[funcName])}this._reportUndeclared(context,this._funcVarTable[funcName],undeclared)}this._reset()};Rule.prototype._reportUnusedVars=function(context,funcVars){var varName,varObj,issue,rowcol;for(varName in funcVars){varObj=funcVars[varName];if((varObj.type==="var"||varObj.type==="globvar")&&!funcVars[varName].used){issue=new context.Issue("Unreferenced var '"+varName+"'");rowcol=context.utils.utils.getRowColFromIndex(context.rawData,varObj.start);issue.setPosition(rowcol.row,rowcol.col,varObj.start,varObj.start+varName.length-1);issue.setSeverity("info");issue.setMsgKey(context.ruleName+"_1");context.reporter.addIssue(issue,context)}}};Rule.prototype._reportUndeclared=function(context,funcVars,undeclared){var varName,funcName,node,issue,rowcol,entry,x;for(entry in undeclared){node=undeclared[entry];x=entry.indexOf("!@#$%");varName=entry.substring(0,x);funcName=this._helper.getContainingFunctionName(context,node);if(funcName){funcVars=this._funcVarTable[funcName];if(funcVars){if(funcVars[varName]){if(funcVars[varName.used]){continue}}}}issue=new context.Issue("Undeclared var '"+varName+"'");rowcol=context.utils.utils.getRowColFromIndex(context.rawData,node.start);issue.setPosition(rowcol.row,rowcol.col,node.start,node.start+varName.length-1);issue.setSeverity("info");issue.setMsgKey(context.ruleName+"_1");context.reporter.addIssue(issue,context)}};Rule.prototype._setup=function(context,node){if(!NT){NT=context.utils.AstUtils.getNodeTypes()}if(!this._globalVars){this._helper.getGlobalVars(context);this._globalVars=true}if(this._define){return}var o=this._helper.createFuncDeclarations(context,node);this._funcVarTable=o.funcVarTable};Rule.prototype._handleViewModelDefine=function(context,node){var args,stmt,o,i;args=node.arguments;if(!args){return}for(i=0;i<args.length;i++){stmt=args[i];if(stmt.type===NT.FUNC_EXPR){o=this._helper.createFuncDeclarations(context,stmt);this._funcVarTable=o.funcVarTable}}this._define=true;return this._funcVarTable};module.exports=Rule;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
6
|
+
const RULE_NAME="oj-json-syntax";function getName(){return RULE_NAME};function getShortDescription(){return"JSON syntax must be valid"};function getDescription(){return"The contents of a JSON file must be syntactically valid, and produce no parse errors."};function register(){return{"file":function(context){if(context.filepath.indexOf("component.json")>=0){return true}if(context.suppData.msg){var issue;issue=new context.Issue(context.suppData.msg);issue.setPosition(context.suppData.line,context.suppData.col);context.reporter.addIssue(issue,context);return false}}}};module.exports={getName,getDescription,getShortDescription,register};
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
1
6
|
const helperClass=require("./helpers/vartrack");const RULE_NAME="oj-ts-comp-attr-deprecated";var NT;var depMembers;var delMembers;function Rule(){this._reset();this._scope=null};Rule.prototype.getName=function(){return RULE_NAME};Rule.prototype.getShortDescription=function(){return"JET component class deprecated members should not be invoked"};Rule.prototype.getDescription=function(){return"JET component class deprecated members should not be invoked"};Rule.prototype.register=function(regCtx){if(!depMembers){depMembers=regCtx.utils.metaLib.getDeprecatedMemberList(regCtx)}if(!delMembers){delMembers=regCtx.utils.metaLib.getDeletedMemberList(regCtx)}return{MemberExpression:this._onMemExpr,file:this._onNewFile}};Rule.prototype._reset=function(){if(this._helper){this._helper.reset()}};Rule.prototype._onMemExpr=function(ruleCtx,node){var component,member,objName,comment,issue,version,deleted;var metaLib=ruleCtx.utils.metaLib;if(node.parent&&node.parent.type==="CallExpression"){return}objName=this._getVarFromMemberExpr(node);if(this._isCommonObject(ruleCtx,objName)){return}if(node.property){member=node.property.name}if(!(member&&objName&&!member.startsWith("_"))){return}if(!depMembers[member]){deleted=delMembers[member];if(!deleted){return}}component=this._scope.getVarType(node.object);if(!component||component==="TSAnyKeyword"){return}comment=metaLib.isClassMemberDeprecated(component,member);if(comment){comment=ruleCtx.utils.utils.removeMarkup(comment);issue=new ruleCtx.Issue(`Member '${member}' on var '${objName}' (${component}) ${comment.toLowerCase().includes("deprecated")?". ":" is deprecated. "} ${comment}`)}else{if(metaLib.isClassDeprecated(component)){issue=new ruleCtx.Issue(`Method '${member}' on var '${objName}' called on deprecated component ${component}.`)}}if(!issue){version=metaLib.isClassMemberDeleted(component,member);if(version){issue=new ruleCtx.Issue(`Member '${member}' on var '${objName}' (${component}) was removed in version ${version}`)}else if(metaLib.isClassDeleted(component)){issue=new ruleCtx.Issue(`Member '${member}' on var '${objName}' called on deleted class ${component}.`);issue.setSeverity("critical")}if(issue){issue.setSeverity("critical");issue.setMsgKey(RULE_NAME+"_2")}}if(issue){ruleCtx.reporter.addIssue(issue,ruleCtx)}};Rule.prototype._onNewFile=function(ruleCtx){if(!this._helper){this._helper=new helperClass}this._reset();if(!NT&&ruleCtx.utils.AstUtils){NT=ruleCtx.utils.AstUtils.getNodeTypes()}this._scope=ruleCtx.utils.AstUtils.getScopes()};Rule.prototype._getVarFromMemberExpr=function(me,varSoFar,level){var obj;level=typeof level==="number"?level+1:0;if(me.object){obj=me.object;if(obj.type===NT.IDENTIFIER){varSoFar=varSoFar?varSoFar+"."+obj.name:obj.name}else if(obj.type===NT.MEMBER_EXPR){varSoFar=this._getVarFromMemberExpr(obj,varSoFar,level)}if(me.property&&level){if(me.property.type===NT.IDENTIFIER){varSoFar=varSoFar?varSoFar+"."+me.property.name:me.property.name}else if(me.property.type===NT.MEMBER_EXPR){varSoFar=this._getVarFromMemberExpr(me.property,varSoFar,level)}}}return varSoFar};Rule.prototype._isCommonObject=function(ruleCtx,objName){return objName==="this"||objName==="self"||objName==="_self"||objName==="window"||objName==="console"||this._helper.isCommonVar(objName)};module.exports=Rule;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
1
6
|
const helperClass=require("./helpers/vartrack");const RULENAME="oj-ts-comp-meth-deprecated";var NT;var depMethods;var delMethods;function Rule(){this._reset();this._scope=null};Rule.prototype.getName=function(){return RULENAME};Rule.prototype.getShortDescription=function(){return"JET component class deprecated methods should not be invoked"};Rule.prototype.getDescription=function(){return"JET component class deprecated methods should not be invoked"};Rule.prototype.register=function(regCtx){if(!depMethods){depMethods=regCtx.utils.metaLib.getDeprecatedMethodList(regCtx)}if(!delMethods){delMethods=regCtx.utils.metaLib.getDeletedMethodList(regCtx)}return{CallExpression:this._onCall,file:this._onNewFile,endfile:this._onEndFile}};Rule.prototype._reset=function(){if(this._helper){this._helper.reset()}};Rule.prototype._onCall=function(ruleCtx,node){var component,method,objName,comment,version,issue;var me,prop,method,del;var metaLib=ruleCtx.utils.metaLib;if(!NT){NT=ruleCtx.utils.AstUtils.getNodeTypes()}me=node.callee;objName=this._getVarFromMemberExpr(me);prop=me.property;if(prop&&prop.name){method=prop.name}if(!(method&&objName)){return}if(this._isCommonMethod(ruleCtx,objName,method)){return}if(!depMethods[method]){del=delMethods[method];if(!del){return}}component=this._scope.getVarType(me.object);if(!component||component==="TSAnyKeyword"){return}comment=metaLib.isClassMethodDeprecated(component,method);if(comment){comment=ruleCtx.utils.utils.removeMarkup(comment);issue=new ruleCtx.Issue(`Method ${method}() on var '${objName}' (${component}) ${comment.toLowerCase().includes("deprecated")?". ":" is "+(del?"deleted":"deprecated")+". "}${comment}`)}else if(metaLib.isClassDeprecated(component)){issue=new ruleCtx.Issue(`Method ${method}() on var '${objName}' called on deprecated class ${component}`)}if(!issue){if(del){version=metaLib.isClassMethodDeleted(component,method);if(version){issue=new ruleCtx.Issue(`Method ${method}() on var '${objName}' (${component}) was removed in version ${version}`)}else if(metaLib.isClassDeleted(component)){issue=new ruleCtx.Issue(`Method ${method}() on var '${objName}' called on deleted class (${component}).`)}if(issue){issue.setSeverity("critical");issue.setMsgKey(RULENAME+"_2")}}}if(issue){ruleCtx.reporter.addIssue(issue,ruleCtx)}};Rule.prototype._onNewFile=function(ruleCtx){if(ruleCtx.type==="file"&&ruleCtx.filetype!=="ts"){return}if(!this._helper){this._helper=new helperClass}this._reset();if(!NT&&ruleCtx.utils.AstUtils){NT=ruleCtx.utils.AstUtils.getNodeTypes()}this._scope=ruleCtx.utils.AstUtils.getScopes()};Rule.prototype._onEndFile=function(){};Rule.prototype._getVarFromMemberExpr=function(me,varSoFar,level){var obj;level=typeof level==="number"?level+1:0;if(me.object){obj=me.object;if(obj.type===NT.IDENTIFIER){varSoFar=varSoFar?varSoFar+"."+obj.name:obj.name}else if(obj.type===NT.MEMBER_EXPR){varSoFar=this._getVarFromMemberExpr(obj,varSoFar,level)}if(me.property&&level){if(me.property.type===NT.IDENTIFIER){varSoFar=varSoFar?varSoFar+"."+me.property.name:me.property.name}else if(me.property.type===NT.MEMBER_EXPR){varSoFar=this._getVarFromMemberExpr(me.property,varSoFar,level)}}}return varSoFar};Rule.prototype._isCommonMethod=function(ruleCtx,objName,method){return method.charAt(0)==="_"||method==="observable"||method==="applyBindings"||method==="addEventListener"||method==="removeEventListener"||ruleCtx.utils.AstUtils.isCommonDocApi(method)||objName==="this"||objName==="self"||objName==="_self"||objName==="window"||objName==="console"||this._helper.isCommonVar(objName)};module.exports=Rule;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
6
|
+
const RULE_NAME="oj-ts-no-ext-final";const LONG_DESCR="Starting in 8.0.0, constructors for classes marked with @final in the JET JS Doc cannot be invoked without use of 'new'";const MSG_PART="' constructor without 'new' will fail in version 8.x or later";const OJ="oj";const OJDOT="oj.";class Rule{getName(){return RULE_NAME}getDescription(){return LONG_DESCR}getShortDescription(){return LONG_DESCR}register(){return{CallExpression:this._onCall,file:this._onNewFile}}_onCall(ruleCtx,node){let callee;if(!node.callee){return}callee=node.callee;if(callee){if(callee.name==="define"||callee.name==="require"){return}if(_specialCase(callee)){return}return this._handleCall(ruleCtx,node,callee)}}_onNewFile(ruleCtx){this._scope=ruleCtx.utils.AstUtils.getScopes()}_handleCall(ruleCtx,node,callee){var clazz,ojclazz,obj,classBase,ojdot,pos,immed=false;if(callee.type==="Identifier"){clazz=callee.name;if(!ruleCtx.utils.metaLib.isClass(clazz)){clazz=this._scope.getVarType(callee);if(!clazz){return}}ojclazz=clazz;pos={start:callee.range[0],end:callee.range[1]};immed=true}else if(callee.type==="MemberExpression"&&callee.object){if(callee.object.type==="NewExpression"){return}if(callee.object.type==="Identifier"){if(callee.object.name===OJ){if(callee.property.type==="Identifier"){clazz=callee.property.name;ojclazz=clazz=OJDOT+clazz;pos={start:callee.object.range[0],end:callee.object.range[0]+ojclazz.length}}}else{clazz=callee.object.name;pos={start:callee.object.range[0],end:callee.object.range[1]}}}else if(callee.object.type==="MemberExpression"){if(callee.object.object&&callee.object.object.type==="Identifier"&&callee.object.object.name===OJ){classBase=callee.object.property.name;clazz=classBase;ojdot=true;pos={start:callee.object.range[0],end:callee.object.range[1]}}}}if(!clazz){return}if(ojclazz){if(_checkFinal(ruleCtx,ojclazz,pos)){return}}if(!immed){ojclazz=clazz;if(!ruleCtx.utils.metaLib.isClass(ojclazz)){if(ojdot){ojclazz=OJDOT+clazz}}if(ruleCtx.utils.metaLib.isClass(ojclazz)){obj=_checkStatic(ruleCtx,ojclazz,callee);if(obj.exists&&!obj.static){_emitIssue("uninstantiated '"+ojclazz+" : use of non-static method '"+obj.fn+"' will fail in JET 8.x or higher",ruleCtx,pos)}else if(!obj.exists){if(callee.property&&callee.property.type==="Identifier"&&callee.property.name){if(clazz.substring(3)===callee.property.name||callee.property.name==="call"||callee.property.name==="apply"){_emitIssue("'"+clazz+MSG_PART,ruleCtx,pos)}}}}}}}function _emitIssue(msg,ruleCtx,pos){var issue=new ruleCtx.Issue(msg);if(pos){issue.setPosition(null,null,pos.start,pos.end)}ruleCtx.reporter.addIssue(issue,ruleCtx)}function _checkFinal(ruleCtx,clazz,pos){var cls,metaLib,ret=false;metaLib=ruleCtx.utils.metaLib;if(clazz.startsWith(OJDOT)){cls=metaLib.isClassRenamed(clazz);if(cls){clazz=cls.to}}if(ruleCtx.utils.metaLib.isClassFinal(clazz)){_emitIssue("'"+clazz+MSG_PART,ruleCtx,pos);ret=true}return ret};function _specialCase(callee){var obj;if(callee){if(callee.object&&callee.object.name){if(callee.object.object){return false}obj=callee.object.name;if(obj==="Object"){return true}}}return false};function _checkStatic(context,ojclazz,callee){var name;var ret={};if(context.utils.metaLib.isClassFinal(ojclazz)){if(callee.property&&callee.property.type==="Identifier"&&callee.property.name){name=callee.property.name;ret.fn=name;if(context.utils.metaLib.isClassMethod(ojclazz,name)){ret.exists=true;ret.static=context.utils.metaLib.isClassMethodStatic(ojclazz,name);return ret}}}ret.fn=null;return ret};module.exports=Rule;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
6
|
+
const RULENAME="oj-ts-noconsole";const DESCRIPTION="All uses of console.log() should be removed before general release";const SHORT_DESCRIPTION="console.log() should be removed before general release";const CONSOLE="Console";class Rule{getName(){return RULENAME}getDescription(){return DESCRIPTION}getShortDescription(){return SHORT_DESCRIPTION}register(){return{CallExpression:this._onCall,file:this._onNewFile}}_onCall(ruleCtx,node){var callee,meth,isCons;callee=node.callee;if(callee&&callee.object){if(callee.object.name==="console"){isCons=true}else{let t=this._scopes.getVarType(callee.object);isCons=t===CONSOLE}if(isCons){meth=callee.property&&callee.property.type==="Identifier"?": method "+callee.property.name+"()":"";let issue=new ruleCtx.Issue(`Use of console object found ${meth} - strip before shipping!`);issue.setPosition(null,null,callee.property.range[0],callee.property.range[1]);ruleCtx.reporter.addIssue(issue,ruleCtx)}}}_onNewFile(ruleCtx){this._scopes=ruleCtx.utils.AstUtils.getScopes()}}module.exports=Rule;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
6
|
+
const RULENAME="oj-ts-ojcomp-deprecated";const DESCRIPTION="Deprecated JET component classes should not be instantiated";const SHORT_DESCRIPTION="Deprecated JET component classes should not be instantiated";const PERIOD=".";var nt;class Rule{getName(){return RULENAME}getDescription(){return DESCRIPTION}getShortDescription(){return SHORT_DESCRIPTION}register(regCtx){var ret={};nt=regCtx.tsNodeTypes;ret[nt.NEW_EXPR]=this._onNew;return ret}_onNew(ruleCtx,node){var component,issue,comment;var me,obj,start,pos;me=node.callee;if(me.type===nt.MEMBER_EXPR){obj=me.object;if(obj&&obj.type===nt.IDENTIFIER){if(obj.name==="oj"){if(me.property&&me.property.name){component="oj."+me.property.name;start=obj}}}}else if(me.type===nt.IDENTIFIER){component=me.name;start=me}if(component){comment=ruleCtx.utils.metaLib.isClassDeprecated(component);if(comment){if(typeof comment==="object"){comment=comment.description}issue=new ruleCtx.Issue(`Instantiation of deprecated JET class ${component}. ${comment} ${comment.endsWith(PERIOD)?"":PERIOD}`);issue.setPosition(null,null,start.range[0],start.range[0]+component.length);ruleCtx.reporter.addIssue(issue,ruleCtx)}}}}module.exports=Rule;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
6
|
+
const RULENAME="oj-ts-ojcomp-exist";const DESCRIPTION="The JET component class is unknown or has been renamed. The component class's deprecation period may have expired and it has been removed.";const SHORT_DESCRIPTION="Unknown JET component classes should not be instantiated";class Rule{getName(){return RULENAME}getDescription(){return DESCRIPTION}getShortDescription(){return SHORT_DESCRIPTION}register(regCtx){var ret={};this._nt=regCtx.tsNodeTypes;ret[this._nt.NEW_EXPR]=this._onNew;return ret}_onNew(ruleCtx,node){var clazz,issue,exists;var me,obj,start;var metaLib=ruleCtx.utils.metaLib;me=node.callee;if(me.type==="MemberExpression"){obj=me.object;if(obj&&obj.type==="Identifier"){if(obj.name==="oj"){if(me.property&&me.property.name){clazz="oj."+me.property.name}start=obj}}}else if(me.type==="Identifier"){clazz=me.name;start=me}if(clazz){exists=metaLib.isComponent(clazz);if(!exists){issue=this._isRenamed(clazz,ruleCtx);if(!issue){issue=this._isDeleted(clazz,ruleCtx)}if(issue){start=start.range[0];issue.setPosition(null,null,start,start+clazz.length);ruleCtx.reporter.addIssue(issue,ruleCtx)}}}}_isRenamed(clazz,ruleCtx){var o,issue;o=ruleCtx.utils.metaLib.isClassRenamed(clazz);if(o){issue=new ruleCtx.Issue(`Instantiation of '${clazz}' - this class was renamed to ${o.to} in ${o.since}`);issue.setMsgKey(RULENAME+"_1")}return issue}_isDeleted(clazz,ruleCtx){var ver,issue;ver=ruleCtx.utils.metaLib.isClassDeleted(clazz);if(ver){if(clazz==="oj.ojTree"){issue=new ruleCtx.Issue(`Instantiation of '${clazz}' - this class was undocumented in version 6.0.0`)}else{issue=new ruleCtx.Issue(`Instantiation of '${clazz}' - this class was removed in version ${ver}`)}}else if(clazz.startsWith("oj.")){if(clazz!=="oj.ojTree"){issue=new ruleCtx.Issue(`Instantiation of unknown JET component '${clazz}'`)}else{issue=new ruleCtx.Issue(`Instantiation of ${clazz} - this class was undocumented in version 6.0.0`)}}return issue}}module.exports=Rule;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
6
|
+
const RULENAME="oj-ts-ojcomp-new";const DESCRIPTION="JET custom element usage should be used instead of instantiating a JET component class via 'new'.";const SHORT_DESCRIPTION="Replace Instantiation of a JET component class via \"new\" with a custom element";class Rule{getName(){return RULENAME}getDescription(){return DESCRIPTION}getShortDescription(){return SHORT_DESCRIPTION}register(){return{NewExpression:this._onNew}}_onNew(ruleCtx,node){var component,issue,elem;var me,obj,start;var metaLib=ruleCtx.utils.metaLib;me=node.callee;if(me.type==="MemberExpression"){obj=me.object;if(obj&&obj.type==="Identifier"){if(obj.name==="oj"){if(me.property&&me.property.name){component="oj."+me.property.name;start=obj}}}}else if(me.type==="Identifier"){component=me.name;start=me}if(component){if(metaLib.isClassRenamed(component)||metaLib.isClassDeleted(component)){return}if(metaLib.isComponent(component)){if(component==="oj.ojTree"){elem="oj-tree-view"}else{elem=metaLib.getTagFromClass(component)}if(elem){issue=new ruleCtx.Issue(`Instantiation of JET class ${component} found. Use web component <${elem}>.`);issue.setPosition(null,null,start.range[0],start.range[0]+component.length);ruleCtx.reporter.addIssue(issue,ruleCtx)}}}}}module.exports=Rule;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
6
|
+
var path=require("path");const RULENAME="oj-ts-poly-promise";const SHORT="The 'promise' polyfill should not be declared explicitly in define/require()";const DESCRIPTION="The Promise polyfill is no longer distributed with JET v11 and higher. Support for Internet Explorer 11 and ES5 "+"has been removed starting with JET v11. All modern browsers provide direct support for Promise and the Promise "+"polyfill should no longer be referenced separately.";const DEFINE="define";const REQUIRE="require";var nt;class Rule{getName(){return RULENAME}getDescription(){return DESCRIPTION}getShortDescription(){return SHORT}register(regCtx){nt=regCtx.tsNodeTypes;return{CallExpression:this._onCall}}_onCall(ruleCtx,node){var args,arg,argVal,i,start,issue;if(node.callee&&(node.callee.name===DEFINE||node.callee.name===REQUIRE)){if(node.arguments&&node.arguments.length>=1){if(node.arguments[0].type===nt.ARRAY_EXPR){args=node.arguments[0].elements;for(i=0;i<args.length;i++){arg=args[i];if(arg&&arg.type==="Literal"){argVal=arg.raw;argVal=path.basename(argVal).toLowerCase();if(argVal.includes("promise")){start=arg.range[0];start=start+arg.raw.toLowerCase().indexOf("promise");issue=new ruleCtx.Issue(node.callee.name+"() explicitly loads polyfill 'promise'");issue.setPosition(null,null,start,start+6);ruleCtx.reporter.addIssue(issue,ruleCtx);break}}}}}}}}module.exports=Rule;
|
package/rules/jet/rules.json
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{"title":"JET Builtin Rules","version":"4.7.0","prefix":"JET","rules":{"oj-html-cca-tagname":{"severity":"minor","filetype":"html","group":["jet-html"],"status":"production"},"oj-html-ojtag-deprecated":{"severity":"major","filetype":"html","group":["jet-html","jet-deprecated"],"status":"production"},"oj-html-ojattr":{"severity":"critical","filetype":"html","group":"jet-html","jetver":">=6.0.0","status":"production"},"oj-html-ojattr-520":{"severity":"critical","filetype":"html","group":"jet-html","jetver":"5.2.0","status":"production"},"oj-html-ojattr-value":{"severity":"critical","filetype":"html","group":"jet-html","status":"production"},"oj-html-attr-2def":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-attr-prefix-ro":{"severity":"info","filetype":"html","group":"jet-html","status":"beta"},"oj-html-attr-prefix-expr":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-attr-json":{"severity":"critical","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojattr-deprecated":{"severity":"major","filetype":"html","group":["jet-html","jet-deprecated"],"status":"production"},"oj-html-ojattr-enum-deprecated":{"severity":"major","filetype":"html","group":["jet-html","jet-deprecated"],"status":"production"},"oj-html-5-tag-obs":{"severity":"major","filetype":"html","group":["jet-html","html5"],"status":"production"},"oj-html-5-attr-obs":{"severity":"major","filetype":"html","group":["jet-html","html5"],"status":"production"},"oj-html-ojevent":{"severity":"critical","filetype":"html","group":"jet-html","status":"production"},"oj-html-form-noflex":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-jq-databind":{"severity":"major","filetype":"html","group":"jet-html","status":"beta"},"oj-html-databind-all":{"severity":"minor","filetype":"html","group":"jet-html","status":"beta","enabled":false},"oj-html-bindif-test":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-bindforeach-data":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojslot":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-slot-name":{"severity":"critical","filetype":"html","group":"jet-html","status":"production"},"oj-html-style":{"severity":"critical","filetype":"html","group":"jet-html","jetver":">=9.0.0","status":"production","enabled":false},"oj-html-stylesel":{"severity":"critical","filetype":"html","group":"jet-html","jetver":">=10.0.0","status":"beta","enabled":false},"oj-html-style-deprecated":{"severity":"major","filetype":"html","group":["jet-html","jet-deprecated"],"jetver":">=9.0.0","status":"production"},"oj-html-ojstyle":{"severity":"critical","filetype":"html","group":"jet-html","jetver":">=9.0.0","status":"production","enabled":false},"oj-html-style-bp-color":{"severity":"major","filetype":"html","group":"jet-html","status":"production","enabled":false},"oj-html-style-bp-font":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"beta","enabled":false},"oj-html-style-bp-font-family":{"severity":"minor","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"production","ignore":["inherit","initial"],"enabled":false},"oj-html-style-bp-display":{"severity":"minor","filetype":"html","group":["jet-html","jet-bp"],"status":"production","enabled":false},"oj-html-style-abs-units":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-bp"],"jetver":">=9.0.0","status":"production","absunits":{"all":2},"enabled":false},"oj-html-binding-attr":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-attr-$unique":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-attr-req":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-dlg-title":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojattr-evt-syntax":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-tag-attr-noprefix":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-label-for-prefix":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojtag-globattr-noprefix":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojtag-nonglobattr-prefix":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojtag-datacmd":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojtag-datactx":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojtag-ns":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-wctag-id":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-wctag-for":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-form-bindif":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production","enabled":false},"oj-html-wctag-arialabelledby":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-wctag-$props":{"severity":"blocker","filetype":"html","amd":false,"group":"jet-html","status":"production"},"oj-html-cspexpr":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-unsup-theme":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-cca-count":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-css-bp-dir-flow":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"beta","enabled":false},"oj-css-style-bp-color":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"beta","enabled":false},"oj-css-style-bp-font":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"beta","enabled":false},"oj-css-style-bp-font-family":{"severity":"minor","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"production","ignore":["inherit","initial"],"enabled":false},"oj-css-style-bp-display":{"severity":"minor","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"beta","enabled":false},"oj-css-style-override":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-override"],"status":"production"},"oj-css-var-override":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-override","jet-bp"],"jetver":">=9.0.0","status":"production","enabled":false},"oj-css-style-deprecated":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-deprecated"],"jetver":">=9.0.0","status":"production"},"oj-css-style-abs-units":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-bp"],"jetver":">=9.0.0","status":"production","absunits":{"all":2},"enabled":false},"oj-css-bp-float":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-bp"],"jetver":">=9.0.0","status":"beta","enabled":false},"oj-css-bp-textalign":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-bp"],"jetver":">=9.0.0","status":"beta","enabled":false},"oj-css-bp-bgcolor":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-bp"],"jetver":">=9.0.0","status":"beta","enabled":false},"oj-css-bp-border-color":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-bp"],"jetver":">=9.0.0","status":"beta","enabled":false},"oj-html-invalid-doctype":{"severity":"blocker","filetype":"html","group":["jet-html","html5"],"status":"production"},"oj-html-missing-doctype":{"severity":"blocker","runonce":"file","filetype":"html","group":["jet-html","html5"],"status":"production"},"oj-html-oj-lib":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-ko-comment":{"severity":"major","filetype":"html","group":"jet-html","status":"beta"},"oj-html-ko-databind":{"severity":"major","filetype":"html","group":"jet-html","status":"beta"},"oj-html-cdn":{"severity":"minor","filetype":"html","group":"jet-html","status":"beta","enabled":false},"oj-html-self-close":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-combo-converter":{"severity":"major","filetype":"html","group":"jet-html","jetver":"^9.2.0","status":"production"},"oj-cca-compjson-bp-obj":{"severity":"info","filetype":"json","group":["jet-cca","jet-bp"],"status":"beta"},"oj-cca-compjson-bp-ar":{"severity":"info","filetype":"json","group":["jet-cca","jet-bp"],"status":"beta"},"oj-cca-compjson-bp-jetver":{"severity":"major","filetype":"json","group":["jet-cca","jet-bp"],"status":"beta"},"oj-cca-compjson-bp-dsplyname":{"severity":"info","filetype":"json","group":["jet-cca","jet-bp"],"status":"beta"},"oj-cca-compjson-ns-reg":{"severity":"blocker","filetype":"json","group":"jet-cca","status":"production"},"oj-acc-select-aria-label":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-combobox-aria-label":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-input-aria-label":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-aria-labelledby":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-avatar-aria-role":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-aria-prop":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-film-strip-aria-label":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-js-ojcomp-deprecated":{"severity":"major","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated"],"status":"production"},"oj-ts-ojcomp-deprecated":{"severity":"major","filetype":["ts"],"group":["jet-ts","jet-deprecated"],"status":"beta","enabled":false},"oj-js-comp-meth-deprecated":{"severity":"major","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated","jet-deleted"],"status":"production"},"oj-ts-comp-meth-deprecated":{"severity":"major","filetype":["ts"],"group":["jet-ts","jet-deprecated","jet-deleted"],"status":"beta","enabled":false},"oj-js-comp-attr-deprecated":{"severity":"major","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated","jet-deleted"],"status":"production"},"oj-ts-comp-attr-deprecated":{"severity":"major","filetype":["ts"],"group":["jet-ts","jet-deprecated","jet-deleted"],"status":"beta","enabled":false},"oj-js-var-undef":{"severity":"major","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated"],"status":"production","enabled":false},"oj-js-ojcomp-new":{"severity":"major","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated"],"status":"production"},"oj-ts-ojcomp-new":{"severity":"major","filetype":["ts"],"group":["jet-ts","jet-deprecated"],"status":"beta","enabled":false},"oj-js-ojcomp-exist":{"severity":"critical","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated"],"status":"production"},"oj-ts-ojcomp-exist":{"severity":"critical","filetype":["ts"],"group":["jet-ts","jet-deprecated"],"status":"beta","enabled":false},"oj-js-poly-promise":{"severity":"critical","filetype":["js","html"],"group":["jet-js","jet-html"],"status":"production"},"oj-ts-poly-promise":{"severity":"critical","filetype":["ts"],"group":["jet-ts"],"status":"beta","enabled":false},"oj-js-no-ext-final":{"severity":"info","filetype":["js","html"],"group":["jet-js","jet-html"],"jetver":">=8.0.0","status":"beta"},"oj-js-noconsole":{"severity":"info","filetype":["js","html"],"group":["jet-js","jet-html"],"status":"production"},"oj-ts-noconsole":{"severity":"info","filetype":["ts"],"group":["jet-ts"],"status":"beta","enabled":false},"oj-json-syntax":{"severity":"critical","filetype":"json","group":"jet-json","status":"production"}}}
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
6
|
+
{"title":"JET Builtin Rules","version":"4.7.0","prefix":"JET","rules":{"oj-html-cca-tagname":{"severity":"minor","filetype":"html","group":["jet-html"],"status":"production"},"oj-html-ojtag-deprecated":{"severity":"major","filetype":"html","group":["jet-html","jet-deprecated"],"status":"production"},"oj-html-ojattr":{"severity":"critical","filetype":"html","group":"jet-html","jetver":">=6.0.0","status":"production"},"oj-html-ojattr-520":{"severity":"critical","filetype":"html","group":"jet-html","jetver":"5.2.0","status":"production"},"oj-html-ojattr-value":{"severity":"critical","filetype":"html","group":"jet-html","status":"production"},"oj-html-attr-2def":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-attr-prefix-ro":{"severity":"info","filetype":"html","group":"jet-html","status":"beta"},"oj-html-attr-prefix-expr":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-attr-json":{"severity":"critical","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojattr-deprecated":{"severity":"major","filetype":"html","group":["jet-html","jet-deprecated"],"status":"production"},"oj-html-ojattr-enum-deprecated":{"severity":"major","filetype":"html","group":["jet-html","jet-deprecated"],"status":"production"},"oj-html-5-tag-obs":{"severity":"major","filetype":"html","group":["jet-html","html5"],"status":"production"},"oj-html-5-attr-obs":{"severity":"major","filetype":"html","group":["jet-html","html5"],"status":"production"},"oj-html-ojevent":{"severity":"critical","filetype":"html","group":"jet-html","status":"production"},"oj-html-form-noflex":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-jq-databind":{"severity":"major","filetype":"html","group":"jet-html","status":"beta"},"oj-html-databind-all":{"severity":"minor","filetype":"html","group":"jet-html","status":"beta","enabled":false},"oj-html-bindif-test":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-bindforeach-data":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojslot":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-slot-name":{"severity":"critical","filetype":"html","group":"jet-html","status":"production"},"oj-html-slot-pref-content":{"severity":"minor","filetype":"html","group":"jet-html","jetver":">=10.0.0","status":"production"},"oj-html-slot-item-minmax":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-style":{"severity":"critical","filetype":"html","group":"jet-html","jetver":">=9.0.0","status":"production","enabled":false},"oj-html-stylesel":{"severity":"critical","filetype":"html","group":"jet-html","jetver":">=10.0.0","status":"production","enabled":false},"oj-html-style-deprecated":{"severity":"major","filetype":"html","group":["jet-html","jet-deprecated"],"jetver":">=9.0.0","status":"production"},"oj-html-ojstyle":{"severity":"critical","filetype":"html","group":"jet-html","jetver":">=9.0.0","status":"production","enabled":false},"oj-html-style-bp-color":{"severity":"major","filetype":"html","group":"jet-html","status":"production","enabled":false},"oj-html-style-bp-font":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"beta","enabled":false},"oj-html-style-bp-font-family":{"severity":"minor","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"production","ignore":["inherit","initial"],"enabled":false},"oj-html-style-bp-display":{"severity":"minor","filetype":"html","group":["jet-html","jet-bp"],"status":"production","enabled":false},"oj-html-style-abs-units":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-bp"],"jetver":">=9.0.0","status":"production","absunits":{"all":2},"enabled":false},"oj-html-binding-attr":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-attr-$unique":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-attr-req":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-dlg-title":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojattr-evt-syntax":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-tag-attr-noprefix":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-picker-attrs":{"jetver":">=11.0.0","severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-label-for-prefix":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojtag-globattr-noprefix":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojtag-nonglobattr-prefix":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojtag-datacmd":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojtag-datactx":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-ojtag-ns":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-wctag-id":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-wctag-for":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-wctag-packprivate":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-form-bindif":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production","enabled":false},"oj-html-file-pick-accept":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-wctag-arialabelledby":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-wctag-$props":{"severity":"blocker","filetype":"html","amd":false,"group":"jet-html","status":"production"},"oj-html-cspexpr":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-unsup-theme":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-cca-count":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-redwood-cssvars":{"severity":"major","filetype":"html","group":"jet-html","jetver":">=10.0.0","status":"production"},"oj-html-redwood-cssnovars":{"severity":"major","filetype":"html","group":"jet-html","jetver":">=10.0.0","status":"production"},"oj-css-bp-dir-flow":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"beta","enabled":false},"oj-css-style-bp-color":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"beta","enabled":false},"oj-css-style-bp-font":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"beta","enabled":false},"oj-css-style-bp-font-family":{"severity":"minor","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"production","ignore":["inherit","initial"],"enabled":false},"oj-css-style-bp-display":{"severity":"minor","filetype":["css","html"],"group":["jet-css","jet-html","jet-bp"],"status":"beta","enabled":false},"oj-css-style-override":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-override"],"status":"production"},"oj-css-var-override":{"severity":"major","filetype":["css","html"],"group":["jet-css","jet-override","jet-bp"],"jetver":">=9.0.0","status":"production","enabled":false},"oj-css-style-deprecated":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-deprecated"],"jetver":">=9.0.0","status":"production"},"oj-css-style-abs-units":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-bp"],"jetver":">=9.0.0","status":"production","absunits":{"all":2},"enabled":false},"oj-css-bp-float":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-bp"],"jetver":">=9.0.0","status":"beta","enabled":false},"oj-css-bp-textalign":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-bp"],"jetver":">=9.0.0","status":"beta","enabled":false},"oj-css-bp-border-color":{"severity":"major","filetype":["css","html"],"group":["jet-html","jet-css","jet-bp"],"jetver":">=9.0.0","status":"beta","enabled":false},"oj-html-invalid-doctype":{"severity":"blocker","filetype":"html","group":["jet-html","html5"],"status":"production"},"oj-html-missing-doctype":{"severity":"blocker","runonce":"file","filetype":"html","group":["jet-html","html5"],"status":"production"},"oj-html-oj-lib":{"severity":"major","filetype":"html","group":"jet-html","status":"production"},"oj-html-ko-comment":{"severity":"major","filetype":"html","group":"jet-html","status":"beta"},"oj-html-ko-databind":{"severity":"major","filetype":"html","group":"jet-html","status":"beta"},"oj-html-cdn":{"severity":"minor","filetype":"html","group":"jet-html","status":"beta","enabled":false},"oj-html-self-close":{"severity":"blocker","filetype":"html","group":"jet-html","status":"production"},"oj-html-combo-converter":{"severity":"major","filetype":"html","group":"jet-html","jetver":"^9.2.0","status":"production"},"oj-html-input-isodate":{"severity":"critical","filetype":"html","group":"jet-html","status":"beta"},"oj-html-dyn-form":{"severity":"blocker","filetype":"html","group":"jet-html","status":"beta","enabled":false,"inservice":false},"oj-form-maxcols":{"severity":"major","filetype":["html","json"],"group":["jet-html","jet-json"],"status":"production"},"oj-html-form-layout-maxcols":{"severity":"minor","filetype":"html","group":"jet-html","status":"production"},"oj-html-template-index":{"severity":"info","filetype":"html","group":"jet-html","jetver":">=9.0.0","status":"production"},"oj-cca-compjson-bp-obj":{"severity":"info","filetype":"json","group":["jet-cca","jet-bp"],"status":"beta"},"oj-cca-compjson-bp-ar":{"severity":"info","filetype":"json","group":["jet-cca","jet-bp"],"status":"beta"},"oj-cca-compjson-bp-jetver":{"severity":"major","filetype":"json","group":["jet-cca","jet-bp"],"status":"beta"},"oj-cca-compjson-bp-dsplyname":{"severity":"info","filetype":"json","group":["jet-cca","jet-bp"],"status":"beta"},"oj-cca-compjson-ns-reg":{"severity":"blocker","filetype":"json","group":"jet-cca","status":"production"},"oj-acc-select-aria-label":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-combobox-aria-label":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-input-aria-label":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-aria-labelledby":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-avatar-aria-role":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-aria-prop":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-acc-film-strip-aria-label":{"severity":"blocker","filetype":"html","group":"jet-aria","status":"production"},"oj-js-ojcomp-deprecated":{"severity":"major","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated"],"status":"production"},"oj-ts-ojcomp-deprecated":{"severity":"major","filetype":["ts","tsx"],"group":["jet-ts","jet-tsx","jet-deprecated"],"amd":false,"status":"beta","enabled":false},"oj-js-comp-meth-deprecated":{"severity":"major","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated","jet-deleted"],"status":"production"},"oj-ts-comp-meth-deprecated":{"severity":"major","filetype":["ts","tsx"],"group":["jet-ts","jet-tsx","jet-deprecated","jet-deleted"],"amd":false,"status":"beta","enabled":false},"oj-js-comp-attr-deprecated":{"severity":"major","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated","jet-deleted"],"status":"production"},"oj-ts-comp-attr-deprecated":{"severity":"major","filetype":["ts","tsx"],"group":["jet-ts","jet-tsx","jet-deprecated","jet-deleted"],"amd":false,"status":"beta","enabled":false},"oj-js-var-undef":{"severity":"major","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated"],"status":"production","enabled":false},"oj-js-ojcomp-new":{"severity":"major","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated"],"status":"production"},"oj-ts-ojcomp-new":{"severity":"major","filetype":["ts","tsx"],"group":["jet-ts","jet-tsx","jet-deprecated"],"amd":false,"status":"beta","enabled":false},"oj-js-ojcomp-exist":{"severity":"critical","filetype":["js","html"],"group":["jet-js","jet-html","jet-deprecated"],"status":"production"},"oj-ts-ojcomp-exist":{"severity":"critical","filetype":["ts","tsx"],"group":["jet-ts","jet-tsx","jet-deprecated"],"amd":false,"status":"beta","enabled":false},"oj-js-poly-promise":{"severity":"critical","filetype":["js","html"],"group":["jet-js","jet-html"],"status":"production"},"oj-ts-poly-promise":{"severity":"critical","filetype":["ts","tsx"],"group":["jet-ts","jet-tsx"],"amd":false,"status":"beta","enabled":false},"oj-js-no-ext-final":{"severity":"info","filetype":["js","html"],"group":["jet-js","jet-html"],"jetver":">=8.0.0","status":"beta"},"oj-ts-no-ext-final":{"severity":"info","filetype":["ts","tsx"],"group":["jet-ts","jet-tsx"],"jetver":">=8.0.0","amd":false,"status":"beta","enabled":false},"oj-js-noconsole":{"severity":"info","filetype":["js","html"],"group":["jet-js","jet-html"],"status":"production"},"oj-ts-noconsole":{"severity":"info","filetype":["ts","tsx"],"group":["jet-ts","jet-tsx"],"amd":false,"status":"beta","enabled":false},"oj-json-syntax":{"severity":"critical","filetype":"json","group":"jet-json","status":"production"}}}
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"themes": {
|
|
20
20
|
"$ref": "#/definitions/extensionThemesDef"
|
|
21
|
+
},
|
|
22
|
+
"webelement": {
|
|
23
|
+
"$ref": "#/definitions/extensionWebElementExceptionStatusDef"
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
},
|
|
@@ -42,7 +45,7 @@
|
|
|
42
45
|
"type": "array",
|
|
43
46
|
"items": {
|
|
44
47
|
"type": "string",
|
|
45
|
-
"enum": ["Alta", "Redwood"]
|
|
48
|
+
"enum": ["Alta", "Redwood", "Stable"]
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
}
|
|
@@ -54,6 +57,9 @@
|
|
|
54
57
|
"vbdt": {
|
|
55
58
|
"type": "object",
|
|
56
59
|
"properties" : {
|
|
60
|
+
"audits": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
57
63
|
"defaultColumns": {
|
|
58
64
|
"type": "number",
|
|
59
65
|
"multipleOf": 1.0,
|
|
@@ -96,6 +102,9 @@
|
|
|
96
102
|
},
|
|
97
103
|
"themes": {
|
|
98
104
|
"$ref": "#/definitions/extensionThemesDef"
|
|
105
|
+
},
|
|
106
|
+
"webelement": {
|
|
107
|
+
"$ref": "#/definitions/extensionWebElementExceptionStatusDef"
|
|
99
108
|
}
|
|
100
109
|
}
|
|
101
110
|
},
|
|
@@ -106,6 +115,9 @@
|
|
|
106
115
|
"catalog": {
|
|
107
116
|
"type": "object",
|
|
108
117
|
"properties": {
|
|
118
|
+
"audits": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
109
121
|
"category": {
|
|
110
122
|
"type": "string"
|
|
111
123
|
},
|
|
@@ -154,6 +166,34 @@
|
|
|
154
166
|
},
|
|
155
167
|
"version": {
|
|
156
168
|
"$ref": "#/definitions/semverRangeDef"
|
|
169
|
+
},
|
|
170
|
+
"docUrl": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"format": "uri"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
"extensionWebElementExceptionStatusDef": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"properties": {
|
|
182
|
+
"exceptionStatus": {
|
|
183
|
+
"type": "array",
|
|
184
|
+
"items": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"properties": {
|
|
187
|
+
"type": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"enum": ["deprecated", "unsupported"]
|
|
190
|
+
},
|
|
191
|
+
"since": {
|
|
192
|
+
"$ref": "#/definitions/semverExactDef"
|
|
193
|
+
},
|
|
194
|
+
"description": {
|
|
195
|
+
"type": "string"
|
|
196
|
+
}
|
|
157
197
|
}
|
|
158
198
|
}
|
|
159
199
|
}
|
|
@@ -749,6 +789,10 @@
|
|
|
749
789
|
"help": {
|
|
750
790
|
"type": "string"
|
|
751
791
|
},
|
|
792
|
+
"scope": {
|
|
793
|
+
"type": "string",
|
|
794
|
+
"enum": ["public", "protected"]
|
|
795
|
+
},
|
|
752
796
|
"status": {
|
|
753
797
|
"$ref": "#/definitions/statusDef"
|
|
754
798
|
},
|
|
@@ -798,6 +842,10 @@
|
|
|
798
842
|
"help": {
|
|
799
843
|
"type": "string"
|
|
800
844
|
},
|
|
845
|
+
"scope": {
|
|
846
|
+
"type": "string",
|
|
847
|
+
"enum": ["public", "protected"]
|
|
848
|
+
},
|
|
801
849
|
"status": {
|
|
802
850
|
"$ref": "#/definitions/statusDef"
|
|
803
851
|
},
|
|
@@ -833,6 +881,10 @@
|
|
|
833
881
|
"help": {
|
|
834
882
|
"type": "string"
|
|
835
883
|
},
|
|
884
|
+
"scope": {
|
|
885
|
+
"type": "string",
|
|
886
|
+
"enum": ["public", "protected"]
|
|
887
|
+
},
|
|
836
888
|
"status": {
|
|
837
889
|
"$ref": "#/definitions/statusDef"
|
|
838
890
|
},
|
|
@@ -879,6 +931,10 @@
|
|
|
879
931
|
"help": {
|
|
880
932
|
"type": "string"
|
|
881
933
|
},
|
|
934
|
+
"scope": {
|
|
935
|
+
"type": "string",
|
|
936
|
+
"enum": ["public", "protected"]
|
|
937
|
+
},
|
|
882
938
|
"status": {
|
|
883
939
|
"$ref": "#/definitions/statusDef"
|
|
884
940
|
},
|
|
@@ -959,6 +1015,45 @@
|
|
|
959
1015
|
}
|
|
960
1016
|
},
|
|
961
1017
|
"additionalProperties": false
|
|
1018
|
+
},
|
|
1019
|
+
|
|
1020
|
+
"styleVariableDef": {
|
|
1021
|
+
"type": "object",
|
|
1022
|
+
"properties": {
|
|
1023
|
+
"name": {
|
|
1024
|
+
"type": "string"
|
|
1025
|
+
},
|
|
1026
|
+
"displayName": {
|
|
1027
|
+
"type": "string"
|
|
1028
|
+
},
|
|
1029
|
+
"description": {
|
|
1030
|
+
"type": "string"
|
|
1031
|
+
},
|
|
1032
|
+
"extension": {
|
|
1033
|
+
"$ref": "#/definitions/extensionDef"
|
|
1034
|
+
},
|
|
1035
|
+
"formats": {
|
|
1036
|
+
"type": "array",
|
|
1037
|
+
"items": {
|
|
1038
|
+
"type": "string",
|
|
1039
|
+
"enum": ["color", "font_weight", "length", "number", "percentage", "rgb_values", "time"]
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
"help": {
|
|
1043
|
+
"type": "string"
|
|
1044
|
+
},
|
|
1045
|
+
"keywords": {
|
|
1046
|
+
"type": "array",
|
|
1047
|
+
"items": {
|
|
1048
|
+
"type": "string"
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
"status": {
|
|
1052
|
+
"$ref": "#/definitions/statusDef"
|
|
1053
|
+
}
|
|
1054
|
+
},
|
|
1055
|
+
"required": ["name"],
|
|
1056
|
+
"additionalProperties": false
|
|
962
1057
|
}
|
|
963
1058
|
|
|
964
1059
|
},
|
|
@@ -1105,13 +1200,19 @@
|
|
|
1105
1200
|
"$ref": "#/definitions/styleClassItemDef"
|
|
1106
1201
|
}
|
|
1107
1202
|
},
|
|
1203
|
+
"styleVariables": {
|
|
1204
|
+
"type": "array",
|
|
1205
|
+
"items": {
|
|
1206
|
+
"$ref": "#/definitions/styleVariableDef"
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1108
1209
|
"subcomponentType": {
|
|
1109
1210
|
"type": "string",
|
|
1110
1211
|
"enum": ["data", "patternImpl", "packPrivate"]
|
|
1111
1212
|
},
|
|
1112
1213
|
"type": {
|
|
1113
1214
|
"type": "string",
|
|
1114
|
-
"enum": ["composite", "core", "pack", "reference", "resource", "demo", "vbcs-pattern", "vbcs-template", "vbcs-action"]
|
|
1215
|
+
"enum": ["composite", "core", "pack", "reference", "resource", "demo", "stripe", "vbcs-pattern", "vbcs-template", "vbcs-action"]
|
|
1115
1216
|
}
|
|
1116
1217
|
},
|
|
1117
1218
|
"patternProperties": {
|
|
@@ -1253,6 +1354,25 @@
|
|
|
1253
1354
|
}
|
|
1254
1355
|
},
|
|
1255
1356
|
|
|
1357
|
+
{
|
|
1358
|
+
"$comment": "if the component type is explicitly set to 'stripe', then 'pack' property is invalid (stripe components are always singletons)",
|
|
1359
|
+
"if": {
|
|
1360
|
+
"properties": {
|
|
1361
|
+
"type": {
|
|
1362
|
+
"const": "stripe"
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
"required": ["type"]
|
|
1366
|
+
},
|
|
1367
|
+
"then": {
|
|
1368
|
+
"propertyNames": {
|
|
1369
|
+
"not": {
|
|
1370
|
+
"enum": ["pack"]
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
},
|
|
1375
|
+
|
|
1256
1376
|
{
|
|
1257
1377
|
"$comment": "if the component type is explicitly set to either 'reference', 'vbcs-pattern', 'vbcs-template', or 'vbcs-action', then the 'jetVersion' property is invalid",
|
|
1258
1378
|
"if": {
|