Skip to content

add tests for SearchParameter(s)

Codacy Production / Codacy Static Code Analysis required action Jan 12, 2024 in 0s

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

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

Issues
======
+ Solved 2
- Added 16
           

Complexity increasing per file
==============================
- app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameterTest.kt  2
- app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt  7
- app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameters.kt  8
- app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameter.kt  2
- app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearch.kt  22
- app/src/main/java/com/amaze/filemanager/ui/activities/MainActivityViewModel.kt  3
         

Complexity decreasing per file
==============================
+ app/src/main/java/com/amaze/filemanager/utils/MainActivityActionMode.kt  -7
+ app/src/main/java/com/amaze/filemanager/ui/fragments/MainFragment.java  -2
+ app/src/main/java/com/amaze/filemanager/ui/views/appbar/BottomBar.java  -1
         

See the complete overview on Codacy

Annotations

Check warning on line 29 in app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameter.kt

See this annotation in the file changed.

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

app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameter.kt#L29

The function and is missing documentation.

Check warning on line 30 in app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameter.kt

See this annotation in the file changed.

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

app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameter.kt#L30

The function plus is missing documentation.

Check warning on line 26 in app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameters.kt

See this annotation in the file changed.

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

app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameters.kt#L26

In most cases using a spread operator causes a full copy of the array to be created before calling a method. This may result in a performance penalty.

Check warning on line 26 in app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameters.kt

See this annotation in the file changed.

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

app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameters.kt#L26

The function and is missing documentation.

Check warning on line 30 in app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameters.kt

See this annotation in the file changed.

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

app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameters.kt#L30

The function plus is missing documentation.

Check warning on line 32 in app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameters.kt

See this annotation in the file changed.

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

app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameters.kt#L32

The function searchParametersFromBoolean is missing documentation.

Check warning on line 805 in app/src/main/java/com/amaze/filemanager/ui/fragments/MainFragment.java

See this annotation in the file changed.

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

app/src/main/java/com/amaze/filemanager/ui/fragments/MainFragment.java#L805

The method 'reloadListElements(boolean, boolean)' has an NPath complexity of 345601, current threshold is 200

Check warning on line 29 in app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameterTest.kt

See this annotation in the file changed.

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

app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameterTest.kt#L29

The function testAnd is missing documentation.

Check warning on line 36 in app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameterTest.kt

See this annotation in the file changed.

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

app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParameterTest.kt#L36

The function testPlus is missing documentation.

Check warning on line 30 in app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt

See this annotation in the file changed.

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

app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt#L30

The function testAdd is missing documentation.

Check warning on line 37 in app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt

See this annotation in the file changed.

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

app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt#L37

The function testPlus is missing documentation.

Check warning on line 44 in app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt

See this annotation in the file changed.

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

app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt#L44

The function testSearchParametersFromBooleanWithNone is missing documentation.

Check warning on line 51 in app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt

See this annotation in the file changed.

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

app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt#L51

The function testSearchParametersFromBooleanWithOne is missing documentation.

Check warning on line 58 in app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt

See this annotation in the file changed.

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

app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt#L58

The function testSearchParametersFromBooleanWithTwo is missing documentation.

Check warning on line 65 in app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt

See this annotation in the file changed.

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

app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt#L65

The function testSearchParametersFromBooleanWithThree is missing documentation.

Check warning on line 80 in app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt

See this annotation in the file changed.

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

app/src/test/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/SearchParametersTest.kt#L80

The function testSearchParametersFromBooleanWithFour is missing documentation.