SUSE/stratos

View on GitHub

Showing 1,395 of 1,395 total issues

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

  ngOnInit() {
    this.connectionStatus.next(0);
    const { cfGuid, appGuid } = this.applicationService;
    const routeParams = this.activatedRoute.snapshot.params;
    this.instanceId = routeParams.index;

    Function generateCfSpaceEntity has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function generateCfSpaceEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
      const spaceDefinition: IStratosEntityDefinition = {
        type: spaceEntityType,
        schema: {
          default: cfEntityFactory(spaceEntityType),
    Severity: Minor
    Found in src/frontend/packages/cloud-foundry/src/cf-entity-generator.ts - About 1 hr to fix

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

        constructor(
          private applicationService: ApplicationService,
        ) {
          // Do we need share()? Or should this be on the app stats observable?
          this.appMonitor$ = this.applicationService.appStats$.pipe(map(stats => {

        Function initDeployer has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          private initDeployer() {
            this.deploySub = this.deployer.status$.pipe(
              filter(status => status.deploying),
            ).subscribe();
        
        

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

            ngOnInit() {
              this.connectionStatus.next(0);
              const guid = this.kubeEndpointService.baseKube.guid;
              this.kubeSummaryLink = `/kubernetes/${guid}/summary`;
          
          

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

              constructor(
                store: Store<AppState>,
                kubeId: BaseKubeGuid,
              ) {
                const transformEntities: DataFunction<KubernetesNode>[] = [

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

                ngOnInit() {
                  this.ssoLogin = false;
                  this.store.dispatch(new VerifySession());
                  const auth$ = this.store.select(s => ({ auth: s.auth, endpoints: s.endpoints }));
                  this.initialLoad$ = auth$.pipe(

                Function links$ has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      map(([favs, layout]) => {
                        // Get the list of shortcuts for the endpoint for the given endpoint ID
                        const shortcutsFn = this.definition?.homeCard?.shortcuts;
                        const allShortcuts = shortcutsFn ? shortcutsFn(this.endpoint.guid) || [] : [];
                        let shortcuts = allShortcuts;

                  Function handleOther has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    private handleOther(auth: AuthState) {
                      this.loggedIn = auth.loggedIn;
                      this.loggingIn = auth.loggingIn;
                      this.isLoginFlow = this.isLoginFlow || auth.loggingIn;
                      this.verifying = auth.verifying;

                    Function getCaaspNodesData has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      getCaaspNodesData(nodes$: Observable<KubernetesNode[]> = this.nodes$): Observable<CaaspNodesData> {
                        return nodes$.pipe(
                          map(nodes => {
                            const info: CaaspNodesData = {
                              version: 'Unknown',

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

                        constructor(
                          private store: Store<AppState>,
                          private route: ActivatedRoute,
                          private tabNavService: TabNavService,
                          private router: Router,

                        Method CustomBinder.bindData has 57 lines of code (exceeds 50 allowed). Consider refactoring.
                        Open

                        func (b *CustomBinder) bindData(ptr interface{}, data map[string][]string, tag string) error {
                            typ := reflect.TypeOf(ptr).Elem()
                            val := reflect.ValueOf(ptr).Elem()
                        
                            if typ.Kind() != reflect.Struct {
                        Severity: Minor
                        Found in src/jetstream/custombinder/custombinder.go - About 1 hr to fix

                          Function configure has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            module.exports.configure = function (config) {
                              config.seleniumAddress = 'http://hub-cloud.browserstack.com/wd/hub';
                              config.capabilities = defaultCapabilities
                              config.directConnect = false;
                              setCapabilties(config.capabilities);
                          Severity: Minor
                          Found in src/test-e2e/browserstack-helper.js - About 1 hr to fix

                            Function navToPage has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function navToPage() {
                                describe('', () => {
                            
                                  // Allow additional time for navigation
                                  extendE2ETestTime(70000);
                            Severity: Minor
                            Found in src/test-e2e/cloud-foundry/space-level/cf-space-level-e2e.spec.ts - About 1 hr to fix

                              Function handleValidationLoopResults has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function handleValidationLoopResults(
                                store: Store<GeneralEntityAppState>,
                                results: ValidateEntityResult[],
                                apiResponse: APIResponse,
                                action: EntityRequestAction

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

                                  constructor(store: Store<CFAppState>, transformEntities: any[], listConfig?: IListConfig<APIResource>) {
                                    const paginationKey = createEntityRelationPaginationKey(serviceInstancesEntityType);
                                    const marketplaceAction = cfEntityCatalog.serviceInstance.actions.getMultiple(null, paginationKey);
                                    const userProvidedAction = cfEntityCatalog.userProvidedService.actions.getMultiple();
                                    const actionSchemaConfigs = [

                                  Function setupAsServiceInstance has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    private setupAsServiceInstance() {
                                      const serviceInstance$ = cfEntityCatalog.serviceInstance.store.getEntityService(
                                        this.row.entity.service_instance_guid, this.appService.cfGuid
                                      ).waitForEntity$;
                                      this.serviceInstance$ = serviceInstance$;

                                    Function generateCFServiceInstanceEntity has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

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

                                      Function getAllTheThings has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function getAllTheThings(store: Store<GeneralAppState>, guid: string, schemaKey: string) {
                                        const entities = {
                                          [entitySchema.key]: {
                                            [guid]: {
                                              id: guid,
                                      Severity: Minor
                                      Found in src/frontend/packages/store/src/entity-service.spec.ts - About 1 hr to fix

                                        Function generate has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          public static generate<
                                            B = any,
                                            C extends OrchestratedActionBuilderConfig = OrchestratedActionBuilders
                                          >(
                                            endpointDefinition: StratosEndpointExtensionDefinition,
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language