1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2024-12-10 10:10:10 +02:00
Commit Graph

11 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
Matthias Weiss
a9350ed566 Add test case to check for completeness of roles unmarshal 2019-05-16 08:10:18 -07:00
b4b4r07
3ca90a4262 Add positive test for project.GetPermissionScheme 2018-05-15 04:35:03 +09:00
b4b4r07
4ecfcbf5da Add new endpoint for getting assigned permission scheme for the project 2018-05-12 16:28:05 +09:00
Shaun Dunning
2267024e03 adds ability to list projects with query params 2018-01-31 10:34:47 -05:00
Andy Grunwald
cdb3939c4c Renamed unit tests according golang standard 2016-07-17 12:13:08 +02:00
Andy Grunwald
7ac3d14dbc go fmt, go doc and reuse of Project struct 2016-06-03 23:25:18 +02:00
Andy Grunwald
7c3e481c65 Renamed "json_mocks" into "mocks" 2016-06-03 23:16:21 +02:00
Evgen Kostenko
c66958e3f2 refactor project tests + go fmt 2016-06-02 15:59:40 +03:00
Evgen Kostenko
c9ac91a57c add one more test for project service 2016-06-01 21:36:11 +03:00
Evgen Kostenko
3b2cee5d9b Add project and tests 2016-06-01 15:13:11 +03:00