-
Notifications
You must be signed in to change notification settings - Fork 39
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
RulesConfigReader does not remove whitespaces for testDirs #1288
Comments
Could you please provide an example of such yml config? |
Sure:
the Of course the list could be defined without the space, but as it is often used for readability and also the |
### What's done: * added trim() for testDirs value Closes #1288
### What's done: * Added trim() for list of string test directories Closes #1288
* Added trim() for testDirs value ### What's done: * added trim() for testDirs value Closes #1288
Describe the bug
When reading the rules configuration from YAML, whitespaces around entries of
testDirs
are not removed.https://github.com/analysis-dev/diktat/blob/759c26500de9c86c58af875f750017f14e3d2208/diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt#L111-L112
Expected behavior
Whitespaces are removed, as it is done for
sourceDirectories
:https://github.com/analysis-dev/diktat/blob/759c26500de9c86c58af875f750017f14e3d2208/diktat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt#L148-L149Environment information
The text was updated successfully, but these errors were encountered: