Skip to content

Commit

Permalink
chore: remove php2 parser
Browse files Browse the repository at this point in the history
  • Loading branch information
didroe committed Oct 12, 2023
1 parent 829fada commit bfa6237
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 133,577 deletions.
3 changes: 2 additions & 1 deletion internal/detectors/php/datatype/datatype.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package datatype

import (
"github.com/smacker/go-tree-sitter/php"

"github.com/bearer/bearer/internal/parser"
"github.com/bearer/bearer/internal/parser/datatype"
"github.com/bearer/bearer/internal/report/detections"
schemadatatype "github.com/bearer/bearer/internal/report/schema/datatype"

"github.com/bearer/bearer/internal/parser/nodeid"
php "github.com/bearer/bearer/internal/parser/sitter/php2"
"github.com/bearer/bearer/internal/report"
"github.com/bearer/bearer/internal/report/detectors"
"github.com/bearer/bearer/internal/report/schema"
Expand Down
5 changes: 3 additions & 2 deletions internal/detectors/php/datatype/properties.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package datatype

import (
sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/php"

"github.com/bearer/bearer/internal/parser"
parserdatatype "github.com/bearer/bearer/internal/parser/datatype"
"github.com/bearer/bearer/internal/parser/nodeid"
php "github.com/bearer/bearer/internal/parser/sitter/php2"
"github.com/bearer/bearer/internal/report/schema"
schemadatatype "github.com/bearer/bearer/internal/report/schema/datatype"
sitter "github.com/smacker/go-tree-sitter"
)

var propertiesQuery = parser.QueryMustCompile(php.GetLanguage(),
Expand Down
2 changes: 1 addition & 1 deletion internal/detectors/php/php.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/bearer/bearer/internal/parser/interfacedetector"
"github.com/bearer/bearer/internal/parser/nodeid"
"github.com/bearer/bearer/internal/parser/schema"
php "github.com/bearer/bearer/internal/parser/sitter/php2"
sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/php"

"github.com/bearer/bearer/internal/util/file"
"github.com/bearer/bearer/internal/util/stringutil"
Expand Down
2 changes: 1 addition & 1 deletion internal/languages/php/php.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package php

import (
php "github.com/bearer/bearer/internal/parser/sitter/php2"
sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/php"

"github.com/bearer/bearer/internal/classification/schema"
"github.com/bearer/bearer/internal/report/detectors"
Expand Down
32 changes: 0 additions & 32 deletions internal/parser/sitter/php2/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions internal/parser/sitter/php2/binding.go

This file was deleted.

Loading

0 comments on commit bfa6237

Please sign in to comment.