SUSE/stratos

View on GitHub

Showing 1,395 of 1,395 total issues

Function handleCreateServiceResult has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private handleCreateServiceResult(request: RequestInfoState, state: CreateServiceInstanceState): Observable<StepOnNextResult> {
    const bindApp = !!state.bindAppGuid;

    if (this.longRunningOpService.isLongRunning(request)) {
      // This request has taken too long for the browser/jetstream and is on going. Treat this as a success

    Function generateCFDomainEntity has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function generateCFDomainEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
      const definition: IStratosEntityDefinition = {
        type: domainEntityType,
        schema: cfEntityFactory(domainEntityType),
        label: 'Domain',
    Severity: Minor
    Found in src/frontend/packages/cloud-foundry/src/cf-entity-generator.ts - About 1 hr to fix

      Function constructor has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        constructor(
          private store: Store<CFAppState>,
          private appService: ApplicationService,
          private utilsService: UtilsService,
          private router: Router,

        Function jsonFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          jsonFilter(jsonString) {
            try {
              const messageObj = JSON.parse(jsonString);
              if (!messageObj) {
                return;

          Function currentCfUserRolesReducer has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export const currentCfUserRolesReducer: EntityUserRolesReducer<IAllCfRolesState> = (
            state: IAllCfRolesState = {},
            action: Action
          ): IAllCfRolesState => {
            switch (action.type) {

            Function generateCFServicePlanEntity has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function generateCFServicePlanEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
              const definition: IStratosEntityDefinition = {
                type: servicePlanEntityType,
                schema: cfEntityFactory(servicePlanEntityType),
                label: 'Service Plan',
            Severity: Minor
            Found in src/frontend/packages/cloud-foundry/src/cf-entity-generator.ts - About 1 hr to fix

              Function generateStackEntity has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function generateStackEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
                const definition: IStratosEntityDefinition = {
                  type: stackEntityType,
                  schema: cfEntityFactory(stackEntityType),
                  label: 'Stack',
              Severity: Minor
              Found in src/frontend/packages/cloud-foundry/src/cf-entity-generator.ts - About 1 hr to fix

                Function generateCFServiceEntity has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function generateCFServiceEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
                  const definition: IStratosEntityDefinition = {
                    type: serviceEntityType,
                    schema: cfEntityFactory(serviceEntityType),
                    label: 'Service',
                Severity: Minor
                Found in src/frontend/packages/cloud-foundry/src/cf-entity-generator.ts - About 1 hr to fix

                  Function paginationResetSortAndFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  export function paginationResetSortAndFilter(state: PaginationState, action: ResetPaginationSortFilter): PaginationState {
                    const { pAction } = action;
                    const entityKey = entityCatalog.getEntityKey(pAction);
                    const pKey = action.pAction.paginationKey;
                  
                  

                    Function ngOnInit has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      ngOnInit() {
                        if (!this.id) {
                          return;
                        }
                    
                    

                      Function generateJsonSchemaFromObject has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      export function generateJsonSchemaFromObject(title, object) {
                        let processOutput;
                        const output: any = {
                          $schema: DRAFT
                        };

                        Function constructor has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          constructor(
                            private store: Store<AppState>,
                            public id: string,
                            public entityKey: string,
                            public schema: EntitySchema,
                        Severity: Minor
                        Found in src/frontend/packages/store/src/monitors/entity-monitor.ts - About 1 hr to fix

                          Function removeFavoriteFromGroup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function removeFavoriteFromGroup(state: IUserFavoritesGroups, action: RemoveUserFavoriteSuccessAction): IUserFavoritesGroups {
                            const { favorite } = action;
                            const endpointGuid = getEndpointIDFromFavorite(favorite);
                            const userGroup = state[endpointGuid] || getDefaultFavoriteGroup();
                            // Favorite will not have and entityId if it is for an endpoint

                            Function isNewer has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              public isNewer(other: Version): boolean {
                                if (!this.valid || !other.valid) {
                                  return false;
                                }
                            
                            

                              Function makeRequest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                private makeRequest(
                                  method: string,
                                  op: string,
                                  busyMsg: string,
                                  okMsg: string,

                                Function fillOutTimeOrderedChartSeries has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  static fillOutTimeOrderedChartSeries(
                                    timeOrdered: ChartSeries[],
                                    start: number,
                                    end: number,
                                    step: number,

                                  Function ngOnInit has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    ngOnInit() {
                                      if (this.rowState) {
                                        this.inErrorState$ = this.rowState.pipe(
                                          map(state => state.error)
                                        );

                                    Function makeSpan has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      makeSpan() {
                                        let span = '';
                                        if (this.boldOn || this.currentFg || this.currentBg) {
                                          span += '<span class="';
                                          if (this.boldOn) {

                                      Function constructor has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        constructor(
                                          private activatedRoute: ActivatedRoute,
                                          private metricsService: MetricsService,
                                          private store: Store<AppState>,
                                        ) {

                                        Function setupAction has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          private setupAction(config: IListDataSourceConfig<A, T>) {
                                            if (config.schema instanceof MultiActionConfig) {
                                              if (!config.isLocal) {
                                                // We cannot do multi action lists for non-local lists
                                                this.action = config.schema[0].paginationAction;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language