1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-01-07 23:01:48 +02:00
Commit Graph

15 Commits

Author SHA1 Message Date
Andy Grunwald
43e8242f2c
style: Fix staticcheck (static analysis) errors for this library (#283)
* style: Fix staticcheck errors for "error strings should not be capitalized (ST1005)"

staticcheck is a static analysis tool for go.
It reports several "error strings should not be capitalized (ST1005)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "printf-style function with dynamic format ... (SA1006)"

staticcheck is a static analysis tool for go.
It reports several "printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "type X is unused (U1000)"

staticcheck is a static analysis tool for go.
It reports several "type X is unused (U1000)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "should use X instead (S1003 & SA6005)"

staticcheck is a static analysis tool for go.
It reports several

- should use !bytes.Contains(b, []byte(`"password":"bar"`)) instead (S1003)
- should use strings.EqualFold instead (SA6005)

messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "unnecessary use of fmt.Sprintf (S1039)"

staticcheck is a static analysis tool for go.
It report several "unnecessary use of fmt.Sprintf (S1039)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "this value of X is never used (SA4006)"

staticcheck is a static analysis tool for go.
It report several "this value of X is never used (SA4006)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "redundant return statement (S1023)"

staticcheck is a static analysis tool for go.
It report several "redundant return statement (S1023)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "possible nil pointer dereference (SA5011)"

staticcheck is a static analysis tool for go.
It report several

    file.go:Line:character: possible nil pointer dereference (SA5011)
        file.go:Line:character: this check suggests that the pointer can be nil

messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "this value of X is never used (SA4006)"

staticcheck is a static analysis tool for go.
It report several "this value of X is never used (SA4006)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280
2020-05-02 23:08:01 +02:00
Andy Grunwald
69e7535b62 go fmt and fixed some typos 2017-05-01 14:59:27 +02:00
Garrett Graupmann
39a47d13a0 Initial commit of bug fixes found by atom's gometalinter. 2017-02-23 16:48:06 -08:00
Florian Krauthan
fd59d62772 Increased test coverage 2017-02-08 15:22:48 -08:00
Florian Krauthan
128b7b7bac Fixed test 2017-02-08 15:16:05 -08:00
Florian Krauthan
dcb1c11006 Added tests for new authentication
Fixed some existing tests to work as expected
2017-02-08 14:59:20 -08:00
Andy Grunwald
31508ce192 Fixed a few fmt and debug outputs 2016-10-03 13:33:46 +02:00
Bidesh Thapaliya
e75e7750f2 Adds test for authentication on expected json. Adds test to metaissue 2016-09-27 13:26:07 +02:00
Bidesh Thapaliya
d3ec8f16c0 Removes check for statuscode as jiraclient already does it. Adds test for nonok status code returned 2016-09-27 12:18:30 +02:00
Bidesh Thapaliya
eb07612cbf Completes the APi for session. Adds logout and GetCurrentUser 2016-09-07 14:24:02 +02:00
Andy Grunwald
cdb3939c4c Renamed unit tests according golang standard 2016-07-17 12:13:08 +02:00
Jason O'Broin
ca7e4dedd4 Ensure Authenticated test validates the path where the AuthenticationService hasn't been initialized 2016-05-23 00:09:58 -07:00
Jason O'Broin
bc5e20fe93 Moved Authentication() test into AuthenticationService, and add test case to validate it operates correctly 2016-05-19 22:00:13 -07:00
Andy Grunwald
e14293c196 FIxed test names in ath tests 2016-03-26 23:37:57 +01:00
Andy Grunwald
a39c0d9084 Added tests for authentication 2016-03-26 22:58:28 +01:00