Julio Lopez
347adbfff1
fix(general): add {peta,exa}byte prefixes ( #4707 )
...
- add {peta,exa}byte prefixes
- add test cases for units conversion
- refactor tests for units package
2025-07-01 18:39:01 -07:00
Julio López
d37de8316e
refactor(general): generalize units package ( #4075 )
...
Generalize a couple of functions in the units package using generics.
This allows removing duplicate code and simplifying callers by removing unnecessary integer conversions.
Additional cleanups:
- make "/s" part of the Printf format string ;
- simplify setSizeMBParameter;
- generalize cli.maybeHumanReadable*` helpers;
- remove unneeded receiver in commandRepositorySetParameters helpers.
2024-08-26 17:26:32 -07:00
Jarek Kowalski
fcb8197f3f
chore(ci): upgraded linter to 1.59.0 ( #3883 )
2024-05-29 20:31:57 -07:00
atom
c5efed01f4
feat(cli): Support displaying storage values in base-2 [ #2492 ] ( #2502 )
...
* Update display on repository summary
* Apply throughout app
* Situate units_test
* Update Command Line documentation
* Envar cleanup
* Rename to BytesString
* Restore envar string available for test
* Remove extraneous empty check and restore UIPreferences field for frontend
* PR: config bool cleanup and missed `BaseEnv`s
* Fix lint and test
2022-10-24 19:00:36 -07:00
Jarek Kowalski
51dcaa985d
chore(ci): upgraded linter to 1.48.0 ( #2294 )
...
Mechanically fixed all issues, added `lint-fix` make target.
2022-08-09 06:07:54 +00:00
Jarek Kowalski
32ed220a6c
build(lint): enabled gochecknoglobals and tagged existing globals ( #1664 )
2022-01-15 12:54:56 -08:00
CrendKing
2394b420b0
Change Mbit/s units to MB/s (base-10) ( #1522 )
2021-11-18 15:41:40 -08:00
Jarek Kowalski
9e059a1277
upgraded linter to 1.41.0 ( #1144 )
2021-06-16 19:44:55 -07:00
Jarek Kowalski
9a6dea898b
Linter upgrade to v1.30.0 ( #526 )
...
* fixed godot linter errors
* reformatted source with gofumpt
* disabled some linters
* fixed nolintlint warnings
* fixed gci warnings
* lint: fixed 'nestif' warnings
* lint: fixed 'exhaustive' warnings
* lint: fixed 'gocritic' warnings
* lint: fixed 'noctx' warnings
* lint: fixed 'wsl' warnings
* lint: fixed 'goerr113' warnings
* lint: fixed 'gosec' warnings
* lint: upgraded linter to 1.30.0
* lint: more 'exhaustive' warnings
Co-authored-by: Nick <nick@kasten.io >
2020-08-12 19:28:53 -07:00
Jarek Kowalski
ac70a38101
lint: upgraded to 1.22.2 and make lint issues a build failure
...
fixed or silenced linter warnings, mostly due to magic numeric constants
2020-01-03 16:39:30 -08:00
Jarek Kowalski
6217df1a87
lint: switched to 1.21 and fixed a ton of whitespace issues discovered
...
by new wsl linter
2019-11-26 06:49:49 -08:00
Jarek Kowalski
72520029b0
golangci-lint: added more linters
...
Also fixed pre-existing lint errors.
2019-06-02 22:56:57 -07:00
Jarek Kowalski
304b43d27c
cli: additional output options for 'block list'
2018-09-15 17:32:58 -07:00
Jarek Kowalski
cfbef13aff
Major refactoring to how repository connections are established and managed to simplify programmatic API usage and CLI.
...
Removed unnecessary and confusing options, improved the API.
2017-08-01 08:35:14 +02:00
Jarek Kowalski
b21a53bccd
added backup size output
2016-10-01 10:19:38 -07:00