Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
peakle committed Mar 27, 2022
2 parents 71865e0 + 73c0832 commit be347a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions checkers/embedded_rules.go
Expand Up @@ -96,9 +96,10 @@ type embeddedRuleguardChecker struct {

func (c *embeddedRuleguardChecker) WalkFile(f *ast.File) {
runRuleguardEngine(c.ctx, f, c.engine, &ruleguard.RunContext{
Pkg: c.ctx.Pkg,
Types: c.ctx.TypesInfo,
Sizes: c.ctx.SizesInfo,
Fset: c.ctx.FileSet,
Pkg: c.ctx.Pkg,
Types: c.ctx.TypesInfo,
Sizes: c.ctx.SizesInfo,
Fset: c.ctx.FileSet,
TruncateLen: 100,
})
}
9 changes: 5 additions & 4 deletions checkers/ruleguard_checker.go
Expand Up @@ -258,10 +258,11 @@ func (c *ruleguardChecker) WalkFile(f *ast.File) {
DebugPrint: func(s string) {
fmt.Fprintln(os.Stderr, s)
},
Pkg: c.ctx.Pkg,
Types: c.ctx.TypesInfo,
Sizes: c.ctx.SizesInfo,
Fset: c.ctx.FileSet,
Pkg: c.ctx.Pkg,
Types: c.ctx.TypesInfo,
Sizes: c.ctx.SizesInfo,
Fset: c.ctx.FileSet,
TruncateLen: 100,
})
}

Expand Down

0 comments on commit be347a4

Please sign in to comment.