-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
Add ProjectDTO details API #1625
Add ProjectDTO details API #1625
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1625 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 1849 1874 +25
===========================================
Files 395 397 +2
Lines 6964 7023 +59
Branches 155 160 +5
===========================================
+ Hits 6964 7023 +59
Continue to review full report at Codecov.
|
Optional<String> line = readLine(filename, prefix); | ||
Pattern pattern = Pattern.compile(prefix + REGEXP_DOT_PLUS_MIN + suffix, Pattern.DOTALL); | ||
if (line.isPresent()) { | ||
Matcher matcher = pattern.matcher(line.get()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can maybe extract the first if statement into a method like Function <String, Optional<String>> getValueFromLine()
and call it into a map from line like line.map(this::getValueFromLine).orElse(Optional.empty())
.
It avoids to have an if statement in another one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for review @seraphinandrieux . I went with a different method for future reusability.
@swarajsaaj : sorry, can you solve the conflict plz? |
Add test cases for reading name, description from package.json
Move ProjectDTO references out of domain
4a4fec9
to
af705b5
Compare
Done @pascalgrimaud |
Thanks for your work here @swarajsaaj :-))) |
Adding API to read the details required for ProjectDTO
Partially fixes #1453