fix: Logging validator exit with code 2

Description

Further investigation has shown that the actual root cause of why offenses are shown but don't fail RSpec jobs is the related retry mechanism.

The logging field validator currently raises an error that produces an exit code 1. This exit code is seen as an RSpec failure on the respective RSpec job, and the retry mechanism schedules a retry on failed specs. However, there are no failed specs because the failure comes from the validator, so the retry is a no-op, and the new offenses are swallowed.

Merge request reports

Loading