chore(linter): fix linter issue in api and cmd package#5413
chore(linter): fix linter issue in api and cmd package#5413Skarlso merged 13 commits intoexternal-secrets:mainfrom
api and cmd package#5413Conversation
Signed-off-by: Olumide Ogundele <olumideralph@gmail.com>
|
@Lumexralph Ugh, do you know why there might be so much duplication all of a sudden? |
|
don't think that duplication means a lot in this context. It complains about comments being duplicated. Sentences in comments follow a similar structure, e.g. |
|
@Skarlso I have no idea. I would have expected this to be the code but will give it a closer look. |
|
Okay fine by me. |
Signed-off-by: Olumide Ogundele <olumideralph@gmail.com>
Signed-off-by: Olumide Ogundele <olumideralph@gmail.com>
Signed-off-by: Olumide Ogundele <olumideralph@gmail.com>
Signed-off-by: Olumide Ogundele <olumideralph@gmail.com>
Signed-off-by: Olumide Ogundele <olumideralph@gmail.com>
Signed-off-by: Olumide Ogundele <olumideralph@gmail.com>
Signed-off-by: Olumide Ogundele <olumideralph@gmail.com>
|
@Skarlso @moolen, I don't know when sonarqube was configured, but I guess that since the new code added comments to the api packages, it detected them as new code and flagged them as duplicates, which is inevitable since they are api versions. I excluded the packages from sonarqube, but if you have other suggestions, I'm happy to consider them. |
|
Should be alright. |
Signed-off-by: Olumide Ogundele <olumideralph@gmail.com>
|
Hi @Skarlso, any chance I can get this PR in so that I can finally add the PR for configuring the revive linter? |
|
Yes, I'm trying. :D I just didn't have the time yet. |
|
Okay, this looks right. Nothing is deleted this time. :D |
|
/ok-to-test sha=232ad44e5d8e25b860c35c50088827bd84147295 |
|
Glanced at it - LGTM. |
|
Will take another pass when I have more energy / focus to go over so many changes 😅 |
|
would have to wait before getting the last PR in because that'll configure the linter |
|
…secrets#5413) * chore(linter): fix linter issue in api and cmd package Signed-off-by: Olumide Ogundele <olumideralph@gmail.com> * configure sonarqube to ignore godoc comments as duplicates Signed-off-by: Olumide Ogundele <olumideralph@gmail.com> * update sonarqube config Signed-off-by: Olumide Ogundele <olumideralph@gmail.com> * update sonarqube config Signed-off-by: Olumide Ogundele <olumideralph@gmail.com> * update sonarqube config Signed-off-by: Olumide Ogundele <olumideralph@gmail.com> * update sonarqube config Signed-off-by: Olumide Ogundele <olumideralph@gmail.com> * update sonarqube config Signed-off-by: Olumide Ogundele <olumideralph@gmail.com> * update sonarqube config Signed-off-by: Olumide Ogundele <olumideralph@gmail.com> * update the api docs Signed-off-by: Olumide Ogundele <olumideralph@gmail.com> --------- Signed-off-by: Olumide Ogundele <olumideralph@gmail.com> Co-authored-by: Gergely Brautigam <skarlso777@gmail.com> Signed-off-by: Samuel Molling <samuelmolling@gmail.com>



Problem Statement
According to this PR #3396 was implemented, the revive linter wasn't configured because it had loads of issues to be fixed. This PR configures the revive linter and fixes all the issues raised by the linter.
Related Issue
Fixes #3397
Proposed Changes
Fix all the issues raised by the linter so that we can configure the revive linter. It focuses on fixes the lint issues in the
apisandcmdpackage.Format
Please ensure that your PR follows the following format for the title:
Where
scopeis optionally one of:Checklist
git commit --signoffmake testmake reviewable