@oracle/oraclejet-audit 10.1.0 → 12.0.0
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/LICENSE.md +1 -1
- 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/AstMd.js +6 -0
- 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 +6 -1
- 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/Md.js +6 -0
- 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 +6 -1
- package/lib/Registry.js +6 -1
- package/lib/Reporter.js +6 -1
- 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/builtinpacks.js +6 -0
- package/lib/cliStats.js +6 -0
- package/lib/clone.js +6 -1
- package/lib/cmdline.js +6 -1
- package/lib/colors.js +6 -1
- package/lib/defaults.js +6 -0
- package/lib/deflist.js +6 -0
- package/lib/dislist.js +6 -0
- package/lib/exportRules.js +6 -0
- package/lib/extends.js +6 -0
- package/lib/filetypes.js +6 -0
- package/lib/grouplist.js +6 -0
- package/lib/groups.js +6 -0
- package/lib/help.js +6 -1
- package/lib/jetver.js +6 -1
- package/lib/macros.js +6 -0
- package/lib/manual.js +6 -1
- 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 +5 -0
- 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 +6 -1
- package/lib/scopewalker.js +6 -0
- package/lib/spinner.js +6 -1
- package/lib/spinnernoop.js +5 -0
- package/lib/tabs.js +5 -0
- package/libext/expparser.js +6 -1
- package/meta/11.0.0/jetauditmeta.js +9 -0
- package/meta/11.1.0/jetauditmeta.js +9 -0
- package/meta/12.0.0/jetauditmeta.js +9 -0
- package/meta/metaverlist.json +1 -1
- package/package.json +72 -69
- 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-css-oj-complete.js +6 -0
- 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-markdown-link.js +6 -0
- 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-vcomponent-jetversion.js +6 -0
- package/rulepacks/jetwc/jetwc-vcomponent-loader.js +6 -0
- package/rulepacks/jetwc/jetwc-vcomponent-version.js +6 -0
- 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/jetwcutils-auditComponentCacheManager.js +6 -0
- package/rulepacks/jetwc-lib/jetwcutils-commonListenerImpls.js +6 -0
- package/rulepacks/jetwc-lib/jetwcutils-componentAuditUtils.js +6 -0
- package/rulepacks/jetwc-lib/jetwcutils-componentFinder.js +6 -0
- package/rulepacks/jetwc-lib/jetwcutils-preCompiler.js +6 -0
- package/rulepacks/jetwc-lib/jetwcutils-tsxUtils.js +6 -0
- package/rulepacks/jetwco/jetwco-bootstrap.js +6 -1
- package/rulepacks/jetwco/jetwco-cacc-auditConstraints.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-dependencies.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-dynamicSlots.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-eventBubbles.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-eventCancelable.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-eventPayload.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-events.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-helpers.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-jetVer.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-methodParamTypes.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-methodParams.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-methodReturnType.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-methods.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-packBundle.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-packBundleContent.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-packContent.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-properties.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyDefault.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyEnumeration.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyReadOnly.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyRequired.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyType.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-propertyWriteback.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-publicModules.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-slotDataVariable.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-slotDataVariableType.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-slots.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-styleClasses.js +6 -0
- package/rulepacks/jetwco/jetwco-cacc-styleVariables.js +6 -0
- 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-api-controlled-changes.js +6 -0
- package/rulepacks/jetwco/jetwco-component-cdn.js +6 -1
- package/rulepacks/jetwco/jetwco-description-standards.js +6 -0
- package/rulepacks/jetwco/jetwco-displayname-standards.js +6 -0
- 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/{tests/rules/oj-js-diagnose/js_FAIL_1.js → rulepacks/wdt/msgid.json} +3 -9
- package/rulepacks/wdt/rules.json +6 -0
- package/rulepacks/wdt/wd-driver-sleep.js +6 -0
- package/rulepacks/wdt/wd-xpath.js +6 -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 +6 -1
- package/rules/jet/oj-acc-avatar-aria-role.js +6 -1
- package/rules/jet/oj-acc-combobox-aria-label.js +6 -1
- package/rules/jet/oj-acc-film-strip-aria-label.js +6 -1
- 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 +6 -1
- package/rules/jet/oj-css-style-bp-color.js +5 -0
- 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 -1
- 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-alta-deprecated.js +6 -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 +6 -1
- package/rules/jet/oj-html-bindif-test.js +6 -1
- package/rules/jet/oj-html-binding-attr.js +6 -1
- 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 +6 -1
- package/rules/jet/oj-html-file-pick-accept.js +6 -1
- package/rules/jet/oj-html-form-bindif.js +6 -1
- package/rules/jet/oj-html-form-layout-maxcols.js +6 -1
- 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 +6 -1
- 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-msgs-cat-text.js +6 -0
- package/rules/jet/oj-html-no-style-tag.js +6 -0
- package/rules/jet/oj-html-notag-style.js +6 -0
- 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 +6 -1
- 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 +6 -1
- 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 +6 -1
- package/rules/jet/oj-html-ojtag-id.js +5 -0
- package/rules/jet/oj-html-ojtag-nonglobattr-prefix.js +6 -1
- 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 +6 -1
- 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 +6 -1
- package/rules/jet/oj-html-template-index.js +6 -1
- 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 +6 -1
- package/rules/jet/oj-html-wctag-nested.js +6 -0
- package/rules/jet/oj-html-wctag-packprivate.js +6 -0
- package/rules/jet/oj-js-comp-attr-deprecated.js +6 -1
- package/rules/jet/oj-js-comp-meth-deprecated.js +6 -1
- 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 +5 -0
- package/rules/jet/oj-ts-comp-attr-deprecated.js +6 -1
- package/rules/jet/oj-ts-comp-meth-deprecated.js +6 -1
- 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 +125 -2
- package/src/JafCore.js +6 -1
- package/types/index.d.ts +175 -37
- package/lib/stats.js +0 -1
- package/rulepacks/jetwc-lib/component-audit-utils.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-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,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) , 2021, Oracle and/or its affiliates.
|
|
4
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
5
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
Copyright (c) 2015, 2019, Oracle and/or its affiliates.
|
|
10
|
-
The Universal Permissive License (UPL), Version 1.0
|
|
11
|
-
*/
|
|
12
|
-
'use strict';
|
|
13
|
-
define(
|
|
14
|
-
['knockout', 'ojL10n!./resources/nls/audit-singleton-2-strings', 'audit-singleton-1/loader'], function (ko, componentStrings) {
|
|
15
|
-
|
|
16
|
-
function ExampleComponentModel(context) {
|
|
17
|
-
var self = this;
|
|
18
|
-
|
|
19
|
-
//At the start of your viewModel constructor
|
|
20
|
-
var busyContext = oj.Context.getContext(context.element).getBusyContext();
|
|
21
|
-
var options = { "description": "CCA Startup - Waiting for data" };
|
|
22
|
-
self.busyResolve = busyContext.addBusyState(options);
|
|
23
|
-
|
|
24
|
-
self.composite = context.element;
|
|
25
|
-
|
|
26
|
-
//Example observable
|
|
27
|
-
self.messageText = ko.observable('Hello from Example Component');
|
|
28
|
-
self.properties = context.properties;
|
|
29
|
-
self.res = componentStrings['audit-singleton-2'];
|
|
30
|
-
// Example for parsing context properties
|
|
31
|
-
// if (context.properties.name) {
|
|
32
|
-
// parse the context properties here
|
|
33
|
-
// }
|
|
34
|
-
|
|
35
|
-
//Once all startup and async activities have finished, relocate if there are any async activities
|
|
36
|
-
self.busyResolve();
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
//Lifecycle methods - uncomment and implement if necessary
|
|
40
|
-
//ExampleComponentModel.prototype.activated = function(context){
|
|
41
|
-
//};
|
|
42
|
-
|
|
43
|
-
//ExampleComponentModel.prototype.connected = function(context){
|
|
44
|
-
//};
|
|
45
|
-
|
|
46
|
-
//ExampleComponentModel.prototype.bindingsApplied = function(context){
|
|
47
|
-
//};
|
|
48
|
-
|
|
49
|
-
//ExampleComponentModel.prototype.disconnect = function(context){
|
|
50
|
-
//};
|
|
51
|
-
|
|
52
|
-
//ExampleComponentModel.prototype.propertyChanged = function(context){
|
|
53
|
-
//};
|
|
54
|
-
|
|
55
|
-
return ExampleComponentModel;
|
|
56
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "audit-singleton-2",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"type": "composite",
|
|
5
|
-
"jetVersion": "^7.1.0",
|
|
6
|
-
"displayName": "A user friendly, translatable name of the component.",
|
|
7
|
-
"description": "A translatable high-level description for the component.",
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"audit-singleton-1": "1.0.0"
|
|
10
|
-
},
|
|
11
|
-
"properties": {},
|
|
12
|
-
"methods": {},
|
|
13
|
-
"events": {},
|
|
14
|
-
"slots": {}
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) , 2021, Oracle and/or its affiliates.
|
|
4
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
5
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
Copyright (c) 2015, 2019, Oracle and/or its affiliates.
|
|
10
|
-
The Universal Permissive License (UPL), Version 1.0
|
|
11
|
-
*/
|
|
12
|
-
define(['ojs/ojcomposite', 'text!./audit-singleton-2-view.html', './audit-singleton-2-viewModel', 'text!./component.json', 'css!./audit-singleton-2-styles'],
|
|
13
|
-
function(Composite, view, viewModel, metadata) {
|
|
14
|
-
Composite.register('audit-singleton-2', {
|
|
15
|
-
view: view,
|
|
16
|
-
viewModel: viewModel,
|
|
17
|
-
metadata: JSON.parse(metadata)
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
);
|
package/tests/rules/pack-compjson/audit-singleton-2/resources/nls/audit-singleton-2-strings.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) , 2021, Oracle and/or its affiliates.
|
|
4
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
5
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
Copyright (c) 2015, 2019, Oracle and/or its affiliates.
|
|
10
|
-
The Universal Permissive License (UPL), Version 1.0
|
|
11
|
-
*/
|
|
12
|
-
define({
|
|
13
|
-
"root": {
|
|
14
|
-
"audit-singleton-2" : {
|
|
15
|
-
"sampleString": "The strings file can be used to manage translatable resources"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
});
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) , 2021, Oracle and/or its affiliates.
|
|
4
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
5
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright (c) 2014, 2019, 2020, Oracle and/or its affiliates.
|
|
11
|
-
* The Universal Permissive License (UPL), Version 1.0
|
|
12
|
-
*/
|
|
13
|
-
function foo()
|
|
14
|
-
{
|
|
15
|
-
var elem, s ;
|
|
16
|
-
var foo = function() {} ;
|
|
17
|
-
var foox = () => {/* a function */ } ;
|
|
18
|
-
|
|
19
|
-
elem.innerHTML = "Hello world" ; // setter
|
|
20
|
-
elem.innerHTML = "Hello world" ; // setter @HTMLUpdateOK
|
|
21
|
-
elem.innerHTML = "" // setter @HTMLUpdateOK
|
|
22
|
-
s = elem.innerHTML ; // getter
|
|
23
|
-
|
|
24
|
-
s = (x > 42)? "Hello Universe" : elem.innerHTML ;
|
|
25
|
-
s = (x > 42)? elem.innerHTML : "Hello Universe" ;
|
|
26
|
-
s = (x > 42)? ((x > 60)? elem.innerHTML : "Hello To all") : "Hello Universe" ;
|
|
27
|
-
s = (x > 42)? "Hello Universe" : (elem.innerHTML = "What") ;
|
|
28
|
-
|
|
29
|
-
s = (x > 42)? "Hello Universe" : elem.html() ;
|
|
30
|
-
s = (x > 42)? elem.html() : "Hello Universe" ;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
elem.outerHTML = "Hello world" ; // setter
|
|
34
|
-
s = elem.outerHTML ; // getter
|
|
35
|
-
|
|
36
|
-
document.write("whatever") ;
|
|
37
|
-
document.writeln("whatever") ;
|
|
38
|
-
document.writeln("whatever") ; // @HTMLUpdateOK
|
|
39
|
-
document.writeln("whatever") ; // @HTMLUpdateReview
|
|
40
|
-
|
|
41
|
-
setTimeout() ;
|
|
42
|
-
setTimeout(function() { }, 1000) ; // ok
|
|
43
|
-
setTimeout(foox, 1000) ; // ok
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
setInterval(foo, 1000) ; // ok
|
|
47
|
-
setInterval(foo2, 1000) ; // ok
|
|
48
|
-
setInterval((a) => console.log(a), 1000) ; // ok
|
|
49
|
-
setInterval(foox, 1000) ; // ok
|
|
50
|
-
setInterval(foo3, 1000) ; // fail
|
|
51
|
-
|
|
52
|
-
setTimeout("potentiallyUnsafeJsEval", 1000) ;
|
|
53
|
-
setInterval(this.document.write("whatever"), 1000) ;
|
|
54
|
-
|
|
55
|
-
var n = Math.random() ;
|
|
56
|
-
|
|
57
|
-
eval(document.innerHTML = "badStuff") ;
|
|
58
|
-
|
|
59
|
-
var j = document.createElement("oj-button") ;
|
|
60
|
-
var scriptDom = document.createElement("script") ;
|
|
61
|
-
|
|
62
|
-
scriptDom('src', "http://example.com/site.js") ;
|
|
63
|
-
|
|
64
|
-
document.head.appendChild(scriptDom) ;
|
|
65
|
-
document.appendChild(scriptDom) ;
|
|
66
|
-
|
|
67
|
-
if (window.XMLHttpRequest) {
|
|
68
|
-
// code for modern browsers
|
|
69
|
-
xmlhttp = new XMLHttpRequest();
|
|
70
|
-
} else {
|
|
71
|
-
// code for old IE browsers
|
|
72
|
-
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
elem = document.querySelector("button");
|
|
77
|
-
elem.setAttribute("bgcolor", "red");
|
|
78
|
-
elem.setAttribute("name", "helloButton");
|
|
79
|
-
editButton.setAttribute('onClick', editSection('id'));
|
|
80
|
-
|
|
81
|
-
elem.html() ;
|
|
82
|
-
elem.outerHTML = elem.html() ;
|
|
83
|
-
elem.outerHTML = elem.html().prepend() ;
|
|
84
|
-
|
|
85
|
-
elem = elem.prependTo() ;
|
|
86
|
-
elem = elem.before() ;
|
|
87
|
-
elem = elem.after() ;
|
|
88
|
-
elem = elem.insertBefore() ;
|
|
89
|
-
elem = elem.insertAfter() ;
|
|
90
|
-
elem = elem.append() ;
|
|
91
|
-
elem = elem.appendTo() ;
|
|
92
|
-
elem = elem.wrap() ;
|
|
93
|
-
elem = elem.wrapAll() ;
|
|
94
|
-
elem = elem.wrapInner() ;
|
|
95
|
-
elem = elem.replaceAll() ; // @HTMLUpdateReview
|
|
96
|
-
elem = elem.replaceWith() ;
|
|
97
|
-
|
|
98
|
-
elem // @XssFalsePositive
|
|
99
|
-
=
|
|
100
|
-
elem
|
|
101
|
-
.replaceWith() ; // @HTMLUpdateOK
|
|
102
|
-
|
|
103
|
-
elem // @HTMLUpdateReview
|
|
104
|
-
=
|
|
105
|
-
elem // @XSSFalsePositive
|
|
106
|
-
|
|
107
|
-
.replaceWith() ;
|
|
108
|
-
|
|
109
|
-
} ;
|
|
110
|
-
|
|
111
|
-
function foo2()
|
|
112
|
-
{
|
|
113
|
-
} ;
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) , 2021, Oracle and/or its affiliates.
|
|
4
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
5
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright (c) 2014, 2019, Oracle and/or its affiliates.
|
|
11
|
-
* The Universal Permissive License (UPL), Version 1.0
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
// Source Anand Nath
|
|
15
|
-
function foo()
|
|
16
|
-
{
|
|
17
|
-
var elem, s, value = "Hello Universe";
|
|
18
|
-
|
|
19
|
-
//////////////////////////////////
|
|
20
|
-
// Lines that should be flagged //
|
|
21
|
-
//////////////////////////////////
|
|
22
|
-
|
|
23
|
-
elem.innerHTML = "Hello world" ;
|
|
24
|
-
elem.innerHTML = value ;
|
|
25
|
-
s = (x > 42)? "Hello Universe" : (elem.innerHTML = "What") ;
|
|
26
|
-
|
|
27
|
-
elem.outerHTML = "Hello world" ;
|
|
28
|
-
elem.outerHTML = value ;
|
|
29
|
-
elem.outerHTML = elem.html() ;
|
|
30
|
-
|
|
31
|
-
document.write("whatever") ;
|
|
32
|
-
document.writeln("whatever") ;
|
|
33
|
-
|
|
34
|
-
elem.html("Hello world");
|
|
35
|
-
elem.html(value);
|
|
36
|
-
|
|
37
|
-
elem.prepend("Hello world");
|
|
38
|
-
elem.prepend(value);
|
|
39
|
-
|
|
40
|
-
elem.prependTo("Hello world");
|
|
41
|
-
elem.prependTo(value);
|
|
42
|
-
|
|
43
|
-
elem.before("Hello world");
|
|
44
|
-
elem.before(value);
|
|
45
|
-
|
|
46
|
-
elem.insertBefore("Hello world");
|
|
47
|
-
elem.insertBefore(value);
|
|
48
|
-
|
|
49
|
-
elem.after("Hello world");
|
|
50
|
-
elem.after(value);
|
|
51
|
-
|
|
52
|
-
elem.insertAfter("Hello world");
|
|
53
|
-
elem.insertAfter(value);
|
|
54
|
-
|
|
55
|
-
elem.append("Hello world");
|
|
56
|
-
elem.append(value);
|
|
57
|
-
|
|
58
|
-
elem.appendTo("Hello world");
|
|
59
|
-
elem.appendTo(value);
|
|
60
|
-
|
|
61
|
-
elem.wrap("Hello world");
|
|
62
|
-
elem.wrap(value);
|
|
63
|
-
|
|
64
|
-
elem.wrapAll("Hello world");
|
|
65
|
-
elem.wrapAll(value);
|
|
66
|
-
|
|
67
|
-
elem.wrapInner("Hello world");
|
|
68
|
-
elem.wrapInner(value);
|
|
69
|
-
|
|
70
|
-
elem.replaceAll("Hello world");
|
|
71
|
-
elem.replaceAll(value);
|
|
72
|
-
|
|
73
|
-
elem.replaceWith("Hello world");
|
|
74
|
-
elem.replaceWith(value);
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// Known safe setAttribute usages are:
|
|
78
|
-
// align, alink, alt, bgcolor, border, cellpadding, cellspacing, class, color,
|
|
79
|
-
// cols, colspan, coords, dir, face, height, hspace, ismap, lang, marginheight, marginwidth,
|
|
80
|
-
// multiple, nohref, noresize, noshade, nowrap, ref, rel, rev, rows, rowspan, scrolling, shape,
|
|
81
|
-
// span, summary, tabindex, title, usemap, valign, value, vlink, vspace, width
|
|
82
|
-
// Also skip data-* that are ojet internal
|
|
83
|
-
// Anything other than this should be flagged.
|
|
84
|
-
// Keep the list flexible so that new keywords that are safe can be added to this list easily
|
|
85
|
-
elem = document.querySelector("button");
|
|
86
|
-
elem.setAttribute("name", "helloButton");
|
|
87
|
-
elem.setAttribute('onClick', editSection('id'));
|
|
88
|
-
elem.setAttribute('style', "color:red");
|
|
89
|
-
elem.setAttribute('onclick', "potentiallyUnsafeJsEval");
|
|
90
|
-
elem.setAttribute('onblur', "potentiallyUnsafeJsEval");
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
// Known safe attr usages are:
|
|
94
|
-
// align, alink, alt, bgcolor, border, cellpadding, cellspacing, class, color,
|
|
95
|
-
// cols, colspan, coords, dir, face, height, hspace, ismap, lang, marginheight, marginwidth,
|
|
96
|
-
// multiple, nohref, noresize, noshade, nowrap, ref, rel, rev, rows, rowspan, scrolling, shape,
|
|
97
|
-
// span, summary, tabindex, title, usemap, valign, value, vlink, vspace, width
|
|
98
|
-
// Also skip data-* that are ojet internal
|
|
99
|
-
// Anything other than this should be flagged.
|
|
100
|
-
// Keep the list flexible so that new keywords that are safe can be added to this list easily
|
|
101
|
-
elem.attr("name", "helloButton");
|
|
102
|
-
elem.attr('onClick', editSection('id'));
|
|
103
|
-
elem.attr('onclick', "potentiallyUnsafeJsEval");
|
|
104
|
-
elem.attr('style', "color:red");
|
|
105
|
-
elem.attr('onblur', "potentiallyUnsafeJsEval");
|
|
106
|
-
|
|
107
|
-
eval(document.innerHTML = "badStuff") ;
|
|
108
|
-
eval("potentiallyUnsafeJsEval");
|
|
109
|
-
|
|
110
|
-
var sum = new Function('a', 'b', 'return a + b');
|
|
111
|
-
|
|
112
|
-
setTimeout("potentiallyUnsafeJsEvaled", 100);
|
|
113
|
-
window.setTimeout("potentiallyUnsafeJsEvaled", 100);
|
|
114
|
-
window.setInterval("potentiallyUnsafeJsEval", 1000) ;
|
|
115
|
-
setInterval(this.document.write("whatever"), 1000) ;
|
|
116
|
-
|
|
117
|
-
var n = Math.random() ;
|
|
118
|
-
n = Math.random() ; //@HTMLUpdateOK
|
|
119
|
-
n = Math.random() ; //@RandomNumberOK
|
|
120
|
-
n = Math.random() ; //@RandomNumberOk
|
|
121
|
-
|
|
122
|
-
var scriptTagName = 'script';
|
|
123
|
-
var scriptTagName2 ;
|
|
124
|
-
scriptTagName2 = "script" ;
|
|
125
|
-
|
|
126
|
-
var scriptDom = document.createElement("script") ;
|
|
127
|
-
var scriptDom = document.createElement("script") ; //@HTMLUpdateOK
|
|
128
|
-
|
|
129
|
-
if (window.XMLHttpRequest) {
|
|
130
|
-
// code for modern browsers
|
|
131
|
-
xmlhttp = new XMLHttpRequest();
|
|
132
|
-
} else {
|
|
133
|
-
// code for old IE browsers
|
|
134
|
-
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
var x = document.cookie;
|
|
138
|
-
document.cookie = "username=John Doe";
|
|
139
|
-
|
|
140
|
-
elem
|
|
141
|
-
=
|
|
142
|
-
elem // @HTMLUpdateOK
|
|
143
|
-
.replaceWith() ;
|
|
144
|
-
|
|
145
|
-
elem
|
|
146
|
-
=
|
|
147
|
-
elem // @HTMLUpdateReview
|
|
148
|
-
|
|
149
|
-
.replaceWith() ;
|
|
150
|
-
|
|
151
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) , 2021, Oracle and/or its affiliates.
|
|
4
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
5
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright (c) 2014, 2019, Oracle and/or its affiliates.
|
|
11
|
-
* The Universal Permissive License (UPL), Version 1.0
|
|
12
|
-
*/
|
|
13
|
-
function foo()
|
|
14
|
-
{
|
|
15
|
-
var elem, s, value = "Hello Universe";
|
|
16
|
-
var foo = function() {}
|
|
17
|
-
|
|
18
|
-
//////////////////////////////////////
|
|
19
|
-
// Lines that should not be flagged //
|
|
20
|
-
//////////////////////////////////////
|
|
21
|
-
|
|
22
|
-
elem.innerHTML = "Hello world" ; //@HTMLUpdateOK
|
|
23
|
-
elem.innerHTML = value ; //@HTMLUpdateOK
|
|
24
|
-
elem.innerHTML = "";
|
|
25
|
-
elem.innerHTML = '';
|
|
26
|
-
|
|
27
|
-
s = elem.innerHTML ; // getter
|
|
28
|
-
s = (x > 42)? "Hello Universe" : elem.innerHTML ;
|
|
29
|
-
s = (x > 42)? elem.innerHTML : "Hello Universe" ;
|
|
30
|
-
s = (x > 42)? ((x > 60)? elem.innerHTML : "Hello To all") : "Hello Universe" ;
|
|
31
|
-
// s = (x > 42)? "Hello Universe" : (elem.innerHTML = "What") ;
|
|
32
|
-
var foo = function() {
|
|
33
|
-
return elem.innerHTML;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
value = elem.html() ; // getter
|
|
37
|
-
|
|
38
|
-
document.write("whatever") ; //@HTMLUpdateOK
|
|
39
|
-
document.writeln("whatever") ; //@HTMLUpdateOK
|
|
40
|
-
|
|
41
|
-
elem.html("Hello world"); //@HTMLUpdateOK
|
|
42
|
-
elem.html(value); //@HTMLUpdateOK
|
|
43
|
-
|
|
44
|
-
elem.prepend("Hello world"); //@HTMLUpdateOK
|
|
45
|
-
elem.prepend(value); //@HTMLUpdateOK
|
|
46
|
-
|
|
47
|
-
elem.prependTo("Hello world"); //@HTMLUpdateOK
|
|
48
|
-
elem.prependTo(value); //@HTMLUpdateOK
|
|
49
|
-
|
|
50
|
-
elem.before("Hello world"); //@HTMLUpdateOK
|
|
51
|
-
elem.before(value); //@HTMLUpdateOK
|
|
52
|
-
|
|
53
|
-
elem.insertBefore("Hello world"); //@HTMLUpdateOK
|
|
54
|
-
elem.insertBefore(value); //@HTMLUpdateOK
|
|
55
|
-
|
|
56
|
-
elem.after("Hello world"); //@HTMLUpdateOK
|
|
57
|
-
elem.after(value); //@HTMLUpdateOK
|
|
58
|
-
|
|
59
|
-
elem.insertAfter("Hello world"); //@HTMLUpdateOK
|
|
60
|
-
elem.insertAfter(value); //@HTMLUpdateOK
|
|
61
|
-
|
|
62
|
-
elem.append("Hello world"); //@HTMLUpdateOK
|
|
63
|
-
elem.append(value); //@HTMLUpdateOK
|
|
64
|
-
|
|
65
|
-
elem.appendTo("Hello world"); //@HTMLUpdateOK
|
|
66
|
-
elem.appendTo(value); //@HTMLUpdateOK
|
|
67
|
-
|
|
68
|
-
elem.wrap("Hello world"); //@HTMLUpdateOK
|
|
69
|
-
elem.wrap(value); //@HTMLUpdateOK
|
|
70
|
-
|
|
71
|
-
elem.wrapAll("Hello world"); //@HTMLUpdateOK
|
|
72
|
-
elem.wrapAll(value); //@HTMLUpdateOK
|
|
73
|
-
|
|
74
|
-
elem.wrapInner("Hello world"); //@HTMLUpdateOK
|
|
75
|
-
elem.wrapInner(value); //@HTMLUpdateOK
|
|
76
|
-
|
|
77
|
-
elem.replaceAll("Hello world"); //@HTMLUpdateOK
|
|
78
|
-
elem.replaceAll(value); //@HTMLUpdateOK
|
|
79
|
-
|
|
80
|
-
elem.replaceWith("Hello world"); //@HTMLUpdateOK
|
|
81
|
-
elem.replaceWith(value); //@HTMLUpdateOK
|
|
82
|
-
|
|
83
|
-
elem.setAttribute("name", "helloButton");
|
|
84
|
-
elem.setAttribute('onClick', editSection('id')); //@HTMLUpdateOK
|
|
85
|
-
elem.setAttribute('style', "color:red"); //@HTMLUpdateOK
|
|
86
|
-
elem.setAttribute('onclick', "potentiallyUnsafeJsEval"); //@HTMLUpdateOK
|
|
87
|
-
elem.setAttribute('onblur', "potentiallyUnsafeJsEval"); //@HTMLUpdateOK
|
|
88
|
-
|
|
89
|
-
elem.setAttribute("bgcolor", "red");
|
|
90
|
-
|
|
91
|
-
elem.setAttribute('data-oj-context', '');
|
|
92
|
-
elem.attr("name", "helloButton"); //@HTMLUpdateOK
|
|
93
|
-
elem.attr('onClick', editSection('id')); //@HTMLUpdateOK
|
|
94
|
-
elem.attr('onclick', "potentiallyUnsafeJsEval"); //@HTMLUpdateOK
|
|
95
|
-
elem.attr('style', "color:red"); //@HTMLUpdateOK
|
|
96
|
-
elem.attr('onblur', "potentiallyUnsafeJsEval"); //@HTMLUpdateOK
|
|
97
|
-
|
|
98
|
-
elem.attr("bgcolor", "red");
|
|
99
|
-
elem.attr('data-oj-context', '');
|
|
100
|
-
|
|
101
|
-
elem = elem.attr("attr") ;
|
|
102
|
-
elem.attr("id", "someId") ;
|
|
103
|
-
elem.attr("aria-something") ;
|
|
104
|
-
elem.attr("data-something")
|
|
105
|
-
|
|
106
|
-
eval(document.innerHTML = "badStuff") ; //@HTMLUpdateOK
|
|
107
|
-
eval("potentiallyUnsafeJsEval"); //@HTMLUpdateOK
|
|
108
|
-
|
|
109
|
-
var sum = new Function('a', 'b', 'return a + b'); //@HTMLUpdateOK
|
|
110
|
-
|
|
111
|
-
setTimeout(function() {thisRef.getEventManager().addListeners(thisRef);}, 0);
|
|
112
|
-
|
|
113
|
-
setTimeout("potentiallyUnsafeJsEvaled", 100); //@HTMLUpdateOK
|
|
114
|
-
window.setTimeout("potentiallyUnsafeJsEvaled", 100); //@HTMLUpdateOK
|
|
115
|
-
window.setInterval("potentiallyUnsafeJsEval", 1000) ; //@HTMLUpdateOK
|
|
116
|
-
setInterval(this.document.write("whatever"), 1000) ; //@HTMLUpdateOK
|
|
117
|
-
|
|
118
|
-
setInterval(foo, 1000) ; // ok
|
|
119
|
-
setInterval(foo2, 1000) ; // ok
|
|
120
|
-
setInterval(foo3, 1000) ; //@HTMLUpdateOK
|
|
121
|
-
|
|
122
|
-
var n = Math.random() ; //@RandomNumberOK
|
|
123
|
-
|
|
124
|
-
var scriptTagName = 'script'; //@HTMLUpdateOK
|
|
125
|
-
var scriptTagName2 = "script"; //@HTMLUpdateOK
|
|
126
|
-
var scriptDom = document.createElement("script") ; //@HTMLUpdateOK
|
|
127
|
-
|
|
128
|
-
if (window.XMLHttpRequest) { //@HTMLUpdateOK
|
|
129
|
-
// code for modern browsers
|
|
130
|
-
xmlhttp = new XMLHttpRequest(); //@HTMLUpdateOK
|
|
131
|
-
} else {
|
|
132
|
-
// code for old IE browsers
|
|
133
|
-
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //@HTMLUpdateOK
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
var x = document.cookie; //@HTMLUpdateOK
|
|
137
|
-
document.cookie = "username=John Doe"; //@HTMLUpdateOK
|
|
138
|
-
|
|
139
|
-
elem
|
|
140
|
-
=
|
|
141
|
-
elem
|
|
142
|
-
.replaceWith() ; // @HTMLUpdateOK
|
|
143
|
-
|
|
144
|
-
} ;
|
|
145
|
-
|
|
146
|
-
function foo2()
|
|
147
|
-
{
|
|
148
|
-
|
|
149
|
-
} ;
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) , 2021, Oracle and/or its affiliates.
|
|
4
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
5
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
// Taken from ojAnimationUtils
|
|
9
|
-
|
|
10
|
-
// Check that setTimeout() at line 105 is not flagged. Its first arg is a function
|
|
11
|
-
// declared at line 33
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
oj.AnimationUtils._animate = function (
|
|
15
|
-
element, fromState, toState, options, transProps, persistProps
|
|
16
|
-
) {
|
|
17
|
-
var propArray = [].concat(transProps);
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line no-unused-vars
|
|
20
|
-
var doAnimate = function (resolve, reject) {
|
|
21
|
-
var endListener = function (event) {
|
|
22
|
-
// event.propertyName is the hyphenated name. Entries in propArray is the
|
|
23
|
-
// camel-case name without prefix. So we drop any prefix and convert
|
|
24
|
-
// event.propertyName to camel-case before finding it in propArray.
|
|
25
|
-
var basePropName = event.propertyName.indexOf('-webkit-') === 0
|
|
26
|
-
? event.propertyName.substr(8) : event.propertyName;
|
|
27
|
-
basePropName = oj.AnimationUtils._getCamelCasePropName(basePropName);
|
|
28
|
-
var idx = propArray.indexOf(basePropName);
|
|
29
|
-
if (idx > -1) {
|
|
30
|
-
if (propArray.length > 1) {
|
|
31
|
-
propArray.splice(idx, 1);
|
|
32
|
-
} else {
|
|
33
|
-
resolvePromise();
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
var requestId = 0;
|
|
38
|
-
var promiseResolved = false;
|
|
39
|
-
|
|
40
|
-
function resolvePromise() {
|
|
41
|
-
if (!promiseResolved) {
|
|
42
|
-
if (requestId) {
|
|
43
|
-
window.cancelAnimationFrame(requestId);
|
|
44
|
-
requestId = 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
element.removeEventListener(oj.AnimationUtils._getName(element, 'transitionend'), endListener);
|
|
48
|
-
|
|
49
|
-
if (resolve) {
|
|
50
|
-
resolve(true);
|
|
51
|
-
}
|
|
52
|
-
promiseResolved = true;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// For css transition, specify the transition value when applying the toState
|
|
57
|
-
// since we don't want to trigger the transition prematurely.
|
|
58
|
-
if (toState == null) {
|
|
59
|
-
// eslint-disable-next-line no-param-reassign
|
|
60
|
-
toState = {};
|
|
61
|
-
}
|
|
62
|
-
if (toState.css == null) {
|
|
63
|
-
// eslint-disable-next-line no-param-reassign
|
|
64
|
-
toState.css = {};
|
|
65
|
-
}
|
|
66
|
-
// eslint-disable-next-line no-param-reassign
|
|
67
|
-
toState.css.transition = oj.AnimationUtils._createTransitionValue(element, transProps, options);
|
|
68
|
-
|
|
69
|
-
// Save the orignal style so that we can restore it later if needed
|
|
70
|
-
var effectCount = oj.AnimationUtils._saveStyle(element, fromState, toState, options,
|
|
71
|
-
persistProps || transProps);
|
|
72
|
-
|
|
73
|
-
oj.AnimationUtils._applyState(element, fromState, effectCount > 1);
|
|
74
|
-
|
|
75
|
-
element.addEventListener(oj.AnimationUtils._getName(element, 'transitionend'), endListener);
|
|
76
|
-
|
|
77
|
-
var duration = options.duration;
|
|
78
|
-
var delay = options.delay;
|
|
79
|
-
var skipPromise = options._skipPromise;
|
|
80
|
-
|
|
81
|
-
function transitionFunc() {
|
|
82
|
-
requestId = 0;
|
|
83
|
-
oj.AnimationUtils._applyState(element, toState, effectCount > 1);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (fromState == null) {
|
|
87
|
-
// If there is no fromState, assume that we are transitioning from the
|
|
88
|
-
// current state to a new state, so just apply toState immediately.
|
|
89
|
-
transitionFunc();
|
|
90
|
-
} else {
|
|
91
|
-
if (!options._noReflow) {
|
|
92
|
-
// If the final state is the same as current state,
|
|
93
|
-
// requestAnimationFrame may not trigger a transition. Need to force
|
|
94
|
-
// a reflow after applying the initial state by getting one of several
|
|
95
|
-
// properties that cause reflow.
|
|
96
|
-
//
|
|
97
|
-
// Assign it to an export object so that Closure compiler will not remove
|
|
98
|
-
// this as dead code
|
|
99
|
-
oj.AnimationUtils._x = element.offsetWidth;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Add the toState after a delay. This is necessary to trigger css
|
|
103
|
-
// transition.
|
|
104
|
-
requestId = window.requestAnimationFrame(transitionFunc);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
var totalMs = oj.AnimationUtils._getTotalTiming(duration, delay);
|
|
108
|
-
if (!skipPromise) {
|
|
109
|
-
// There are situations in which the transitionend event is never
|
|
110
|
-
// fired (e.g. removing the transiton property or setting the display
|
|
111
|
-
// property to none.)
|
|
112
|
-
// Add a timeout to avoid having unresolved promise.
|
|
113
|
-
setTimeout(resolvePromise, totalMs + 100);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
// Special option to skip promise to reduce overhead. A side effect is that
|
|
118
|
-
// no clean up will be done on the element, which is fine if the element is
|
|
119
|
-
// temporary
|
|
120
|
-
if (options._skipPromise) {
|
|
121
|
-
doAnimate(null, null);
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
var promise = new Promise(doAnimate);
|
|
126
|
-
return promise.then(function () {
|
|
127
|
-
// Remove any temporary effect class when the promise is fulfilled.
|
|
128
|
-
// Do not remove them in the endListener, since the promise fulfillment
|
|
129
|
-
// callback is not in the same animation frame and occurs later than
|
|
130
|
-
// the endListener. Because any caller cleanup is done on promise
|
|
131
|
-
// fulfillment, the element may flash if we remove the class too early.
|
|
132
|
-
|
|
133
|
-
if (fromState && fromState.addClass) {
|
|
134
|
-
$(element).removeClass(fromState.addClass);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
if (toState && toState.addClass) {
|
|
138
|
-
$(element).removeClass(toState.addClass);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
oj.AnimationUtils._restoreStyle(element);
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|