fix(smartstatus): Remove all tslint:disable-next-line comments for max-classes-per-file rule

This commit is contained in:
Philipp Kunz 2024-12-25 21:00:13 +01:00
parent 5b1c917137
commit 29d813bc14
6 changed files with 6 additions and 33 deletions

View File

@ -1,5 +1,10 @@
# Changelog # Changelog
## 2024-12-25 - 1.1.1 - fix(smartstatus)
Remove all tslint:disable-next-line comments for max-classes-per-file rule
- Code cleanup by removing unnecessary tslint comments for disabling max-classes-per-file rule.
## 2024-12-25 - 1.1.0 - feat(ci) ## 2024-12-25 - 1.1.0 - feat(ci)
Set up GitHub Actions workflows for CI/CD Set up GitHub Actions workflows for CI/CD

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartstatus', name: '@push.rocks/smartstatus',
version: '1.1.0', version: '1.1.1',
description: 'A TypeScript library for managing HTTP status codes, providing detailed classes for each status to enhance HTTP error and response handling.' description: 'A TypeScript library for managing HTTP status codes, providing detailed classes for each status to enhance HTTP error and response handling.'
} }

View File

@ -14,7 +14,6 @@ export class Status200 extends HttpStatus {
} }
HttpStatus.addStatus('200', Status200); HttpStatus.addStatus('200', Status200);
// tslint:disable-next-line: max-classes-per-file
export class Status201 extends HttpStatus { export class Status201 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -26,7 +25,6 @@ export class Status201 extends HttpStatus {
} }
HttpStatus.addStatus('201', Status201); HttpStatus.addStatus('201', Status201);
// tslint:disable-next-line: max-classes-per-file
export class Status202 extends HttpStatus { export class Status202 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -39,7 +37,6 @@ export class Status202 extends HttpStatus {
} }
HttpStatus.addStatus('202', Status202); HttpStatus.addStatus('202', Status202);
// tslint:disable-next-line: max-classes-per-file
export class Status203 extends HttpStatus { export class Status203 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -52,7 +49,6 @@ export class Status203 extends HttpStatus {
} }
HttpStatus.addStatus('203', Status203); HttpStatus.addStatus('203', Status203);
// tslint:disable-next-line: max-classes-per-file
export class Status204 extends HttpStatus { export class Status204 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -64,7 +60,6 @@ export class Status204 extends HttpStatus {
} }
HttpStatus.addStatus('204', Status204); HttpStatus.addStatus('204', Status204);
// tslint:disable-next-line: max-classes-per-file
export class Status205 extends HttpStatus { export class Status205 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -77,7 +72,6 @@ export class Status205 extends HttpStatus {
} }
HttpStatus.addStatus('205', Status205); HttpStatus.addStatus('205', Status205);
// tslint:disable-next-line: max-classes-per-file
export class Status206 extends HttpStatus { export class Status206 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -92,7 +86,6 @@ export class Status206 extends HttpStatus {
} }
HttpStatus.addStatus('206', Status206); HttpStatus.addStatus('206', Status206);
// tslint:disable-next-line: max-classes-per-file
export class Status207 extends HttpStatus { export class Status207 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -106,7 +99,6 @@ export class Status207 extends HttpStatus {
} }
HttpStatus.addStatus('207', Status207); HttpStatus.addStatus('207', Status207);
// tslint:disable-next-line: max-classes-per-file
export class Status208 extends HttpStatus { export class Status208 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -120,7 +112,6 @@ export class Status208 extends HttpStatus {
} }
HttpStatus.addStatus('208', Status208); HttpStatus.addStatus('208', Status208);
// tslint:disable-next-line: max-classes-per-file
export class Status226 extends HttpStatus { export class Status226 extends HttpStatus {
constructor() { constructor() {
super({ super({

View File

@ -14,7 +14,6 @@ export class Status300 extends HttpStatus {
} }
HttpStatus.addStatus('300', Status300); HttpStatus.addStatus('300', Status300);
// tslint:disable-next-line: max-classes-per-file
export class Status301 extends HttpStatus { export class Status301 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -26,7 +25,6 @@ export class Status301 extends HttpStatus {
} }
HttpStatus.addStatus('301', Status301); HttpStatus.addStatus('301', Status301);
// tslint:disable-next-line: max-classes-per-file
export class Status302 extends HttpStatus { export class Status302 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -43,7 +41,6 @@ export class Status302 extends HttpStatus {
} }
HttpStatus.addStatus('302', Status302); HttpStatus.addStatus('302', Status302);
// tslint:disable-next-line: max-classes-per-file
export class Status303 extends HttpStatus { export class Status303 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -58,7 +55,6 @@ export class Status303 extends HttpStatus {
} }
HttpStatus.addStatus('303', Status303); HttpStatus.addStatus('303', Status303);
// tslint:disable-next-line: max-classes-per-file
export class Status304 extends HttpStatus { export class Status304 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -73,7 +69,6 @@ export class Status304 extends HttpStatus {
} }
HttpStatus.addStatus('304', Status304); HttpStatus.addStatus('304', Status304);
// tslint:disable-next-line: max-classes-per-file
export class Status305 extends HttpStatus { export class Status305 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -88,7 +83,6 @@ export class Status305 extends HttpStatus {
} }
HttpStatus.addStatus('305', Status305); HttpStatus.addStatus('305', Status305);
// tslint:disable-next-line: max-classes-per-file
export class Status306 extends HttpStatus { export class Status306 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -100,7 +94,6 @@ export class Status306 extends HttpStatus {
} }
HttpStatus.addStatus('306', Status306); HttpStatus.addStatus('306', Status306);
// tslint:disable-next-line: max-classes-per-file
export class Status307 extends HttpStatus { export class Status307 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -116,7 +109,6 @@ export class Status307 extends HttpStatus {
} }
HttpStatus.addStatus('307', Status307); HttpStatus.addStatus('307', Status307);
// tslint:disable-next-line: max-classes-per-file
export class Status308 extends HttpStatus { export class Status308 extends HttpStatus {
constructor() { constructor() {
super({ super({

View File

@ -11,7 +11,6 @@ export class Status400 extends HttpStatus {
} }
HttpStatus.addStatus('400', Status400); HttpStatus.addStatus('400', Status400);
// tslint:disable-next-line: max-classes-per-file
export class Status401 extends HttpStatus { export class Status401 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -24,7 +23,6 @@ export class Status401 extends HttpStatus {
} }
HttpStatus.addStatus('401', Status401); HttpStatus.addStatus('401', Status401);
// tslint:disable-next-line: max-classes-per-file
export class Status402 extends HttpStatus { export class Status402 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -36,7 +34,6 @@ export class Status402 extends HttpStatus {
} }
HttpStatus.addStatus('402', Status402); HttpStatus.addStatus('402', Status402);
// tslint:disable-next-line: max-classes-per-file
export class Status403 extends HttpStatus { export class Status403 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -48,7 +45,6 @@ export class Status403 extends HttpStatus {
} }
HttpStatus.addStatus('403', Status403); HttpStatus.addStatus('403', Status403);
// tslint:disable-next-line: max-classes-per-file
export class Status404 extends HttpStatus { export class Status404 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -60,7 +56,6 @@ export class Status404 extends HttpStatus {
} }
HttpStatus.addStatus('404', Status404); HttpStatus.addStatus('404', Status404);
// tslint:disable-next-line: max-classes-per-file
export class Status429 extends HttpStatus { export class Status429 extends HttpStatus {
constructor() { constructor() {
super({ super({

View File

@ -12,7 +12,6 @@ export class Status500 extends HttpStatus {
} }
HttpStatus.addStatus('500', Status500); HttpStatus.addStatus('500', Status500);
// tslint:disable-next-line: max-classes-per-file
export class Status501 extends HttpStatus { export class Status501 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -24,7 +23,6 @@ export class Status501 extends HttpStatus {
} }
HttpStatus.addStatus('501', Status501); HttpStatus.addStatus('501', Status501);
// tslint:disable-next-line: max-classes-per-file
export class Status502 extends HttpStatus { export class Status502 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -36,7 +34,6 @@ export class Status502 extends HttpStatus {
} }
HttpStatus.addStatus('502', Status502); HttpStatus.addStatus('502', Status502);
// tslint:disable-next-line: max-classes-per-file
export class Status503 extends HttpStatus { export class Status503 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -48,7 +45,6 @@ export class Status503 extends HttpStatus {
} }
HttpStatus.addStatus('503', Status503); HttpStatus.addStatus('503', Status503);
// tslint:disable-next-line: max-classes-per-file
export class Status504 extends HttpStatus { export class Status504 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -61,7 +57,6 @@ export class Status504 extends HttpStatus {
} }
HttpStatus.addStatus('504', Status504); HttpStatus.addStatus('504', Status504);
// tslint:disable-next-line: max-classes-per-file
export class Status505 extends HttpStatus { export class Status505 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -73,7 +68,6 @@ export class Status505 extends HttpStatus {
} }
HttpStatus.addStatus('505', Status505); HttpStatus.addStatus('505', Status505);
// tslint:disable-next-line: max-classes-per-file
export class Status506 extends HttpStatus { export class Status506 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -86,7 +80,6 @@ export class Status506 extends HttpStatus {
HttpStatus.addStatus('506', Status506); HttpStatus.addStatus('506', Status506);
// tslint:disable-next-line: max-classes-per-file
export class Status507 extends HttpStatus { export class Status507 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -99,7 +92,6 @@ export class Status507 extends HttpStatus {
HttpStatus.addStatus('507', Status507); HttpStatus.addStatus('507', Status507);
// tslint:disable-next-line: max-classes-per-file
export class Status508 extends HttpStatus { export class Status508 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -111,7 +103,6 @@ export class Status508 extends HttpStatus {
} }
HttpStatus.addStatus('508', Status508); HttpStatus.addStatus('508', Status508);
// tslint:disable-next-line: max-classes-per-file
export class Status510 extends HttpStatus { export class Status510 extends HttpStatus {
constructor() { constructor() {
super({ super({
@ -122,7 +113,6 @@ export class Status510 extends HttpStatus {
} }
} }
// tslint:disable-next-line: max-classes-per-file
export class Status511 extends HttpStatus { export class Status511 extends HttpStatus {
constructor() { constructor() {
super({ super({