Skip to content

SONARPY-2193: Update sonarlint-core.version to v10 (major) #2068

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 2 commits into from
Oct 14, 2024

Conversation

joke1196
Copy link
Contributor

No description provided.

@joke1196 joke1196 force-pushed the SONARPY-2193 branch 2 times, most recently from 046c5af to 5ae09ba Compare October 13, 2024 18:09
@joke1196 joke1196 requested a review from Seppli11 October 13, 2024 18:10
Copy link
Contributor

@Seppli11 Seppli11 left a comment

Choose a reason for hiding this comment

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

I left two comments about some small stuff.
Apart from that, LGTM!

Comment on lines 124 to 126
List<String> logs = logsByLevel.getOrDefault(level, new ArrayList<>());
logs.add(formattedMessage);
logsByLevel.putIfAbsent(level, logs);
Copy link
Contributor

Choose a reason for hiding this comment

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

I find the version above a bit more concise

Suggested change
List<String> logs = logsByLevel.getOrDefault(level, new ArrayList<>());
logs.add(formattedMessage);
logsByLevel.putIfAbsent(level, logs);
logsByLevel.computeIfAbsent(level, k -> new ArrayList<>()).add(formattedMessage);

Copy link
Contributor

Choose a reason for hiding this comment

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

Would it maybe make sense to change this class's name to SonarLintIPythonTest or similar, to reflect that it does the something as SonarLint but for ipython?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I think it makes a lot of sense!

Copy link

@joke1196 joke1196 merged commit cbef8fd into master Oct 14, 2024
10 checks passed
@joke1196 joke1196 deleted the SONARPY-2193 branch October 14, 2024 08:27
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.

None yet

2 participants