Skip to content

feat: update reflector (#89) #91

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

Merged
merged 3 commits into from
Apr 17, 2025
Merged

feat: update reflector (#89) #91

merged 3 commits into from
Apr 17, 2025

Conversation

Groupguanfang
Copy link
Owner

No description provided.

@Copilot Copilot AI review requested due to automatic review settings April 17, 2025 14:05
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 9 out of 12 changed files in this pull request and generated 1 comment.

Files not reviewed (3)
  • package.json: Language not supported
  • packages/core/reflector/package.json: Language not supported
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

fixtures/reflector/main.ts:16

  • Class name 'testValue' does not follow standard PascalCase naming conventions. Consider renaming it to 'TestValue' for improved readability and consistency.
export class testValue<T> {}

if (typeof Reflect.metadata === 'function')
return Reflect.metadata(metadataKey, metadataValue)(_target, ctx, ...args)

throw new Error('[UNIOC] Cannot find metadata context, current environment is in legacy mode, please import `reflect-metadata` polyfill. if you want to using stage3 mode, please set `experimentalDecorators` to `true` in your tsconfig.json.')
Copy link
Preview

Copilot AI Apr 17, 2025

Choose a reason for hiding this comment

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

[nitpick] The error message contains grammatical inconsistencies; consider rephrasing it by capitalizing the sentence and replacing 'if you want to using stage3 mode' with 'If you want to use stage3 mode'.

Suggested change
throw new Error('[UNIOC] Cannot find metadata context, current environment is in legacy mode, please import `reflect-metadata` polyfill. if you want to using stage3 mode, please set `experimentalDecorators` to `true` in your tsconfig.json.')
throw new Error('[UNIOC] Cannot find metadata context, current environment is in legacy mode. Please import `reflect-metadata` polyfill. If you want to use stage3 mode, please set `experimentalDecorators` to `true` in your tsconfig.json.')

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

@Groupguanfang Groupguanfang merged commit 6689943 into v1 Apr 17, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants