Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fb search by keywords #160

Merged
merged 7 commits into from Nov 18, 2018
Merged

Fb search by keywords #160

merged 7 commits into from Nov 18, 2018

Conversation

samuelchassot
Copy link
Owner

No description provided.

* @param cat the category for which want to search the keywords
* @return boolean user has or not
*/
private boolean userContainsKeywords(User u, ArrayList<String> kw, Categories cat){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method userContainsKeywords has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.

@@ -50,7 +50,8 @@ public int getItemCount() {
return capabilities_.length;
}

private void addKeyWordsListener(EditText edittext, Categories capability){
private void addKeyWordsListener(EditText edittext, Categories capability, CategoriesViewHolder holder){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identical blocks of code found in 2 locations. Consider refactoring.


}

private void addKeyWordsListener(EditText edittext, Categories capability){
private void addKeyWordsListener(EditText edittext, Categories capability, CategoriesViewHolder holder){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identical blocks of code found in 2 locations. Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Nov 16, 2018

Code Climate has analyzed commit ea3e8cc and detected 5 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3
Duplication 2

The test coverage on the diff in this pull request is 72.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 84.3% (-0.6% change).

View more on Code Climate.

@samuelchassot samuelchassot merged commit af9b175 into master Nov 18, 2018
@samuelchassot samuelchassot deleted the fb-search-keywords branch November 19, 2018 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants