wakatime / wakatime-cli

Command line interface used by all WakaTime text editor plugins
https://wakatime.com/plugins
BSD 3-Clause "New" or "Revised" License
265 stars 41 forks source link

Should always use ini date format #969

Closed alanhamlett closed 9 months ago

alanhamlett commented 9 months ago

Fixes https://github.com/wakatime/vscode-wakatime/issues/371

It's not good for a function to do too many things, so I simplified shouldBackoff to only return one boolean.

codecov[bot] commented 9 months ago

Codecov Report

Merging #969 (29016b6) into develop (d848729) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop     #969   +/-   ##
========================================
  Coverage    62.92%   62.92%           
========================================
  Files          372      372           
  Lines        15894    15894           
========================================
  Hits         10001    10001           
  Misses        5366     5366           
  Partials       527      527           
Flag Coverage Δ
unittests 62.92% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pkg/backoff/backoff.go 83.56% <100.00%> (ø)