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
## 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)
Set up GitHub Actions workflows for CI/CD

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
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.'
}

View File

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

View File

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

View File

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

View File

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