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

fix multiple different code smells #417

Merged
merged 13 commits into from Oct 31, 2023
Merged

fix multiple different code smells #417

merged 13 commits into from Oct 31, 2023

Conversation

Laurynas-Jagutis
Copy link
Member

@Laurynas-Jagutis Laurynas-Jagutis commented Oct 30, 2023

Fixed:

  • Most of "Remove this redundant cast."
  • All "Extract this nested conditional operator into an independent statement"

Signed-off-by: Laurynas Jagutis <laurynas.jagutis@alliander.com>
@Laurynas-Jagutis Laurynas-Jagutis added the improvement Improvement on internal implementation label Oct 30, 2023
@mgovers
Copy link
Member

mgovers commented Oct 30, 2023

FYI: your CI fails because of a known issue in the ubuntu container (more specifically with the combination clang + libstdc++). Re-running failed jobs should do the trick (maybe twice).

The specific issue causes this log, so if you see this, then you know that's what's wrong:

      /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: note: undefined function '_S_fractional_width' cannot be used in a constant expression
      /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2275:2: note: declared here
              _S_fractional_width()
              ^
      1 error generated.

Signed-off-by: Laurynas Jagutis <laurynas.jagutis@alliander.com>
Signed-off-by: Laurynas Jagutis <laurynas.jagutis@alliander.com>
Signed-off-by: Laurynas Jagutis <laurynas.jagutis@alliander.com>
@Laurynas-Jagutis
Copy link
Member Author

FYI: your CI fails because of a known issue in the ubuntu container (more specifically with the combination clang + libstdc++). Re-running failed jobs should do the trick (maybe twice).

The specific issue causes this log, so if you see this, then you know that's what's wrong:

      /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: note: undefined function '_S_fractional_width' cannot be used in a constant expression
      /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2275:2: note: declared here
              _S_fractional_width()
              ^
      1 error generated.

Tried rerunning the failed jobs multiple times now, did not help.

@mgovers
Copy link
Member

mgovers commented Oct 31, 2023

FYI: your CI fails because of a known issue in the ubuntu container (more specifically with the combination clang + libstdc++). Re-running failed jobs should do the trick (maybe twice).
The specific issue causes this log, so if you see this, then you know that's what's wrong:

      /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: note: undefined function '_S_fractional_width' cannot be used in a constant expression
      /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2275:2: note: declared here
              _S_fractional_width()
              ^
      1 error generated.

Tried rerunning the failed jobs multiple times now, did not help.

can you please change the base to feature/llvm-15-in-ci and merge that branch into this one? the fix in #418 should do the trick

Signed-off-by: Laurynas Jagutis <laurynas.jagutis@alliander.com>
Signed-off-by: Laurynas Jagutis <laurynas.jagutis@alliander.com>
Signed-off-by: Laurynas Jagutis <laurynas.jagutis@alliander.com>
Signed-off-by: Laurynas Jagutis <laurynas.jagutis@alliander.com>
@mgovers
Copy link
Member

mgovers commented Oct 31, 2023

@Laurynas-Jagutis please change the base branch as well (edit the PR), because otherwise, your PR will contain those changes as well, which is undesirable

@Laurynas-Jagutis Laurynas-Jagutis changed the base branch from main to feature/llvm-15-in-ci October 31, 2023 09:15
Base automatically changed from feature/llvm-15-in-ci to main October 31, 2023 09:57
Signed-off-by: Martijn Govers <martijn.govers@alliander.com>
Signed-off-by: Laurynas Jagutis <laurynas.jagutis@alliander.com>
Signed-off-by: Laurynas Jagutis <laurynas.jagutis@alliander.com>
@sonarcloud
Copy link

sonarcloud bot commented Oct 31, 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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@Laurynas-Jagutis Laurynas-Jagutis marked this pull request as ready for review October 31, 2023 11:52
@mgovers mgovers merged commit 799526d into main Oct 31, 2023
28 checks passed
@mgovers mgovers deleted the feature/code-smells-fix branch October 31, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement on internal implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants