Skip to content

Merge pull request #323 from PRGfx/fusion-refactoring #675

Merge pull request #323 from PRGfx/fusion-refactoring

Merge pull request #323 from PRGfx/fusion-refactoring #675

GitHub Actions / Qodana Community for JVM completed Dec 22, 2024 in 0s

235 new problems found by Qodana Community for JVM

Qodana Community for JVM

235 new problems were found

Inspection name Severity Problems
@NotNull/@Nullable problems 🔶 Warning 42
Nullability and data flow problems 🔶 Warning 40
Unused import 🔶 Warning 40
Constant values 🔶 Warning 33
Incorrect string capitalization 🔶 Warning 31
Unstable API Usage 🔶 Warning 14
Unchecked warning 🔶 Warning 10
Class is exposed outside of its visibility scope 🔶 Warning 5
'equals()' between objects of inconvertible types 🔶 Warning 2
Field may be 'final' 🔶 Warning 2
'size() == 0' can be replaced with 'isEmpty()' 🔶 Warning 2
Unnecessarily escaped character 🔶 Warning 2
Redundant 'Collection.addAll()' call 🔶 Warning 1
Condition is covered by further condition 🔶 Warning 1
Inner class may be 'static' 🔶 Warning 1
Unnecessary 'null' check before method call 🔶 Warning 1
'protected' member in 'final' class 🔶 Warning 1
Redundant 'isInstance()' or 'cast()' call 🔶 Warning 1
'String.equals()' can be replaced with 'String.isEmpty()' 🔶 Warning 1
Unnecessary modifier 🔶 Warning 1
Constant values ◽️ Notice 3
Regular expression can be simplified ◽️ Notice 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/[email protected]
        with:
          upload-result: true
Contact Qodana team

Contact us at [email protected]

Details

This result was published with Qodana GitHub Action

Annotations

Check warning on line 10 in src/main/java/de/vette/idea/neos/lang/afx/psi/AfxElementTypes.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Class is exposed outside of its visibility scope

Class `AfxAttributeElementType` is exposed outside its defined visibility scope

Check warning on line 13 in src/main/java/de/vette/idea/neos/lang/afx/psi/AfxElementTypes.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Class is exposed outside of its visibility scope

Class `AfxElementType` is exposed outside its defined visibility scope

Check warning on line 12 in src/main/java/de/vette/idea/neos/lang/afx/psi/AfxElementTypes.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Class is exposed outside of its visibility scope

Class `AfxElementType` is exposed outside its defined visibility scope

Check warning on line 9 in src/main/java/de/vette/idea/neos/lang/afx/psi/AfxElementTypes.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Class is exposed outside of its visibility scope

Class `AfxTagElementType` is exposed outside its defined visibility scope

Check warning on line 14 in src/main/java/de/vette/idea/neos/lang/afx/psi/AfxElementTypes.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Class is exposed outside of its visibility scope

Class `AfxElementType` is exposed outside its defined visibility scope

Check warning on line 67 in src/main/java/de/vette/idea/neos/util/PhpElementsUtil.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Redundant 'Collection.addAll()' call

'addAll()' call can be replaced with parametrized constructor call

Check warning on line 128 in src/main/java/de/vette/idea/neos/lang/fusion/refactoring/MovePrototypeToFile.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Condition is covered by further condition

Condition 'parent instanceof FusionBlock' covered by subsequent condition 'parent instanceof FusionPrototypeSignature'

Check warning on line 77 in src/main/java/de/vette/idea/neos/lang/fusion/usages/PrototypeFindUsagesProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `element instanceof FusionPrototypeSignature` is always `true`

Check warning on line 63 in src/main/java/de/vette/idea/neos/lang/fusion/editor/FusionBreadcrumbsInfoProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Result of `e.getParent()` is always 'null'

Check warning on line 144 in src/main/java/de/vette/idea/neos/lang/fusion/structure/FusionTreeElement.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `part instanceof FusionMetaProperty` is always `true`

Check warning on line 36 in src/main/java/de/vette/idea/neos/lang/fusion/psi/impl/ext/FusionCopiedPrototypeSignatureImplMixin.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Result of `getParent().getParent()` is always 'null'

Check warning on line 57 in src/main/java/de/vette/idea/neos/lang/fusion/editor/FusionBreadcrumbsInfoProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `e instanceof FusionBlock && e.getParent() instanceof FusionPropertyCopy` is always `false`

Check warning on line 56 in src/main/java/de/vette/idea/neos/lang/fusion/usages/UsagesTypeProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `parentElement instanceof FusionCopiedPrototypeSignature` is always `false`

Check warning on line 49 in src/main/java/de/vette/idea/neos/lang/fusion/usages/PrototypeFindUsagesProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `psiElement instanceof FusionPrototypeSignature` is always `true`

Check notice on line 56 in src/main/java/de/vette/idea/neos/lang/fusion/usages/UsagesTypeProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Value `parentElement` is always 'null'

Check warning on line 39 in src/main/java/de/vette/idea/neos/lang/fusion/resolve/ref/FusionStringReference.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `getElement() != null` is always `true`

Check warning on line 92 in src/main/java/de/vette/idea/neos/lang/fusion/structure/FusionTreeElement.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `!(currentSibling instanceof FusionBlock)` is always `false` when reached

Check warning on line 49 in src/main/java/de/vette/idea/neos/lang/fusion/psi/impl/ext/FusionPrototypeSignatureImplMixin.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Result of `getParent().getParent()` is always 'null'

Check warning on line 57 in src/main/java/de/vette/idea/neos/lang/fusion/editor/FusionBreadcrumbsInfoProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `e.getParent() instanceof FusionPropertyCopy` is always `false` when reached

Check warning on line 65 in src/main/java/de/vette/idea/neos/lang/fusion/usages/PrototypeFindUsagesProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `element instanceof FusionPrototypeSignature` is always `true`

Check warning on line 81 in src/main/java/de/vette/idea/neos/lang/fusion/editor/FusionBreadcrumbsInfoProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `e instanceof FusionMetaProperty` is always `true`

Check warning on line 45 in src/main/java/de/vette/idea/neos/errorReporting/SentryErrorReporter.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `ideaEvent.getData() instanceof AbstractMessage` is always `true` when reached

Check warning on line 47 in src/main/java/de/vette/idea/neos/lang/fusion/editor/FusionBreadcrumbsInfoProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `e instanceof FusionSinglePath` is always `true`

Check warning on line 47 in src/main/java/de/vette/idea/neos/lang/fusion/editor/FusionBreadcrumbsInfoProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `e instanceof FusionSinglePath || e instanceof FusionMetaProperty || e instanceof FusionPrototypeSign...` is always `true`

Check warning on line 49 in src/main/java/de/vette/idea/neos/lang/fusion/psi/impl/ext/FusionPrototypeSignatureImplMixin.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Constant values

Condition `getParent().getParent() instanceof FusionPropertyCopy` is always `false` when reached