Skip to content

Commit

Permalink
Trim whitespaces in parsed disabled rules values.
Browse files Browse the repository at this point in the history
Signed-off-by: Yahor Berdnikau <[email protected]>
  • Loading branch information
Tapchicoma committed Aug 15, 2019
1 parent 6c15fc6 commit 79c207d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ object KtLint {
node.putUserData(FILE_PATH_USER_DATA_KEY, userData["file_path"])
node.putUserData(EDITOR_CONFIG_USER_DATA_KEY, EditorConfig.fromMap(editorConfigMap - "android" - "file_path"))
node.putUserData(ANDROID_USER_DATA_KEY, android)
node.putUserData(DISABLED_RULES, userData["disabled_rules"]?.split(",")?.toSet() ?: emptySet())
node.putUserData(
DISABLED_RULES,
userData["disabled_rules"]?.split(",")?.map { it.trim() }?.toSet() ?: emptySet()
)
}

private fun visitor(
Expand Down

0 comments on commit 79c207d

Please sign in to comment.