Fixed code smell 'Default parameters should be last' reported by SonarQube.

This commit is contained in:
Akshay Joshi
2022-01-12 18:40:18 +05:30
parent c98fb887cc
commit 4e414f57e6
50 changed files with 72 additions and 72 deletions

View File

@@ -74,7 +74,7 @@ const weekdays = [
];
export class ExceptionsSchema extends BaseUISchema {
constructor(fieldOptions={}, initValues) {
constructor(fieldOptions={}, initValues={}) {
super({
jexdate: null,
jextime: null,
@@ -159,7 +159,7 @@ const BooleanArrayFormatter = {
};
export class DaysSchema extends BaseUISchema {
constructor(fieldOptions={}, initValues) {
constructor(fieldOptions={}, initValues={}) {
super({
...initValues,
});
@@ -201,7 +201,7 @@ export class DaysSchema extends BaseUISchema {
}
export class TimesSchema extends BaseUISchema {
constructor(fieldOptions={}, initValues) {
constructor(fieldOptions={}, initValues={}) {
super({
...initValues,
});
@@ -235,7 +235,7 @@ export class TimesSchema extends BaseUISchema {
}
export default class PgaJobScheduleSchema extends BaseUISchema {
constructor(fieldOptions={}, initValues) {
constructor(fieldOptions={}, initValues={}) {
super({
jscid: null,
jscjobid: null,

View File

@@ -12,7 +12,7 @@ import BaseUISchema from 'sources/SchemaView/base_schema.ui';
import PgaJobScheduleSchema from '../../schedules/static/js/pga_schedule.ui';
export default class PgaJobSchema extends BaseUISchema {
constructor(fieldOptions={}, getPgaJobStepSchema, initValues) {
constructor(fieldOptions={}, getPgaJobStepSchema=()=>[], initValues={}) {
super({
jobname: '',
jobid: undefined,

View File

@@ -26,7 +26,7 @@ export function getNodePgaJobStepSchema(treeNodeInfo, itemNodeData) {
);
}
export default class PgaJobStepSchema extends BaseUISchema {
constructor(fieldOptions={}, initValues) {
constructor(fieldOptions={}, initValues={}) {
super({
jstid: null,
jstjobid: null,