-
Notifications
You must be signed in to change notification settings - Fork 30
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
Feature/3274/use-current-directory-if-input-empty #3319
Feature/3274/use-current-directory-if-input-empty #3319
Conversation
class ParserDialogHelper { | ||
|
||
companion object { | ||
fun getInputFiles(isSourceMonitor: Boolean): MutableList<String> { |
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.
I just made this class to avoid some duplication, only thing new here is the KInquirer hint.
...s/export/CSVExporter/src/main/kotlin/de/maibornwolff/codecharta/exporter/csv/ParserDialog.kt
Outdated
Show resolved
Hide resolved
...lter/EdgeFilter/src/main/kotlin/de/maibornwolff/codecharta/filter/edgefilter/ParserDialog.kt
Outdated
Show resolved
Hide resolved
...Modifier/src/main/kotlin/de/maibornwolff/codecharta/filter/structuremodifier/ParserDialog.kt
Outdated
Show resolved
Hide resolved
...t/CSVImporter/src/main/kotlin/de/maibornwolff/codecharta/importer/util/ParserDialogHelper.kt
Outdated
Show resolved
Hide resolved
...t/CSVImporter/src/main/kotlin/de/maibornwolff/codecharta/importer/util/ParserDialogHelper.kt
Outdated
Show resolved
Hide resolved
Should I also adjust the directory question which is asked for the parser suggestions? Currently an empty input is mapped to current directory, but I find the solution here to be better (setting default value to current directory instead of just mapping it). |
That would be a nice improvement, thank you. |
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.
LGTM :-) Maybe @phanlezz could overtake a short test of the new feature, I am not sure, when I can do this at the moment. Maybe you can present your changes @moritz-suckow?
I did some testing and it worked for me :) |
I removed the hint and conversion from the GitLogParser, for now it just aborts when there is no input. This will change soon anyways when #3325 is merged, so I did not put any further work in it. |
[CodeCharta Analysis] Kudos, SonarCloud Quality Gate passed! |
[CodeCharta Visualization] Kudos, SonarCloud Quality Gate passed! |
Use current working directory if input is empty for parsers
Issue: #3274
Description
This adds a new default value to all parsers where a folder can be input to be parsed. This default value will be the current working directory. A default value will only be set for parsers which accept folders, for all others a hint with the working directory plus an exemplary not existing file will be shown (e.g. working/directory/yourInput.cc.json).