build/dist-size/web/lib/main.js
Function plot
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function plot( el, historyData ) {
const traces = [];
const annotations = [];
for ( const fileName in historyData ) {
Function buildSizeDeltaAnnotation
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildSizeDeltaAnnotation( revision ) {
if ( revision[ CUSTOM_FIELDS.PREVIOUS_SIZE ] === null || revision[ FIELDS.SIZE ] === null ) {
// inception & removal may be a notable but not with respect to size
return null;
}