2
3import (
4 "context"
5 "io/ioutil" 6 "log"
7 "net/http"
8 "reflect"
166 // Adding the tools data to the SARIF report corresponding to the number of analyzers activated
167 for _, issue := range issueData {
168 if !shortcodes[issue.Analyzer.Shortcode].exists {
169 driverName := "DeepSource " + strings.Title(issue.Analyzer.Shortcode) + " Analyzer"170 informationURI := "https://deepsource.io/directory/analyzers/" + string(issue.Analyzer.Shortcode)
171
172 tool := sarif.Tool{
2
3import (
4 "encoding/json"
5 "io/ioutil" 6 "os"
7 "reflect"
8 "strings"
5 "encoding/csv"
6 "encoding/json"
7 "fmt"
8 "io/ioutil" 9 "os"
10
11 "github.com/MakeNowJust/heredoc"
4 "context"
5 "errors"
6 "fmt"
7 "io/ioutil" 8 "os"
9 "os/exec"
10 "path/filepath"
Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.