realm / SwiftLint

A tool to enforce Swift style and conventions.
https://realm.github.io/SwiftLint
MIT License
18.46k stars 2.2k forks source link

The baseline use absolute path instead of relative file in the baseline content to identify a file #5599

Closed aiKrice closed 1 month ago

aiKrice commented 1 month ago

New Issue Checklist

Describe the bug

The baseline.json use absolute path in the key: "file:" it should use relative path instead:

Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint --write-baseline baseline.json --config .swiftlint.yml

Json piece:

...
,{
    "character" : 5,
    "file" : "\/Users\/christophersaez\/Documents\/projects\/shopmium-ios\/Packages\/Foundation\/Alamofire\/Sources\/Alam
ofire\/Request.swift",
    "line" : 255,
    "reason" : "All declarations should specify Access Control Level keywords explicitly",
    "rule_id" : "explicit_acl",
    "severity" : "Warning",
    "type" : "Explicit ACL"
  },
  ...

Environment

aiKrice commented 1 month ago

@mildm8nnered for info

aiKrice commented 1 month ago

Closed because baseline prettifier change the baseline format. Without that it's ok