File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,8 +197,17 @@ std::string CheckersReport::getReport(const std::string& criticalErrors) const
197197 if (addonInfo.checkers .empty ())
198198 continue ;
199199 fout << std::endl << std::endl;
200- fout << addonInfo.name << " checkers" << std::endl;
201- fout << std::string (addonInfo.name .size () + 9 , ' -' ) << std::endl;
200+ std::string title;
201+ if (mSettings .premium && addonInfo.name == " premiumaddon.json" )
202+ title = " Cppcheck Premium" ;
203+ else {
204+ title = addonInfo.name ;
205+ if (endsWith (title, " .json" ))
206+ title.erase (title.rfind (' .' ));
207+ }
208+ title += " checkers" ;
209+ fout << title << std::endl;
210+ fout << std::string (title.size (), ' -' ) << std::endl;
202211
203212 for (const auto & checkReq: addonInfo.checkers ) {
204213 const std::string& checker = checkReq.first ;
You can’t perform that action at this time.
0 commit comments