js/base64-2.4.5.js

Missing semicolon.
1
(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory(global):typeof define==="function"&&define.amd?define(factory):factory(global)})(typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:this,function(global){"use strict";var _Base64=global.Base64;var version="2.4.5";var buffer;if(typeof module!=="undefined"&&module.exports){try{buffer=require("buffer").Buffer}catch(err){}}var b64chars="ABCDEFGHIJKLMNOPQRSTUVW
Expected an assignment or function call and instead saw an expression.
1
(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory(global):typeof define==="function"&&define.amd?define(factory):factory(global)})(typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:this,function(global){"use strict";var _Base64=global.Base64;var version="2.4.5";var buffer;if(typeof module!=="undefined"&&module.exports){try{buffer=require("buffer").Buffer}catch(err){}}var b64chars="ABCDEFGHIJKLMNOPQRSTUVW

js/jquery-3.3.1.js

The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
2
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function e(t){return"function"==typeof t&&"number"!=typeof

js/purify-1.0.7.js

Missing semicolon.
1
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.DOMPurify=t()}(this,function(){"use strict";function e(e,t){for(var n=t.length;n--;)"string"==typeof t[n]&&(t[n]=t[n].toLowerCase()),e[t[n]]=!0;return e}function t(e){var t={},n=void 0;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.fro

js/sjcl-1.0.7.js

Expected '{' and instead saw 'throw'.
2
sjcl.cipher.aes=function(a){this.s[0][0][0]||this.O();var b,c,d,e,f=this.s[0][4],g=this.s[1];b=a.length;var h=1;if(4!==b&&6!==b&&8!==b)throw new sjcl.exception.invalid("invalid aes key size");this.b=[d=a.slice(0),e=[]];for(a=b;a<4*b+28;a++){c=d[a-1];if(0===a%b||8===b&&4===a%b)c=f[c>>>24]<<24^f[c>>16&255]<<16^f[c>>8&255]<<8^f[c&255],0===a%b&&(c=c<<8^c>>>24^h<<24,h=h<<1^283*(h>>7));d[a]=d[a-b]^c}for(b=0;a;b++,a--)c=d[b&3?a:a-4],e[b]=4>=a||4>b?c:g[0][f[c>>>24]]^g[1][f[c>>16&255]]^g[2][f[c>>8&255]]^g[3][f[c&

js/test/AttachmentViewer.js

Function has a complexity of 7. (complexity)
18
function (mimeType, base64, filename, prefix, postfix) {

js/test/PasteStatus.js

This function has too many parameters. (7)
54
function (

js/test/TopNav.js

Function has a complexity of 22. (complexity)
67
function () {
Expected '!==' and instead saw '!='. (eqeqeq)
302
$('#navbar').attr('aria-expanded') != 'true'
Expected '!==' and instead saw '!='.
302
$('#navbar').attr('aria-expanded') != 'true'
Expected '===' and instead saw '=='. (eqeqeq)
307
$('#navbar').attr('aria-expanded') == 'true'
Expected '===' and instead saw '=='. (eqeqeq)
312
$('#navbar').attr('aria-expanded') == 'false'
Unexpected require(). (global-require)
341
path = require('path'),
Unexpected require(). (global-require)
342
mime = require('mime-types');
Unexpected trailing comma. (comma-dangle)
355
type: mime.lookup(file_path) || '',
Missing semicolon.
364
throw new Error('file_paths needs to be a file path string or an Array of file path strings')
The '__proto__' property is deprecated. (no-proto)
368
file_list.__proto__ = Object.create(FileList.prototype)
Missing semicolon.
368
file_list.__proto__ = Object.create(FileList.prototype)
Unexpected trailing comma. (comma-dangle)
372
writeable: false,

tst/Persistence/TrafficLimiterTest.php

The "WordPress.WP.PreparedSQL" sniff has been renamed to "WordPress.DB.PreparedSQL". Please update your custom ruleset.
1
<?php