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

Hurricup/exception fixes #2770

Merged
merged 3 commits into from
Oct 7, 2023
Merged

Hurricup/exception fixes #2770

merged 3 commits into from
Oct 7, 2023

Conversation

hurricup
Copy link
Collaborator

@hurricup hurricup commented Oct 7, 2023

No description provided.

- Disabled filerefs in literals
- Added ignored tokens
- Moved heredoc end to the code
@hurricup hurricup enabled auto-merge (rebase) October 7, 2023 14:00
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

Qodana for JVM

2640 new problems were found

Inspection name Severity Problems
Usage of API marked for removal 🔴 Failure 14
Missorted modifiers 🔶 Warning 613
Unused declaration 🔶 Warning 597
Deprecated API usage 🔶 Warning 229
Missing '@Override' annotation 🔶 Warning 212
Method can be made 'void' 🔶 Warning 78
Check dependency licenses 🔶 Warning 65
Method parameter always has the same value 🔶 Warning 46
Method always returns the same value 🔶 Warning 38
Hardcoded strings 🔶 Warning 35
@NotNull/@Nullable problems 🔶 Warning 34
'size() == 0' can be replaced with 'isEmpty()' 🔶 Warning 27
Class is exposed outside of its visibility scope 🔶 Warning 25
Method is identical to its super method 🔶 Warning 21
Unnecessary semicolon 🔶 Warning 21
Declaration can have 'final' modifier 🔶 Warning 15
Can use bounded wildcard 🔶 Warning 14
Redundant 'throws' clause 🔶 Warning 11
Field may be 'final' 🔶 Warning 8
C-style array declaration 🔶 Warning 7
'final' method in 'final' class 🔶 Warning 3
Raw use of parameterized class 🔶 Warning 3
Incorrect string capitalization 🔶 Warning 2
Missing required 'lang' attribute 🔶 Warning 2
A service can be converted to a light one 🔶 Warning 2
Statement lambda can be replaced with expression lambda 🔶 Warning 1
Explicit type can be replaced with '<>' 🔶 Warning 1
Lambda can be replaced with method reference 🔶 Warning 1
'protected' member in 'final' class 🔶 Warning 1
Unnecessary conversion to 'String' 🔶 Warning 1
Unnecessary modifier 🔶 Warning 1
Duplicate branches in 'switch' ◽️ Notice 505
Method can be extracted ◽️ Notice 6
Immutable collection creation can be replaced with collection factory call ◽️ Notice 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Dependencies licenses

Third-party software list

This page lists the third-party software dependencies used in perl5

Dependency Version Licenses
annotations 24.0.0 Apache-2.0
ant-launcher 1.10.13 Apache-2.0
W3C-19980720
ant 1.10.13 Apache-2.0
W3C-19980720
clouds-docker-impl ideaiu-iu-232.8660.185-withsources Apache-2.0
copyright ideaic-ic-232.8660.185-withsources Apache-2.0
copyright ideaiu-iu-232.8660.185-withsources Apache-2.0
grammar-kit 2022.3.2 Apache-2.0
ideaic 2023.2 Apache-2.0
java-coverage ideaiu-iu-232.8660.185-withsources Apache-2.0
java ideaic-ic-232.8660.185-withsources Apache-2.0
jflex 1.9.2 BSD-3-Clause
jsr305 3.0.2 Apache-2.0
kotlin-stdlib-common 1.9.10 Apache-2.0
kotlin-stdlib-jdk7 1.9.10 Apache-2.0
kotlin-stdlib-jdk8 1.9.10 Apache-2.0
kotlin-stdlib 1.9.10 Apache-2.0
platform-langinjection ideaic-ic-232.8660.185-withsources Apache-2.0
platform-langinjection ideaiu-iu-232.8660.185-withsources Apache-2.0
remoterun ideaiu-iu-232.8660.185-withsources Apache-2.0
terminal ideaic-ic-232.8660.185-withsources Apache-2.0
terminal ideaiu-iu-232.8660.185-withsources Apache-2.0
webdeployment ideaiu-iu-232.8660.185-withsources Apache-2.0
Contact Qodana team

Contact us at [email protected]

StringBuilder tokenTypesMappings = new StringBuilder("Token types mappings:\n");
elementTypesMappings.keySet().stream()
.sorted(Comparator.comparing(Object::toString))
.forEach(elementType -> {

Check warning

Code scanning / QDJVM

Statement lambda can be replaced with expression lambda Warning test

Statement lambda can be replaced with expression lambda
@hurricup hurricup merged commit 3af2605 into master Oct 7, 2023
37 checks passed
@hurricup hurricup deleted the hurricup/exception-fixes branch October 7, 2023 16:31
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 7, 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 4 Code Smells

82.5% 82.5% Coverage
0.0% 0.0% Duplication

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.

1 participant