We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 011b3a5 commit 985ab41Copy full SHA for 985ab41
checkstyle/reporter/XMLReporter.hx
@@ -15,8 +15,10 @@ class XMLReporter implements IReporter {
15
public function new(path:String, s:String) {
16
_report = new StringBuf();
17
var folder = Path.directory(path);
18
- if (!FileSystem.exists(folder)) {
19
- FileSystem.createDirectory(folder);
+ if (folder.length > 0) {
+ if (!FileSystem.exists(folder)) {
20
+ FileSystem.createDirectory(folder);
21
+ }
22
}
23
_file = File.write(path);
24
_style = s;
@@ -119,4 +121,4 @@ class XMLReporter implements IReporter {
119
121
//Sys.stdout().writeString(sb.toString());
120
122
_report.add(sb.toString());
123
-}
124
+}
run.n
44 Bytes
0 commit comments