Skip to content

fix: fix some code analysis warning

Codacy Production / Codacy Static Code Analysis required action Nov 5, 2023 in 0s

14 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 5
- Added 14
           

See the complete overview on Codacy

Annotations

Check warning on line 162 in app/src/main/java/com/amaze/filemanager/adapters/AppsRecyclerAdapter.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/adapters/AppsRecyclerAdapter.kt#L162

The function onBindViewHolder is too long (63). The maximum length is 60.

Check warning on line 297 in app/src/main/java/com/amaze/filemanager/adapters/AppsRecyclerAdapter.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/adapters/AppsRecyclerAdapter.kt#L297

The function showPopup is too long (70). The maximum length is 60.

Check warning on line 95 in app/src/main/java/com/amaze/filemanager/asynchronous/services/ZipService.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/asynchronous/services/ZipService.kt#L95

The function onStartCommand is too long (65). The maximum length is 60.

Check warning on line 252 in app/src/main/java/com/amaze/filemanager/filesystem/FileProperties.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/filesystem/FileProperties.kt#L252

The function remapPathForApi30OrAbove is missing documentation.

Check warning on line 56 in app/src/main/java/com/amaze/filemanager/filesystem/MakeFileOperation.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/filesystem/MakeFileOperation.kt#L56

The function mkfile is missing documentation.

Check warning on line 103 in app/src/main/java/com/amaze/filemanager/filesystem/MakeFileOperation.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/filesystem/MakeFileOperation.kt#L103

The function mktextfile is missing documentation.

Check warning on line 47 in app/src/main/java/com/amaze/filemanager/filesystem/RenameOperation.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/filesystem/RenameOperation.kt#L47

The function copyFile is too long (61). The maximum length is 60.

Check warning on line 184 in app/src/main/java/com/amaze/filemanager/ui/dialogs/SftpConnectDialog.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/ui/dialogs/SftpConnectDialog.kt#L184

The function initForm is too long (62). The maximum length is 60.

Check warning on line 47 in app/src/main/java/com/amaze/filemanager/ui/drag/RecyclerAdapterDragListener.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/ui/drag/RecyclerAdapterDragListener.kt#L47

The function onDrag is too long (207). The maximum length is 60.

Check warning on line 202 in app/src/main/java/com/amaze/filemanager/ui/fragments/CompressedExplorerFragment.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/ui/fragments/CompressedExplorerFragment.kt#L202

The function onViewCreated is too long (71). The maximum length is 60.

Check warning on line 34 in app/src/main/java/com/amaze/filemanager/ui/views/drawer/DrawerViewModel.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/ui/views/drawer/DrawerViewModel.kt#L34

The function putDrawerMetadata is missing documentation.

Check warning on line 39 in app/src/main/java/com/amaze/filemanager/utils/GenericExt.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/utils/GenericExt.kt#L39

This condition is too complex (5). Defined complexity threshold for conditions is set to '4'

Check warning on line 114 in app/src/main/java/com/amaze/filemanager/utils/MainActivityActionMode.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/utils/MainActivityActionMode.kt#L114

The function onPrepareActionMode is too long (125). The maximum length is 60.

Check warning on line 245 in app/src/main/java/com/amaze/filemanager/utils/MainActivityActionMode.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/utils/MainActivityActionMode.kt#L245

The function onActionItemClicked is too long (199). The maximum length is 60.