Showing 107 of 108 total issues
Function render
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { style } = this.props;
if (!this.props.active || this.state.waitTimer) return null;
Function handleAction
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleAction(action) {
switch (action.type) {
case serviceActionTypes.SERVICE_BINDINGS_FETCH: {
this.isFetching = true;
this.emitChange();
Function render
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
flag,
text,
linkText,
Function stateSetter
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stateSetter() {
const currentOrgGuid = OrgStore.currentOrgGuid;
const currentSpaceGuid = SpaceStore.currentSpaceGuid;
const currentSpaceName = SpaceStore.currentSpaceName;
const currentAppGuid = AppStore.currentAppGuid;
Function mapStoreToState
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapStoreToState() {
let route;
const { currentAppGuid } = AppStore;
const app = AppStore.get(currentAppGuid);
const envRequest = EnvStore.getEnvRequest(currentAppGuid);
Function Header
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Header = () => {
const loginLink = LoginStore.isLoggedIn() ? (
<HeaderLink>
<Action href="/logout" label="Log out" type="outline">
Log out
Function handleAction
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleAction(action) {
switch (action.type) {
case formActionTypes.FORM_FIELD_CHANGE: {
// Update the form field value
const form = this.get(action.formGuid);
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { name, value, app, updateError, deleteError, onUpdate } = this.props;
const { editing, deleting } = this.state;
const { updating } = app;
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let actionElements;
if (this.props.actions.length) {
actionElements = this.props.actions.map((action, i) => (
Function render
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const stateClass = `stat-${this.props.statState}`;
let primaryStat = (
<span className="stat-primary">
{formatBytes(this.state.primaryStat)}
Function handleAction
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleAction(action) {
switch (action.type) {
case serviceActionTypes.SERVICE_PLAN_FETCH: {
const servicePlan = this.get(action.servicePlanGuid) || {};
const servicePlanFetching = Object.assign({}, servicePlan, {
Function render
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const props = this.props;
const expand = !!(props.org.quicklook && props.org.quicklook.open);
return (
Function render
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const loading = <Loading text="Loading apps" />;
let content = <div>{loading}</div>;
const title = (
<span>
Function stateSetter
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stateSetter() {
const appGuid = AppStore.currentAppGuid;
const orgGuid = OrgStore.currentOrgGuid;
const spaceGuid = SpaceStore.currentSpaceGuid;
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const plans = sortPlansByCost(this.props.plans);
let content = <div />;
if (empty(plans)) {
Function parseLogItem
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseLogItem(log) {
const parseMessage = [
'(.*)\\s-\\s\\[(.*)]\\s"([^"]*)(HTTP/.*)"\\s(\\d+)\\s.*',
'x_forwarded_for:"(.*)"\\sx_forwarded_proto:"(\\w+)"\\',
"svcap_request_id:(.*)\\sresponse_time:(.*)\\sapp_id:(.*)"
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let content = <div />;
const serviceInstance = this.props.serviceInstance;
if (serviceInstance) {
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const emptyMessage = this.props.emptyMessage && (
<div className="complex_list-empty">{this.props.emptyMessage}</div>
);
let header;
Function render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const state = this.state;
const loading = <Loading text="Loading orgs" />;
let content = <div>{loading}</div>;
const title = (
Function render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const space = this.props.space;
const appsContent =
space.apps && space.apps.length > 0 ? (
<ComplexList>