package Ġio . github . dl le w el lyn . saf et or un . checks Ċ Ċ import Ġio . github . dl le w el lyn . saf et or un . reporting . Safe To Run Report Ċ Ċ internal Ġclass ĠComposite Safe To Run Check ( ĊĠĠĠ Ġprivate Ġval Ġsafe To Run Checks : ĠList < Safe To Run Check >, ĊĠĠĠ Ġprivate Ġval Ġwarn Only Checks : ĠList < Safe To Run Check > Ċ ) Ġ: ĠSafe To Run Check Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġcan Run (): ĠSafe To Run Report Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠSafe To Run Report . Multiple Reports ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠlistOf ( call Fail On s (), Ġcall Warnings ()). flatten () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġcall Fail On s () Ġ= Ġsafe To Run Checks . map Ġ{ ĊĠĠĠĠĠĠĠ Ġit . can Run () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġcall Warnings () Ġ= Ġwarn Only Checks . map Ġ{ ĊĠĠĠĠĠĠĠ Ġconvert Safe To Run Report To Warning ( it . can Run ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġconvert Safe To Run Report To Warning ( result : ĠSafe To Run Report ): ĠSafe To Run Report Ġ= Ġwhen Ġ( result ) Ġ{ ĊĠĠĠĠĠĠĠ Ġis ĠSafe To Run Report . Safe To Run Report Failure Ġ-> ĠSafe To Run Report . Safe To Run Warning ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġresult . failure Reason , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġresult . failure Message ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġis ĠSafe To Run Report . Multiple Reports Ġ-> ĠSafe To Run Report . Multiple Reports ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġresult . reports . map Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġconvert Safe To Run Report To Warning ( it ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġelse Ġ-> Ġresult ĊĠĠĠ Ġ} Ċ } Ċ