Showing 1,395 of 1,395 total issues
Function handleCreateServiceResult
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
function generateCFDomainEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
const definition: IStratosEntityDefinition = {
type: domainEntityType,
schema: cfEntityFactory(domainEntityType),
label: 'Domain',
Function constructor
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
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
Open
function generateCFServicePlanEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
const definition: IStratosEntityDefinition = {
type: servicePlanEntityType,
schema: cfEntityFactory(servicePlanEntityType),
label: 'Service Plan',
Function generateStackEntity
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateStackEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
const definition: IStratosEntityDefinition = {
type: stackEntityType,
schema: cfEntityFactory(stackEntityType),
label: 'Stack',
Function generateCFServiceEntity
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateCFServiceEntity(endpointDefinition: StratosEndpointExtensionDefinition) {
const definition: IStratosEntityDefinition = {
type: serviceEntityType,
schema: cfEntityFactory(serviceEntityType),
label: 'Service',
Function paginationResetSortAndFilter
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
ngOnInit() {
if (!this.id) {
return;
}
Function generateJsonSchemaFromObject
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
constructor(
private store: Store<AppState>,
public id: string,
public entityKey: string,
public schema: EntitySchema,
Function removeFavoriteFromGroup
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
Open
private makeRequest(
method: string,
op: string,
busyMsg: string,
okMsg: string,
Function fillOutTimeOrderedChartSeries
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static fillOutTimeOrderedChartSeries(
timeOrdered: ChartSeries[],
start: number,
end: number,
step: number,
Function ngOnInit
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
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
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;