Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mes-9923-noUselessConstructor #1779

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"noBannedTypes": "off",
"noForEach": "off",
"noThisInStatic": "off",
"noUselessConstructor": "off",
"noExtraBooleanCast": "off",
"useOptionalChain": "off",
"noUselessCatch": "off"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface DelegatedRekeyUploadOutcomePageState {
export class DelegatedRekeyUploadOutcomePage extends BasePageComponent implements OnInit, ViewDidEnter {
pageState: DelegatedRekeyUploadOutcomePageState;

constructor(injector: Injector) {
constructor(public injector: Injector) {
super(injector);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class RekeyUploadOutcomePage extends BasePageComponent implements OnInit
fromRekeySearch: boolean;
subscription: Subscription = Subscription.EMPTY;

constructor(injector: Injector) {
constructor(public injector: Injector) {
super(injector);
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/classes/__tests__/base-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('BasePageComponent', () => {
spyOn(logHelper, 'createLog');

class BasePageClass extends BasePageComponent {
constructor(inj: Injector) {
constructor(public inj: Injector) {
super(inj);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ describe('OfficeBasePageComponent', () => {
spyOn(store$, 'dispatch');

class BasePageClass extends OfficeBasePageComponent {
constructor(inj: Injector) {
constructor(public inj: Injector) {
super(inj);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('PassFinalisationPageComponent', () => {
spyOn(store$, 'dispatch');

class BasePageClass extends PassFinalisationPageComponent {
constructor(inj: Injector) {
constructor(public inj: Injector) {
super(inj);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('TestReportBasePageComponent', () => {
injector = TestBed.inject(Injector);

class BasePageClass extends TestReportBasePageComponent {
constructor(inj: Injector) {
constructor(public inj: Injector) {
super(inj);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ describe('WaitingRoomToCarBasePageComponent', () => {
spyOn(store$, 'dispatch');

class BasePageClass extends WaitingRoomToCarBasePageComponent {
constructor(inj: Injector) {
constructor(public inj: Injector) {
super(inj);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export abstract class WaitingRoomToCarBasePageComponent extends PracticeableBase
];

protected constructor(
injector: Injector,
public injector: Injector,
@Inject(false) public loginRequired = false
) {
super(injector, loginRequired);
Expand Down
Loading