Last analyzed 88f9575 a month ago
Default analysis branch is
Currently analyzing run
Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
5 months ago5 months old
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.
 2
 3import (
 4	"context"
 5	"io/ioutil" 6	"log"
 7	"net/http"
 8	"reflect"
strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.
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{
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.
  2
  3import (
  4	"encoding/json"
  5	"io/ioutil"  6	"os"
  7	"reflect"
  8	"strings"
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.
  5	"encoding/csv"
  6	"encoding/json"
  7	"fmt"
  8	"io/ioutil"  9	"os"
 10
 11	"github.com/MakeNowJust/heredoc"
"io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.
  4	"context"
  5	"errors"
  6	"fmt"
  7	"io/ioutil"  8	"os"
  9	"os/exec"
 10	"path/filepath"