Skip to content

Conversation

@DenysBurduzhan
Copy link
Contributor

No description provided.

@DenysBurduzhan DenysBurduzhan linked an issue Nov 8, 2024 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Nov 8, 2024

Test Results

2 tests  ±0   2 ✅ ±0   0s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 34dce20. ± Comparison against base commit 31e9d36.

♻️ This comment has been updated with latest results.

@codacy-production
Copy link
Contributor

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-3.04% 0.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (31e9d36) 166 25 15.06%
Head commit (34dce20) 208 (+42) 25 (+0) 12.02% (-3.04%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#56) 45 0 0.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

default void saveAll(List<ContactDto> contacts) throws IOException {
objectMapper.writeValue(new File("demo.st"), contacts);
}
;
Copy link
Contributor

Choose a reason for hiding this comment

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

ℹ️ Codacy found a minor Code Style issue: ';' should be separated from previous line.

The issue identified by the Checkstyle linter is that there is an unnecessary semicolon (;) on its own line, which is not properly separated from the previous line. In Java, a semicolon is used to terminate statements, and having it on a separate line without any context is not a standard practice and can lead to confusion.

To fix this issue, simply remove the semicolon from its own line. Here’s the suggested change:

Suggested change
;
}

This comment was generated by an experimental AI tool.

Copy link
Collaborator

@dRaider-bitrek dRaider-bitrek left a comment

Choose a reason for hiding this comment

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

Метод "add" зараз не зберігає новий контакт.

List<ContactDto> contacts = findAll();
contacts.add(contactDto);
saveAll(contacts);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

тут треба перевірити ContactDto.id та створити новий унікальний якщо id = 0;
Тобто не зовсім тут, це інтерфейс.

.fullName(contactDto.getFullName())
.phones(List.of(String.valueOf(contactDto.getPhones())))
.emails(List.of(String.valueOf(contactDto.getEmails())))
.build();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Не зовсім зрозумів що ти планував. Ти вже отримуєш ContactDto його треба зберегти до файлу за допомогою ContactDtoRepository

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.

3 participants