File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,13 +209,20 @@ std::string CheckersReport::getReport(const std::string& criticalErrors) const
209209 fout << title << std::endl;
210210 fout << std::string (title.size (), ' -' ) << std::endl;
211211
212+ maxCheckerSize = 0 ;
213+ for (const auto & checkReq: addonInfo.checkers ) {
214+ const std::string& checker = checkReq.first ;
215+ if (maxCheckerSize < checker.size ())
216+ maxCheckerSize = checker.size ();
217+ }
218+
212219 for (const auto & checkReq: addonInfo.checkers ) {
213220 const std::string& checker = checkReq.first ;
214221 const bool active = mActiveCheckers .count (checkReq.first ) > 0 ;
215222 const std::string& req = checkReq.second ;
216223 fout << (active ? " Yes " : " No " ) << checker;
217224 if (!active && !req.empty ())
218- fout << std::string (maxCheckerSize + 4 - checker.size (), ' ' ) << " require:" + req;
225+ fout << std::string (maxCheckerSize + 4 - checker.size (), ' ' ) << " require:" << req;
219226 fout << std::endl;
220227 }
221228 }
You can’t perform that action at this time.
0 commit comments