reactioncommerce/redoc

View on GitHub
common/components/header.jsx

Summary

Maintainability
B
4 hrs
Test Coverage

Function render has 99 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    const dropDownClassName = classnames({
      "reaction-nav-dropdown-links": true,
      "active": this.state.showNavDropdown
    })
Severity: Major
Found in common/components/header.jsx - About 3 hrs to fix

    Consider simplifying this complex logical expression.
    Open

        if (this.context.router) {
          const branch = selectedBranch || this.props.params.branch || Meteor.settings.public.redoc.branch || "master";
          const params = this.props.params;
          const repo = params.repo || this.data.defaultDoc.repo;
          const alias = params.alias || this.data.defaultDoc.alias;
    Severity: Major
    Found in common/components/header.jsx - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status