src/mobile.startup/references/references.js
Function referenceDrawer
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function referenceDrawer( props ) {
const errorIcon = props.error ? new IconButton( {
name: 'error',
isSmall: true
} ).$el : null;
Function showReference
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showReference( id, page, refNumber, pageHTMLParser, gateway, props,
onShowNestedReference
) {
return gateway.getReference( id, page, pageHTMLParser ).then( ( reference ) => {
const drawer = referenceDrawer( util.extend( {
Function showReference
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
showReference( id, page, refNumber, pageHTMLParser, gateway, props,
onShowNestedReference