-
Notifications
You must be signed in to change notification settings - Fork 7
Created EntityPersistenceNamingStrategy for replacing FileNamingStrategy #279
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
Conversation
…rategy for replacing it and refactored the code
…tenceNamingStrategy
…NamingStrategy and moved EntityPersistenceNamingStrategy and HierarchicFileNamingStrategy
… in few files in the latest code
…f FileNamingStrategy with EntityPersistenceNamingStrategy
…com/ie3-institute/PowerSystemDataModel into sb/#246-replacingFileNamingStrategy
… for refactoring of FileNamingStrategy
|
!test |
Sonarqube shows several warnings with respect to the regex patterns declared in |
The code quality of tests in detail doesn't really matter to me. But if there is something in production code, we should try to fix it (cf. "camp site rule" or "scout's rule" of clean code). |
…tyPersistenceNamingStrategyTest
I have fixed the errors pointed out by Codacy and I tried fixing the issue pointed out by Sonarqube which says that there are unused named groups in the regex patterns in the file |
Quality gate test, however, is failing because I guess there is duplicate code as we have both |
This commit can be reverted if the files were not supposed to be deleted. All checks are passing so I am guessing the duplicate code was the issue which was resolved after deleting the files: |
Codecov Report
@@ Coverage Diff @@
## dev #279 +/- ##
=========================================
Coverage 77.98% 77.99%
- Complexity 1951 1952 +1
=========================================
Files 249 249
Lines 7936 7939 +3
Branches 749 750 +1
=========================================
+ Hits 6189 6192 +3
Misses 1321 1321
Partials 426 426
Continue to review full report at Codecov.
|
This reverts commit 4f60799.
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.
Looks good by around 90 % to me. Please try and improve the comments, they are mainly regarding documentation issues.
src/main/java/edu/ie3/datamodel/io/naming/EntityPersistenceNamingStrategy.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/ie3/datamodel/io/naming/EntityPersistenceNamingStrategy.java
Show resolved
Hide resolved
src/main/java/edu/ie3/datamodel/io/naming/EntityPersistenceNamingStrategy.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/ie3/datamodel/io/naming/EntityPersistenceNamingStrategy.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/ie3/datamodel/io/naming/EntityPersistenceNamingStrategy.java
Outdated
Show resolved
Hide resolved
src/test/groovy/edu/ie3/datamodel/io/naming/EntityPersistenceNamingStrategyTest1.groovy
Outdated
Show resolved
Hide resolved
…leNamingStrategyTest to EntityPersistenceNamingStrategy
…eing found and updated the documentation for those functions
…eing found and updated the documentation for those functions
…amingStrategy # Conflicts: # docs/uml/main/DataSourceClassDiagram.puml
Resolves #246. Changes made:
FileNamingStrategy.java
EntityPersistenceNamingStrategy.java
as a copy ofFileNamingStrategy.java
for replacingFileNamingStrategy.java