3PillarGlobal-Czechia / interview-app-api

API for Interview App.
MIT License
3 stars 1 forks source link

Technical debt/GitHub warnings #81

Closed TomasNiemczyk98 closed 2 years ago

TomasNiemczyk98 commented 2 years ago

Summary

Fixing github warning shown with every pull requests. One waning cannot be fixed in code and that is Configuring loggers is security-sensitive. The rule basically says that we should double check to make sure our logger configuration is correct and we are logging correct stuff in case of a potential attack on the system.

Types of changes

TomasNiemczyk98 commented 2 years ago

There is low coverage due to class DomainException not being currently used and I cannot write any dummy test for it since it's meant as an abstract class, any idea how to proceed?

petrspelos commented 2 years ago

@TomasNiemczyk98, I believe you should still be able to write a mock implementation of it in your tests. 🤔

While this isn't really testing anything, I think it is safer than adding ignore rules to the coverage reporting.

I'd suggest something like a TestDomainException : DomainException and throw it a couple of times in a test.

What do you guys think?

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

80.0% 80.0% Coverage
0.0% 0.0% Duplication