Showing 650 of 1,370 total issues
Function getFolderSource
has 12 return statements (exceeds 4 allowed). Open
Open
func getFolderSource(clientWebSocket *websocket.Conn, tempDir string, msg SocketMessage) (StratosProject, string, error) {
// The msg data is JSON for the Folder info
info := FolderSourceInfo{
WaitAfterUpload: false,
}
Method Analyzer.doRun
has 12 return statements (exceeds 4 allowed). Open
Open
func (a *Analyzer) doRun(ec echo.Context) error {
log.Debug("Run analyzer!")
engine := ec.Param("analyzer")
Function setUpTestOrgSpaceUserRoles
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function setUpTestOrgSpaceUserRoles(
cfGuid: string,
defaultCf: E2EConfigCloudFoundry,
orgName: string,
spaceName: string,
Function customSassImport
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private customSassImport(config: StratosConfig) {
const that = this;
return (url, resourcePath) => {
if (url === '~@stratosui/theme/extensions') {
// Generate SCSS to appy theming to the packages that need to be themed
Function ngOnInit
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ngOnInit() {
this.connectionStatusSubject.next(0);
if (!this.applicationService.cfGuid || !this.applicationService.appGuid) {
this.messages = NEVER;
} else {
Function constructor
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(
store: Store<GeneralEntityAppState>,
public entityMonitor: EntityMonitor<T>,
actionOrConfig: EntityRequestAction | EntityActionBuilderEntityConfig,
) {
Function checkPageLoad
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
checkPageLoad() {
let hasLoaded = false;
const errMsg = this.getStratosError();
if (!!errMsg) {
hasLoaded = true;
Function init
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private init() {
// Observabled for loading schema and values for the Chart
const schema$ = this.httpClient.get(this.schemaUrl).pipe(catchError(e => of(null)));
const values$: Observable<string> = this.httpClient.get(this.valuesUrl, { responseType: 'text' }).pipe(
catchError(e => of(null))
Function getEndpointConfig
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static getEndpointConfig(
store: Store<AppState>,
action: GetAllEndpoints,
listConfig: IListConfig<EndpointModel>,
rowsState: Observable<RowsState>,
Function AddUnsigned
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static AddUnsigned( lX: number, lY: number ) : number
{
let lX4: number,
lY4: number,
lX8: number,
Method cnsiTokenBackup.createBackup
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (ctb *cnsiTokenBackup) createBackup(data *BackupRequest) (*BackupContent, error) {
log.Debug("createBackup")
allEndpoints, err := ctb.p.ListEndpoints()
if err != nil {
return nil, interfaces.NewHTTPShadowError(http.StatusBadGateway, "Failed to fetch endpoints", "Failed to fetch endpoints: %+v", err)
Method portalProxy.verifySession
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (p *portalProxy) verifySession(c echo.Context) error {
log.Debug("verifySession")
p.StratosAuthService.BeforeVerifySession(c)
Function dispatchRoleRequests
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dispatchRoleRequests(
endpoints: EntityUserRolesEndpoint[],
store: Store<AppState>,
httpClient: HttpClient
): CfsRequestState {
Function constructor
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(private servicesService: ServicesService, private store: Store<CFAppState>) {
this.hasVisiblePlans$ = this.servicesService.servicePlans$.pipe(
map(p => p.length > 0));
this.canCreateServiceInstance = CfCurrentUserPermissions.SERVICE_INSTANCE_CREATE;
this.toolTipText$ = this.hasVisiblePlans$.pipe(
Function getBreadcrumbs
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected getBreadcrumbs(
endpoint: EndpointModel,
org: APIResource<IOrganization>,
space: APIResource<ISpace>
) {
Function generateRouteEntity
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateRouteEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
const definition: IStratosEntityDefinition = {
type: routeEntityType,
schema: cfEntityFactory(routeEntityType),
label: 'Application Route',
Function endpointErrorsHandlerFactory
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const endpointErrorsHandlerFactory = (actionDispatcher: ActionDispatcher) => (
action: EntityRequestAction,
catalogEntity: StratosBaseCatalogEntity,
requestType: ApiRequestTypes,
errors: JetstreamError[]
Function generateCFUserProvidedServiceInstanceEntity
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateCFUserProvidedServiceInstanceEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
const definition: IStratosEntityDefinition = {
type: userProvidedServiceInstanceEntityType,
schema: cfEntityFactory(userProvidedServiceInstanceEntityType),
label: 'User Provided Service Instance',
Function generateEventEntity
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateEventEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
const definition: IStratosEntityDefinition = {
type: cfEventEntityType,
schema: cfEntityFactory(cfEventEntityType),
label: 'Event',
Function constructor
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(
store: Store<CFAppState>,
userPerms: CurrentUserPermissionsService,
activeRouteCfOrgSpace: ActiveRouteCfOrgSpace
) {