Czołem,

mam pytanie odnośnie Sonara i jego ustawień: jak w trybie pracy samodzielnej ustawić regułę i ignorować komunikaty dla:

*Standard outputs should not be used directly to log anything

Code smell

Major
squid:S106

When logging a message there are several important requirements which must be fulfilled:
The user must be able to easily retrieve the logs
The format of all logged message must be uniform to allow the user to easily read the log
Logged data must actually be recorded
Sensitive data must only be logged securely
If a program directly writes to the standard outputs, there is absolutely no way to comply with those requirements. That's why defining and using a dedicated logger is highly recommended.
Noncompliant Code Example
System.out.println("My Message"); // Noncompliant
Compliant Solution
logger.log("My Message");*

Piszę apkę konsolową i chcę zignorować ostrzeżenia dla System.out.println().
Mogę to zrobić zmieniając na System.console().writer().println() ale to raczej nie ma sensu.

Dzięki