Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Impl/code verification#324

Merged
nxtcoder17 merged 5 commits into
mainfrom
impl/code-verification
May 24, 2024
Merged

Impl/code verification#324
nxtcoder17 merged 5 commits into
mainfrom
impl/code-verification

Conversation

@nxtcoder36
Copy link
Copy Markdown
Contributor

@nxtcoder36 nxtcoder36 commented May 23, 2024

Waitinglist on signup implementation

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @nxtcoder36 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 4 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

CreationTime func(childComplexity int) int
DisplayName func(childComplexity int) int
ID func(childComplexity int) int
Id func(childComplexity int) int
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Inconsistent naming convention for 'Id'.

The change from 'ID' to 'Id' is inconsistent with Go naming conventions, which typically use 'ID' for acronyms. Consider reverting to 'ID' for consistency and readability.

Suggested change
Id func(childComplexity int) int
ID func(childComplexity int) int


case "Account.id":
if e.complexity.Account.ID == nil {
if e.complexity.Account.Id == nil {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Inconsistent naming convention for 'Id'.

The change from 'ID' to 'Id' is inconsistent with Go naming conventions, which typically use 'ID' for acronyms. Consider reverting to 'ID' for consistency and readability.

Suggested change
if e.complexity.Account.Id == nil {
if e.complexity.Account.ID == nil {


case "Invitation.id":
if e.complexity.Invitation.ID == nil {
if e.complexity.Invitation.Id == nil {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Inconsistent naming convention for 'Id'.

The change from 'ID' to 'Id' is inconsistent with Go naming conventions, which typically use 'ID' for acronyms. Consider reverting to 'ID' for consistency and readability.

Suggested change
if e.complexity.Invitation.Id == nil {
if e.complexity.Invitation.ID == nil {

resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Account().ID(rctx, obj)
return obj.Id, nil
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Inconsistent naming convention for 'Id'.

The change from 'ID' to 'Id' is inconsistent with Go naming conventions, which typically use 'ID' for acronyms. Consider reverting to 'ID' for consistency and readability.

Suggested change
return obj.Id, nil
return obj.ID, nil

@nxtcoder17 nxtcoder17 merged commit 3b87297 into main May 24, 2024
@nxtcoder17 nxtcoder17 deleted the impl/code-verification branch May 24, 2024 13:33
@nxtcoder17 nxtcoder17 self-assigned this May 24, 2024
abdheshnayak pushed a commit that referenced this pull request Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants