Skip to content
GitHub Actions / Qodana Community for JVM completed Feb 28, 2024 in 0s

42 new problems found by Qodana Community for JVM

Community for JVM

42 new problems were found

Inspection name Severity Problems
Usage of redundant or deprecated syntax or deprecated symbols 🔶 Warning 8
Redundant nullable return type 🔶 Warning 6
Unused import directive 🔶 Warning 4
Package name does not match containing directory ◽️ Notice 10
Class member can have 'private' visibility ◽️ Notice 8
Replace empty class body ◽️ Notice 3
Join declaration and assignment ◽️ Notice 2
Cascade 'if' can be replaced with 'when' ◽️ 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:

  1. Register at Qodana Cloud and configure the action
  2. Use GitHub Code Scanning with Qodana
  3. Host Qodana report at GitHub Pages
  4. Inspect and use qodana.sarif.json (see the Qodana SARIF format for details)

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 notice on line 71 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/completion/TypeQLCompletionContributor.kt

See this annotation in the file changed.

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

Cascade 'if' can be replaced with 'when'

Cascade 'if' should be replaced with 'when'

Check notice on line 82 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLUtils.kt

See this annotation in the file changed.

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

Join declaration and assignment

Can be joined with assignment

Check notice on line 93 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLUtils.kt

See this annotation in the file changed.

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

Join declaration and assignment

Can be joined with assignment

Check warning on line 43 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLElementFactory.kt

See this annotation in the file changed.

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

Usage of redundant or deprecated syntax or deprecated symbols

Elvis operator (?:) always returns the left operand of non-nullable type PsiTypeQLFile

Check warning on line 34 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLElementFactory.kt

See this annotation in the file changed.

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

Usage of redundant or deprecated syntax or deprecated symbols

Elvis operator (?:) always returns the left operand of non-nullable type PsiTypeQLFile

Check warning on line 97 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLElementFactory.kt

See this annotation in the file changed.

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

Usage of redundant or deprecated syntax or deprecated symbols

Elvis operator (?:) always returns the left operand of non-nullable type PsiTypeQLFile

Check warning on line 61 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLElementFactory.kt

See this annotation in the file changed.

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

Usage of redundant or deprecated syntax or deprecated symbols

Elvis operator (?:) always returns the left operand of non-nullable type PsiTypeQLFile

Check warning on line 88 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLElementFactory.kt

See this annotation in the file changed.

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

Usage of redundant or deprecated syntax or deprecated symbols

Elvis operator (?:) always returns the left operand of non-nullable type PsiTypeQLFile

Check warning on line 52 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLElementFactory.kt

See this annotation in the file changed.

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

Usage of redundant or deprecated syntax or deprecated symbols

Elvis operator (?:) always returns the left operand of non-nullable type PsiTypeQLFile

Check warning on line 79 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLElementFactory.kt

See this annotation in the file changed.

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

Usage of redundant or deprecated syntax or deprecated symbols

Elvis operator (?:) always returns the left operand of non-nullable type PsiTypeQLFile

Check warning on line 70 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLElementFactory.kt

See this annotation in the file changed.

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

Usage of redundant or deprecated syntax or deprecated symbols

Elvis operator (?:) always returns the left operand of non-nullable type PsiTypeQLFile

Check warning on line 26 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/refactor/TypeQLNamesValidator.kt

See this annotation in the file changed.

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

Unused import directive

Unused import directive

Check warning on line 25 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/refactor/TypeQLNamesValidator.kt

See this annotation in the file changed.

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

Unused import directive

Unused import directive

Check warning on line 27 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/refactor/TypeQLNamesValidator.kt

See this annotation in the file changed.

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

Unused import directive

Unused import directive

Check warning on line 24 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/refactor/TypeQLNamesValidator.kt

See this annotation in the file changed.

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

Unused import directive

Unused import directive

Check notice on line 41 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/constraint/PsiTypeQLSubType.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Property 'subType' could be private

Check notice on line 68 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/usage/TypeQLDeclarationFinder.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Function 'findDeclarations' could be private

Check notice on line 159 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/TypeQLParserDefinition.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Function 'getRuleTypeElement' could be private

Check notice on line 104 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLElementFactory.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Function 'createFile' could be private

Check notice on line 54 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/constraint/PsiTypeQLPlaysType.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Property 'playsScope' could be private

Check notice on line 148 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/TypeQLParserDefinition.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Function 'checkNode' could be private

Check notice on line 51 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/usage/TypeQLDeclarationFinder.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Function 'findDeclarations' could be private

Check notice on line 41 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/constraint/PsiTypeQLOwnsType.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Property 'ownsType' could be private

Check notice on line 1 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/inspection/invalidTypeUsage/TypeQLInvalidTypeUsageProvider.kt

See this annotation in the file changed.

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

Package name does not match containing directory

Package directive does not match the file location

Check notice on line 1 in src/main/kotlin/org/typedb/typeql/plugin/jetbrains/inspection/unusedDeclaration/TypeQLUnusedRoleDeclarationInspection.kt

See this annotation in the file changed.

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

Package name does not match containing directory

Package directive does not match the file location