Skip to content

Commit 31eac72

Browse files
committed
fixed output formatting
1 parent b3ee976 commit 31eac72

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

Analyzer/AnalyzerTool.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,10 @@ public int Analyze(
6969
if (parser.CanParse(file))
7070
{
7171
foundParser = true;
72-
Console.WriteLine(file);
7372
try
7473
{
7574
parser.Parse(file);
76-
ReportProgress(Path.GetRelativePath(path, file), i, files.Length);
75+
ReportProgress(Path.GetRelativePath(path, file), i, files.Length);
7776
countSuccess++;
7877
}
7978
catch (Exception e)
@@ -86,7 +85,6 @@ public int Analyze(
8685
Console.WriteLine(e.StackTrace);
8786
countFailures++;
8887
}
89-
++i;
9088
}
9189
}
9290
if (!foundParser)
@@ -97,10 +95,10 @@ public int Analyze(
9795
Console.WriteLine();
9896
Console.WriteLine($"Ignoring {relativePath}");
9997
}
100-
++i;
98+
10199
countIgnored++;
102-
continue;
103100
}
101+
++i;
104102
}
105103

106104
Console.WriteLine();

Analyzer/SQLite/Parsers/AddressablesBuildLayoutParser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public void Init(SqliteConnection db)
2424
{
2525
m_Writer = new AddressablesBuildLayoutSQLWriter(db);
2626
m_Writer.Init();
27+
m_Writer.Verbose = Verbose;
2728
}
2829

2930
public bool CanParse(string filename)

Analyzer/SQLite/Writers/AddressablesBuildLayoutSQLWriter.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ internal class AddressablesBuildLayoutSQLWriter : IDisposable
4646
private SqliteCommand m_LastId = new SqliteCommand();
4747

4848
private SqliteConnection m_Database;
49+
public bool Verbose { get; set; }
4950

5051
public AddressablesBuildLayoutSQLWriter(SqliteConnection database)
5152
{
@@ -169,7 +170,8 @@ public void WriteAddressablesBuild(string filename, BuildLayout buildLayout)
169170

170171
m_LastId.Transaction = transaction;
171172
long buildId = (long)m_LastId.ExecuteScalar();
172-
Console.WriteLine($"Build ID: {buildId}");
173+
if (Verbose)
174+
Console.WriteLine($"Assigned report build ID: {buildId}");
173175

174176
foreach (var reference in buildLayout.references.RefIds)
175177
{

0 commit comments

Comments
 (0)