Compare commits
No commits in common. "ebd2ee1b6a596aece1eec69dfef7dd75ac28262a" and "fd63efc409e0417ee5b7fd4dfad8a6a05bf66bdb" have entirely different histories.
ebd2ee1b6a
...
fd63efc409
2 changed files with 1 additions and 18 deletions
|
@ -31,11 +31,11 @@ linters:
|
||||||
- bodyclose # checks whether HTTP response body is closed successfully [fast: true, auto-fix: false]
|
- bodyclose # checks whether HTTP response body is closed successfully [fast: true, auto-fix: false]
|
||||||
- containedctx # containedctx is a linter that detects struct contained context.Context field [fast: true, auto-fix: false]
|
- containedctx # containedctx is a linter that detects struct contained context.Context field [fast: true, auto-fix: false]
|
||||||
- contextcheck # check the function whether use a non-inherited context [fast: false, auto-fix: false]
|
- contextcheck # check the function whether use a non-inherited context [fast: false, auto-fix: false]
|
||||||
- copyloopvar # copyloopvar is a linter detects places where loop variables are copied [fast: true, auto-fix: false]
|
|
||||||
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f()) [fast: true, auto-fix: false]
|
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f()) [fast: true, auto-fix: false]
|
||||||
- durationcheck # check for two durations multiplied together [fast: false, auto-fix: false]
|
- durationcheck # check for two durations multiplied together [fast: false, auto-fix: false]
|
||||||
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: false, auto-fix: false]
|
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: false, auto-fix: false]
|
||||||
- errchkjson # Checks types passed to the json encoding functions. Reports unsupported types and optionally reports occations, where the check for the returned error can be omitted. [fast: false, auto-fix: false]
|
- errchkjson # Checks types passed to the json encoding functions. Reports unsupported types and optionally reports occations, where the check for the returned error can be omitted. [fast: false, auto-fix: false]
|
||||||
|
- exportloopref # checks for pointers to enclosing loop variables [fast: true, auto-fix: false]
|
||||||
- forbidigo # Forbids identifiers [fast: true, auto-fix: false]
|
- forbidigo # Forbids identifiers [fast: true, auto-fix: false]
|
||||||
- funlen # Tool for detection of long functions [fast: true, auto-fix: false]
|
- funlen # Tool for detection of long functions [fast: true, auto-fix: false]
|
||||||
- gocognit # Computes and checks the cognitive complexity of functions [fast: true, auto-fix: false]
|
- gocognit # Computes and checks the cognitive complexity of functions [fast: true, auto-fix: false]
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
source ~/bin/script_framework.sh
|
|
||||||
|
|
||||||
ts=${1:-}
|
|
||||||
[[ -n $ts ]] || fatal "Usage: ${0##*/} <timestamp, i.e. 12226>"
|
|
||||||
|
|
||||||
pts=()
|
|
||||||
|
|
||||||
for div in 3600 60 1; do
|
|
||||||
pt=$(( ts / div ))
|
|
||||||
ts=$(( ts % div ))
|
|
||||||
|
|
||||||
pts+=(${pt})
|
|
||||||
done
|
|
||||||
|
|
||||||
IFS=':'; echo "${pts[*]}"
|
|
Loading…
Reference in a new issue