go-simpler / sloglint

🪵 Ensure consistent code style when using log/slog
https://go-simpler.org/sloglint
Mozilla Public License 2.0
75 stars 5 forks source link

feat: implement `-no-mixed-args` #25

Closed n9v9 closed 6 months ago

n9v9 commented 7 months ago

Add the flag no-mixed-args which defaults to true to preserve backwards compatibility. Setting the flag to false allows attributes and key-values pairs in the same call.

Closes #23

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (217d45f) 88.67% compared to head (d521816) 88.73%. Report is 2 commits behind head on main.

:exclamation: Current head d521816 differs from pull request most recent head fcdf8a1. Consider uploading reports for the commit fcdf8a1 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #25 +/- ## ========================================== + Coverage 88.67% 88.73% +0.05% ========================================== Files 1 1 Lines 212 213 +1 ========================================== + Hits 188 189 +1 Misses 19 19 Partials 5 5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

tmzane commented 6 months ago

Thanks!