Skip to content

refactor: Clean codes #346

refactor: Clean codes

refactor: Clean codes #346

GitHub Actions / Qodana Community for JVM completed Feb 22, 2025 in 0s

49 new problems found by Qodana Community for JVM

Qodana Community for JVM

49 new problems were found

Inspection name Severity Problems
Unused symbol 🔶 Warning 19
Constructor parameter is never used as a property 🔶 Warning 4
Redundant nullable return type 🔶 Warning 2
Usage of redundant or deprecated syntax or deprecated symbols 🔶 Warning 1
Unstable API Usage 🔶 Warning 1
Class member can have 'private' visibility ◽️ Notice 9
Function or property has platform type ◽️ Notice 7
Unnecessary type argument ◽️ Notice 5
Nested lambda has shadowed implicit parameter ◽️ 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/qodana-action@v2024.3.4
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

Details

This result was published with Qodana GitHub Action

Annotations

Check warning on line 51 in modules/core/src/main/kotlin/com/github/l34130/mise/core/command/MiseCommandLineExceptions.kt

See this annotation in the file changed.

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

Constructor parameter is never used as a property

Constructor parameter is never used as a property

Check warning on line 20 in modules/core/src/main/kotlin/com/github/l34130/mise/core/setting/MiseConfigurable.kt

See this annotation in the file changed.

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

Constructor parameter is never used as a property

Constructor parameter is never used as a property

Check warning on line 19 in modules/core/src/main/kotlin/com/github/l34130/mise/core/execution/configuration/MiseTomlTaskRunConfigurationEditor.kt

See this annotation in the file changed.

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

Constructor parameter is never used as a property

Constructor parameter is never used as a property

Check warning on line 9 in modules/core/src/main/kotlin/com/github/l34130/mise/core/execution/configuration/MiseTomlTaskRunConfigurationFactory.kt

See this annotation in the file changed.

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

Constructor parameter is never used as a property

Constructor parameter is never used as a property

Check notice on line 91 in modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/psi/MiseTomlPsiPatterns.kt

See this annotation in the file changed.

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

Function or property has platform type

Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.

Check notice on line 87 in modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/psi/MiseTomlPsiPatterns.kt

See this annotation in the file changed.

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

Function or property has platform type

Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.

Check notice on line 113 in modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/psi/MiseTomlPsiPatterns.kt

See this annotation in the file changed.

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

Function or property has platform type

Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.

Check notice on line 31 in modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/psi/MiseTomlPsiPatterns.kt

See this annotation in the file changed.

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

Function or property has platform type

Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.

Check notice on line 109 in modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/psi/MiseTomlPsiPatterns.kt

See this annotation in the file changed.

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

Function or property has platform type

Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.

Check notice on line 116 in modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/psi/MiseTomlPsiPatterns.kt

See this annotation in the file changed.

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

Function or property has platform type

Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.

Check notice on line 30 in modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/psi/MiseTomlPsiPatterns.kt

See this annotation in the file changed.

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

Function or property has platform type

Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.

Check warning on line 84 in modules/core/src/main/kotlin/com/github/l34130/mise/core/execution/configuration/MiseTomlTaskRunConfiguration.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 String

Check notice on line 54 in modules/core/src/main/kotlin/com/github/l34130/mise/core/MiseService.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Function 'getFileTaskDirectories' could be private

Check notice on line 8 in modules/core/src/main/kotlin/com/github/l34130/mise/core/toolwindow/nodes/MiseEnvironmentNode.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Property 'environments' could be private

Check notice on line 12 in modules/core/src/main/kotlin/com/github/l34130/mise/core/toolwindow/nodes/MiseToolNode.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Property 'tools' could be private

Check notice on line 51 in modules/core/src/main/kotlin/com/github/l34130/mise/core/command/MiseCommandLineExceptions.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Property 'configFilePath' could be private

Check notice on line 118 in modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/psi/MiseTomlPsiPatterns.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Function 'with' could be private

Check notice on line 115 in modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/psi/MiseTomlPsiPatterns.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Property 'onTaskRunString' could be private

Check notice on line 52 in modules/core/src/main/kotlin/com/github/l34130/mise/core/MiseService.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Function 'getMiseTomlFiles' could be private

Check notice on line 111 in modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/psi/MiseTomlPsiPatterns.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Property 'onTaskWaitForString' could be private

Check notice on line 89 in modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/psi/MiseTomlPsiPatterns.kt

See this annotation in the file changed.

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

Class member can have 'private' visibility

Property 'onTaskWaitForArray' could be private

Check notice on line 35 in modules/core/src/main/kotlin/com/github/l34130/mise/core/setting/MiseSettings.kt

See this annotation in the file changed.

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

Nested lambda has shadowed implicit parameter

Implicit parameter 'it' of enclosing lambda is shadowed

Check warning on line 67 in modules/core/src/main/kotlin/com/github/l34130/mise/core/model/MiseTask.kt

See this annotation in the file changed.

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

Redundant nullable return type

'resolveOrNull' always returns non-null type

Check warning on line 44 in modules/products/nodejs/src/main/kotlin/com/github/l34130/mise/nodejs/run/MiseNodeRunConfigurationExtension.kt

See this annotation in the file changed.

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

Redundant nullable return type

'createLaunchSession' always returns non-null type

Check notice on line 59 in modules/core/src/main/kotlin/com/github/l34130/mise/core/MiseTomlFileVfsListener.kt

See this annotation in the file changed.

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

Unnecessary type argument

Remove explicit type arguments