Skip to content

build: Set language to latest #388

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 8 commits into from
May 12, 2025
Merged

build: Set language to latest #388

merged 8 commits into from
May 12, 2025

Conversation

askpt
Copy link
Member

@askpt askpt commented May 2, 2025

This PR

This pull request includes updates to the project setup, language version requirements, and namespace declarations across multiple files. The most significant changes involve updating the .NET version recommendation, removing explicit language version declarations, and adopting file-scoped namespaces for improved readability and consistency.

Project Setup and Requirements:

  • Updated the recommended .NET version from 6+ to 8+ in CONTRIBUTING.md. Removed references to specific C# language versions in project setup instructions.
  • Adjusted numbering in the project setup steps in CONTRIBUTING.md for clarity and consistency.

Language Version Simplification:

  • Removed <LangVersion> property from .csproj files in several projects (OpenFeature.Contrib.Providers.Flagsmith, OpenFeature.Contrib.Providers.Flipt, and OpenFeature.Contrib.Providers.GOFeatureFlag). This change relies on the default language version provided by the target framework. [1] [2] [3]

Namespace Modernization:

  • Converted namespaces to file-scoped format across multiple files in the OpenFeature.Contrib.Providers.GOFeatureFlag directory, including GoFeatureFlagProvider.cs, GoFeatureFlagProviderOptions.cs, and various exception and converter files. This change improves readability and aligns with modern C# conventions. [1] [2] [3] [4] [5] and others)

These changes collectively modernize the codebase, simplify project configuration, and enhance maintainability.

askpt added 3 commits May 2, 2025 08:01
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
- Updated DictionaryConverter to improve code clarity and structure.
- Enhanced JsonConverterExtensions with better documentation.
- Refined OpenFeatureStructureConverter and OpenFeatureValueConverter for consistency and readability.
- Simplified exception classes (FlagDisabled, FlagNotFoundError, GeneralError, etc.) by removing unnecessary comments and improving documentation.
- Improved error handling in GoFeatureFlagException and its derived classes.
- Streamlined the implementation of GoFeatureFlagExtensions for better usability.
- Enhanced EnrichEvaluationContextHook to clarify its purpose and improve metadata handling.
- Refactored ExporterMetadata to encapsulate metadata building logic more effectively.
- Improved the structure and clarity of OfrepRequest and OfrepResponse classes.

Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
@askpt askpt marked this pull request as ready for review May 2, 2025 07:04
@askpt askpt requested review from a team as code owners May 2, 2025 07:04
@askpt askpt marked this pull request as draft May 2, 2025 07:59
@askpt
Copy link
Member Author

askpt commented May 2, 2025

Converting this to draft until #386 is merged

askpt added 4 commits May 6, 2025 09:20
# Conflicts:
#	src/OpenFeature.Contrib.Providers.Flagsmith/OpenFeature.Contrib.Providers.Flagsmith.csproj
#	src/OpenFeature.Contrib.Providers.Flipt/OpenFeature.Contrib.Providers.Flipt.csproj
#	src/OpenFeature.Contrib.Providers.GOFeatureFlag/OpenFeature.Contrib.Providers.GOFeatureFlag.csproj
#	test/OpenFeature.Contrib.Providers.Flipt.Test/OpenFeature.Contrib.Providers.Flipt.Test.csproj
# Conflicts:
#	src/OpenFeature.Contrib.Providers.Flagsmith/OpenFeature.Contrib.Providers.Flagsmith.csproj
#	src/OpenFeature.Contrib.Providers.GOFeatureFlag/OpenFeature.Contrib.Providers.GOFeatureFlag.csproj
@askpt askpt marked this pull request as ready for review May 12, 2025 16:13
@askpt askpt merged commit e665fe8 into main May 12, 2025
11 checks passed
@askpt askpt deleted the askpt/lang-latest branch May 12, 2025 16:52
weyert pushed a commit to weyert/dotnet-sdk-contrib that referenced this pull request May 30, 2025
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: Weyert de Boer <weyert@innerfuse.biz>
weyert pushed a commit to weyert/dotnet-sdk-contrib that referenced this pull request Jun 19, 2025
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
weyert pushed a commit to weyert/dotnet-sdk-contrib that referenced this pull request Jun 19, 2025
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: Weyert de Boer <weyert@innerfuse.biz>
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.

6 participants