Skip to content

Code Arrangement changes #3 - #5420

Merged
timosachsenberg merged 4 commits into
OpenMS:developfrom
Arraxx:codearr3
Jul 15, 2021
Merged

timosachsenberg merged 4 commits into
OpenMS:developfrom
Arraxx:codearr3

Conversation

@Arraxx

@Arraxx Arraxx commented Jul 15, 2021

Copy link
Copy Markdown
Contributor

Description

Code Arrangement Changes for improved readability.

Checklist:

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes. (Tick if no updates were necessary.)

How can I get additional information on failed tests during CI:

If your PR is failing you can check out

Note:

  • Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).

@Arraxx

Arraxx commented Jul 15, 2021

Copy link
Copy Markdown
Contributor Author

Apologies, I messed up the previous pull request while force pushing.
I have made the required changes and now it is ready for review @timosachsenberg .

@timosachsenberg

Copy link
Copy Markdown
Contributor

no worries :) thanks!

else
conflict_found = true;
//
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

here as well

String r;
CompomerSide::const_iterator it = cmp_[side].begin();
for (; it != cmp_[side].end(); ++it)
for (const auto &[formula, adduct] : cmp_[side])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nitpicking: we usually write the const auto& [... instead of auto &[

if (cmp_[side].size() != 1)
return false;

{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove extra spaces and below

// first by net_charge
if (c1.net_charge_ < c2.net_charge_)
return true;
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here... please check also other changes. Will not point out all of them :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Okay :)

@timosachsenberg

Copy link
Copy Markdown
Contributor

thanks. only minor comments on style things

@Arraxx

Arraxx commented Jul 15, 2021

Copy link
Copy Markdown
Contributor Author

Ready for review @timosachsenberg .

@timosachsenberg
timosachsenberg merged commit 28b1a58 into OpenMS:develop Jul 15, 2021
@Arraxx

Arraxx commented Jul 15, 2021

Copy link
Copy Markdown
Contributor Author

Thanks :) @timosachsenberg

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