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

Feature/102 fix the sonarcloud issues in iforwardsover #104

Merged

Conversation

lmalenfant
Copy link
Member

@hayakawa16 before I add reviewers to the PR, I would like to review the XML comments with you first, I think we should remove the comment that states "Overload of x function" because the fact that there are multiple method definitions, means that they are overloads so this comment seems redundant, what are your thoughts?

@lmalenfant lmalenfant linked an issue Sep 30, 2023 that may be closed by this pull request
@lmalenfant lmalenfant marked this pull request as draft September 30, 2023 16:36
@lmalenfant lmalenfant marked this pull request as ready for review October 5, 2023 03:47
Copy link
Member

Choose a reason for hiding this comment

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

This update does not remove build warning for Demo07pMCInversion: The event Demo07PmcInversion.PmcForwardSolver.PropertyChanged is never used. Will that be done in another update?

Copy link
Member Author

Choose a reason for hiding this comment

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

I just updated the part that was affected by the IForwardSolver changes, do you think we should fix this also?

Copy link
Member Author

Choose a reason for hiding this comment

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

I fixed this and a few other code quality suggestions in the file.

Copy link
Member

@hayakawa16 hayakawa16 left a comment

Choose a reason for hiding this comment

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

HUGE effort on the reorganization of the IForwardSolver. Thank you!

@lmalenfant
Copy link
Member Author

@dcuccia @hayakawa16 I plan to merge this PR tomorrow as it has been open for 2 weeks.

@sonarcloud
Copy link

sonarcloud bot commented Oct 11, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dcuccia
Copy link
Contributor

dcuccia commented Oct 11, 2023

@dcuccia @hayakawa16 I plan to merge this PR tomorrow as it has been open for 2 weeks.

I'll look at it tonight

Copy link
Contributor

@dcuccia dcuccia left a comment

Choose a reason for hiding this comment

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

@lmalenfant can you summarize what we did on this ticket? Was it just re-organizing the order of functions and fixing comments? (E.g. no changes to method signatures/API?) If we changed the API, a) how did we choose to augment/remove methods, and b) have we tested the "loosely types" Matlab calls??

@lmalenfant
Copy link
Member Author

Was it just re-organizing the order of functions and fixing comments? (E.g. no changes to method signatures/API?)

Yes exactly, no other changes.

@dcuccia
Copy link
Contributor

dcuccia commented Oct 11, 2023

Was it just re-organizing the order of functions and fixing comments? (E.g. no changes to method signatures/API?)

Yes exactly, no other changes.

Thanks. Please go ahead with the merge. I did see the removal of implicit "target typed" constructor calls in the solver demos. In my opinion, those are unnecessary additions that add verbosity (and decrease conciseness), but that's just a preference based on my experience with functional style programming.

@lmalenfant lmalenfant merged commit cc75823 into master Oct 11, 2023
2 checks passed
@lmalenfant lmalenfant deleted the feature/102-fix-the-sonarcloud-issues-in-iforwardsover branch October 11, 2023 03:49
@lmalenfant
Copy link
Member Author

lmalenfant commented Oct 11, 2023

@dcuccia

I did see the removal of implicit "target typed" constructor calls in the solver demos. In my opinion, those are unnecessary additions that add verbosity (and decrease conciseness), but that's just a preference based on my experience with functional style programming.

I completely agree with you for cases where the type is obvious but this in this code it is not obvious, this is the reasoning behind the change:
https://www.jetbrains.com/help/resharper/2023.2/ArrangeObjectCreationWhenTypeNotEvident.html

Since these scripts are for teaching purposes, I thought it would be good to put them back in. I tend to follow Resharper's advice because this type of change is their "Raison d’être" :)

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.

Fix the SonarCloud issues in IForwardSover
3 participants