Projects STRLCPY bearer Commits 63cad715
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    pkg/report/output/output.go
    skipped 73 lines
    74 74   case flag.ReportDataFlow:
    75 75   return getDataflow(report, config, false)
    76 76   case flag.ReportPolicies:
    77  - dataflow, err := getDataflow(report, config, true)
    78  - if err != nil {
    79  - return nil, err
    80  - }
    81  - 
    82  - return policies.GetOutput(dataflow, config)
     77 + return getPolicyReportOutput(report, config)
    83 78   case flag.ReportStats:
    84 79   lineOfCodeOutput, err := stats.GoclocDetectorOutput(config.Scan.Target)
    85 80   if err != nil {
    86 81   return nil, err
    87 82   }
    88 83   
    89  - detectorsOutput, err := detectors.GetOutput(report)
    90  - if err != nil {
    91  - return nil, err
    92  - }
    93  - 
    94  - dataflowOutput, err := dataflow.GetOutput(detectorsOutput, config, true)
     84 + dataflowOutput, err := getDataflow(report, config, true)
    95 85   if err != nil {
    96 86   return nil, err
    97 87   }
    skipped 5 lines
    103 93  }
    104 94   
    105 95  func getPolicyReportOutput(report types.Report, config settings.Config) (map[string][]policies.PolicyResult, error) {
    106  - detections, err := detectors.GetOutput(report)
    107  - if err != nil {
    108  - return nil, err
    109  - }
    110  - 
    111  - dataflow, err := dataflow.GetOutput(detections, config, true)
     96 + dataflow, err := getDataflow(report, config, true)
    112 97   if err != nil {
    113 98   return nil, err
    114 99   }
    skipped 17 lines
Please wait...
Page is in error, reload to recover