Projects STRLCPY bearer Commits 8478e151
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    pkg/ast/languages/ruby/common/common.go
    skipped 10 lines
    11 11   anonymousPatternNodeParentTypes = []string{"binary"}
    12 12   
    13 13   leafNodeTypes = []string{
     14 + // identifiers
    14 15   "identifier",
    15 16   "constant",
     17 + // values
    16 18   "integer",
    17 19   "float",
    18 20   "complex",
    19 21   "rational",
     22 + "boolean",
     23 + "nil",
    20 24   "string_content",
    21 25   "simple_symbol",
    22 26   "hash_key_symbol",
    skipped 93 lines
  • ■ ■ ■ ■ ■
    pkg/souffle/query/query.go
    skipped 3 lines
    4 4   "fmt"
    5 5   "reflect"
    6 6   
    7  - "github.com/rs/zerolog/log"
    8 7   sitter "github.com/smacker/go-tree-sitter"
    9 8   
    10 9   "github.com/bearer/bearer/new/language/implementation"
    skipped 83 lines
    94 93   // FIXME: Define dynamic names in a common place
    95 94   relation, err := context.souffle.Relation(fmt.Sprintf("Rule_Match_%s", patternId))
    96 95   if err != nil {
    97  - // FIXME: need to filter rules by ones we actually compiled
    98  - log.Error().Msgf("pattern relation error: %w", err)
     96 + // FIXME: need to support all rules
     97 + // log.Error().Msgf("pattern relation error: %w", err)
    99 98   continue
    100 99   // return err
    101 100   }
    skipped 55 lines
  • ■ ■ ■ ■
    pkg/util/souffle/compiler/compiler.go
    skipped 21 lines
    22 22   
    23 23  func Compile(inputFilename, outputFilename string) error {
    24 24   log.Printf("running souffle")
    25  - cmd := exec.Command("souffle", "--verbose", "-g", outputFilename, inputFilename)
     25 + cmd := exec.Command("souffle", "-g", outputFilename, inputFilename)
    26 26   
    27 27   logWriter := &debugLogWriter{}
    28 28   cmd.Stderr = logWriter
    skipped 15 lines
Please wait...
Page is in error, reload to recover