code: func NewFilePerms(id string, conf gosec.Config) (gosec.Rule, []ast.Node) {
  	mode := getConfiguredMode(conf, "G302", 0600)
  	return &filePermissions{
  		mode:  mode,
  		pkg:   "os",
  		calls: []string{"OpenFile", "Chmod"},
  		MetaData: gosec.MetaData{
  			ID:         id,
  			Severity:   gosec.Medium,
  			Confidence: gosec.High,
  			What:       fmt.Sprintf("Expect file permissions to be %#o or less", mode),
  		},
  	}, []ast.Node{(*ast.CallExpr)(nil)}
  }
docs: // NewFilePerms creates a rule to detect file creation with a more permissive than configured
  // permission mask.