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

Consolidate namespace and file location #2449

Conversation

vbreuss
Copy link
Contributor

@vbreuss vbreuss commented Nov 9, 2023

Fix ReSharper issue: "Namespace does not correspond to file location"

IMPORTANT

  • If the PR touches the public API, the changes have been approved in a separate issue with the "api-approved" label.
  • The code complies with the Coding Guidelines for C#.
  • The changes are covered by unit tests which follow the Arrange-Act-Assert syntax and the naming conventions such as is used in these tests.
  • If the PR adds a feature or fixes a bug, please update the release notes with a functional description that explains what the change means to consumers of this library, which are published on the website.
  • If the PR changes the public API the changes needs to be included by running AcceptApiChanges.ps1 or AcceptApiChanges.sh.
  • If the PR affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
    • Please also run ./build.sh --target spellcheck or .\build.ps1 --target spellcheck before pushing and check the good outcome

Sorry, something went wrong.

@vbreuss vbreuss marked this pull request as ready for review November 9, 2023 10:57
@coveralls
Copy link

coveralls commented Nov 9, 2023

Pull Request Test Coverage Report for Build 6835431454

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.444%

Totals Coverage Status
Change from base Build 6834887943: 0.0%
Covered Lines: 11741
Relevant Lines: 11926

💛 - Coveralls

Copy link

github-actions bot commented Nov 9, 2023

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

  1. Register at Qodana Cloud and configure the action
  2. Use GitHub Code Scanning with Qodana
  3. Host Qodana report at GitHub Pages
  4. Inspect and use qodana.sarif.json (see the Qodana SARIF format for details)

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2023.2.8
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

@dennisdoomen dennisdoomen requested a review from jnyrup November 9, 2023 15:40
@dennisdoomen dennisdoomen enabled auto-merge (squash) November 9, 2023 15:40
auto-merge was automatically disabled November 11, 2023 16:27

Head branch was pushed to by a user without write access

@vbreuss vbreuss force-pushed the topic/consolidate-namespace-and-file-location branch from 7d0c9c9 to ac449de Compare November 11, 2023 16:27
@vbreuss vbreuss force-pushed the topic/consolidate-namespace-and-file-location branch from ac449de to 7baf695 Compare November 11, 2023 16:38
@vbreuss
Copy link
Contributor Author

vbreuss commented Nov 11, 2023

@jnyrup :
I agree with your sentiment, that analyzers should be taken with a grain of salt, but they normally indicate a good spot to have a better look. If the decision is that the code is correct, I try to disable the analyzer in this case, so that it is clear that this was intentional.

I now moved the AssemblyAssertions class to the Types/ directory and adjusted the namespace accordingly.
Additionally I kept the namespace in the two polyfill classes SystemExtensions and StringBuilderExtensions and moved them to a separate directory. This way it is clear, that these are intended as polyfill and they can be excluded from analyzers.

@jnyrup jnyrup requested a review from dennisdoomen November 11, 2023 17:39
@vbreuss
Copy link
Contributor Author

vbreuss commented Nov 15, 2023

@dennisdoomen : Do I have to do something more to merge the pull request?
image

@dennisdoomen dennisdoomen merged commit 3d5ba14 into fluentassertions:develop Nov 16, 2023
@vbreuss vbreuss deleted the topic/consolidate-namespace-and-file-location branch November 16, 2023 06:39
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.

None yet

5 participants