backend/src/health/health.controller.ts   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 13
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 13
ccs 3
cts 4
cp 0.75
rs 10
c 0
b 0
f 0
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A HealthController.check 0 5 1
1 7
import { Controller, Get } from '@nestjs/common';
2
3
@Controller({ path: 'health', version: '1' })
4 7
export class HealthController {
5
  @Get()
6 7
  check() {
7
    return {
8
      status: 'ok',
9
      timestamp: new Date().toISOString(),
10
    };
11
  }
12
}
13