[Dev Tools NG] .rating files are not generated with native line endings
In the Git-based code rate, always \n
is used as line ending of the
.ratings
files.
This has the following effect: If an entire package is rated (e.g.,
YELLOW, since several files have been modified and reviewed), also the
lines in .rating
for files that already have been YELLOW before will
be modified.
Suggested change: Since Git is configured to check out files with native line endings, also the Code Ratings generator should generate native line endings.
Test:
- Re-rate an arbitrary file or package with its current rating.
- Expected result: This should be a no-op
- Observed result (on Windows, but probably also on Mac): the line
ending(s) in the
.rating
file is changed to\n
and the file is marked as unstaged
(from redmine: issue id 3388, created on 2018-04-19, closed on 2018-07-04)