File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,17 @@ func TestNativePathAnalyzerParams(t *testing.T) {
129129 makeDistFlavourFile (distPath , product .JvmCommunityLinter .ProductCode )
130130 },
131131 },
132+ {
133+ "Pass through dist & flavour with trailing newline" ,
134+ distPath ,
135+ "" ,
136+ distPath ,
137+ product .JvmCommunityLinter ,
138+ false ,
139+ func (t * testing.T ) {
140+ makeDistFlavourFile (distPath , product .JvmCommunityLinter .ProductCode + "\n " )
141+ },
142+ },
132143 {
133144 "Pass through dist & flavour - unknown dist" ,
134145 distPath ,
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ func ReadDistFlavour(ideDir string) string {
445445 if err != nil {
446446 return ""
447447 }
448- return string (productFlavour )
448+ return strings . TrimSpace ( string (productFlavour ) )
449449}
450450
451451func findIde (dir string ) string {
You can’t perform that action at this time.
0 commit comments