Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated code style #308

Merged
merged 15 commits into from
Sep 16, 2024
Merged

Updated code style #308

merged 15 commits into from
Sep 16, 2024

Conversation

Fank
Copy link
Collaborator

@Fank Fank commented Aug 18, 2024

Changed Id -> ID
Aligned function comments with function arguments
Added linter rule to prevent unwanted future style changes to github workflows.

Fank added 3 commits August 18, 2024 12:19
Took 10 minutes
Took 29 minutes
Took 3 minutes
)

func New(httpClient common.HttpClient, site string) (*Client, error) {
func New(httpClient common.HTTPClient, site string) (*Client, error) {

Check warning

Code scanning / Revive (reported by Codacy)

exported function New should have comment or be unexported Warning

exported function New should have comment or be unexported
@@ -75,7 +76,7 @@
Analytics *internal.AnalyticsService
}

func (c *Client) NewRequest(ctx context.Context, method, urlStr, type_ string, body interface{}) (*http.Request, error) {
func (c *Client) NewRequest(ctx context.Context, method, urlStr, contentType string, body interface{}) (*http.Request, error) {

Check warning

Code scanning / Revive (reported by Codacy)

exported method Client.NewRequest should have comment or be unexported Warning

exported method Client.NewRequest should have comment or be unexported
)

func New(httpClient common.HttpClient, site string) (*Client, error) {
func New(httpClient common.HTTPClient, site string) (*Client, error) {

Check warning

Code scanning / Revive (reported by Codacy)

exported function New should have comment or be unexported Warning

exported function New should have comment or be unexported
@@ -57,7 +58,7 @@
CustomContent *internal.CustomContentService
}

func (c *Client) NewRequest(ctx context.Context, method, urlStr, type_ string, body interface{}) (*http.Request, error) {
func (c *Client) NewRequest(ctx context.Context, method, urlStr, contentType string, body interface{}) (*http.Request, error) {

Check warning

Code scanning / Revive (reported by Codacy)

exported method Client.NewRequest should have comment or be unexported Warning

exported method Client.NewRequest should have comment or be unexported
)

func New(httpClient common.HttpClient, site string) (*Client, error) {
func New(httpClient common.HTTPClient, site string) (*Client, error) {

Check warning

Code scanning / Revive (reported by Codacy)

exported function New should have comment or be unexported Warning

exported function New should have comment or be unexported
service/jira/issue.go Fixed Show fixed Hide fixed
service/jira/issue.go Fixed Show fixed Hide fixed
service/jira/issue.go Fixed Show fixed Hide fixed
service/jira/type.go Fixed Show fixed Hide fixed
service/jira/type.go Fixed Show fixed Hide fixed
Fank added 2 commits August 18, 2024 18:12
Took 5 minutes
Took 4 minutes
jira/v2/api_client_impl.go Fixed Show fixed Hide fixed
jira/v2/api_client_impl.go Fixed Show fixed Hide fixed
jira/v3/api_client_impl.go Fixed Show fixed Hide fixed
jira/v3/api_client_impl.go Fixed Show fixed Hide fixed
Fank added 5 commits August 18, 2024 18:25
Took 9 minutes
Took 13 minutes
Took 4 minutes
Took 2 minutes
Took 2 minutes
@Fank Fank marked this pull request as ready for review August 18, 2024 09:59
@Fank
Copy link
Collaborator Author

Fank commented Aug 18, 2024

@ctreminiom i would recomemnd squashing my commits, always.

@Fank Fank requested a review from ctreminiom August 18, 2024 10:00
Copy link

codecov bot commented Aug 18, 2024

Codecov Report

Attention: Patch coverage is 96.51163% with 9 lines in your changes missing coverage. Please review.

Project coverage is 88.90%. Comparing base (5b6f46a) to head (c70314a).
Report is 29 commits behind head on main.

Files Patch % Lines
admin/api_client_impl.go 66.66% 1 Missing and 1 partial ⚠️
assets/api_client_impl.go 60.00% 1 Missing and 1 partial ⚠️
jira/agile/api_client_impl.go 60.00% 1 Missing and 1 partial ⚠️
jira/sm/api_client_impl.go 50.00% 1 Missing and 1 partial ⚠️
jira/internal/workflow_status_impl.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #308      +/-   ##
==========================================
+ Coverage   88.88%   88.90%   +0.01%     
==========================================
  Files         158      158              
  Lines       12376    12308      -68     
==========================================
- Hits        11000    10942      -58     
+ Misses        724      720       -4     
+ Partials      652      646       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Fank added 2 commits August 19, 2024 08:35
Took 10 minutes
Took 9 minutes
@Fank Fank merged commit a8ccf40 into main Sep 16, 2024
26 checks passed
@Fank Fank deleted the fk_codestyle3 branch September 16, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants