After an iOS build has completed parse the log file and provide any other helpful logging information.
Call the PostBuildAnalyzer executable pointing to two json files. The first file represents the base branch that you want to compare against. Most of the time this file will be pointing to the main
branch of your repo. The second file contains all the relevant information to the branch you are on. Both files contain the same amount of information. Here is what the layout looks like for the base branch
{
"repoURL": "https://github.com/mike011/PostBuildAnalyzer",
"branch": "master",
"outputFolder": "/Users/michael/Documents/git/PostBuildAnalyzer/example/Before/fastlane/test_output/", #Optional
"logFileName": "Example-Example (Before).log", #Optional
"baseURLPath": "https://mike011.github.io/PostBuildAnalyzer/before/", #Optional
"lintFileName": "lint.html", #Optional
"buildTimeThresholdInMS": 10 #Optional
}
https://mike011.github.io/PostBuildAnalyzer/example.html
Description | Amount | |
---|---|---|
Warnings.swift on line 14 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value |
1 times | |
Warnings.swift on line 14 initialization of immutable value 'index' was never used; consider replacing with assignment to '_' or removing it |
1 times | |
🚨 | directory not found for option '-LNOT_A_REAL_LIB_PATH' | 1 times |
Description | Amount | |
---|---|---|
SlowFiles.swift on line 36 expression took 2010ms to type-check (limit: 100ms) |
1 times | |
Warnings.swift on line 14 'index(of:)' is deprecated: renamed to 'firstIndex(of:)' |
1 times | |
Warnings.swift on line 14 value 'index' was defined but never used; consider replacing with boolean test |
1 times | |
Warnings.swift on line 21 'index(of:)' is deprecated: renamed to 'firstIndex(of:)' |
1 times | |
Warnings.swift on line 21 value 'index' was defined but never used; consider replacing with boolean test |
1 times | |
🚨 | directory not found for option '-FNOT_A_REAL_PATH' | 1 times |
🧽 | SlowFiles.swift on line 32 Collection literals should not have trailing commas. |
1 times |
🧽 | SlowFiles.swift on line 37 Files should have a single trailing newline. |
1 times |
📉 | Description | Before | After | |
---|---|---|---|---|
⏱ | Files with compilation time >= 10.0ms | 1 | 1 | |
👍 | Build Warnings | 5 | 2 | |
🚨 | Linker Warnings | 1 | 1 | |
👍 | 🧽 | Lint Warnings | 2 | 0 |
👍 | Total Warnings | 9 | 4 | |
Program ended with exit code: 0 |