Skip to content

Commit

Permalink
📝 move TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
budougumi0617 committed Jan 10, 2021
1 parent 827cade commit d7a1f17
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion nrseg.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func (n *nrseg) run() error {
return nil
}

// TODO: ignore auto generated file.
fmt.Fprintf(n.outStream, "start %q\n", path)
f, err := os.OpenFile(path, os.O_RDWR, 0664)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions nrseg_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package nrseg

import (
"fmt"
"io"
"io/ioutil"
"os"
Expand Down Expand Up @@ -51,6 +52,7 @@ func TestNrseg_run(t *testing.T) {

func validate(t *testing.T, gotpath, wantpath string) {
filepath.Walk(gotpath, func(path string, info os.FileInfo, err error) error {
// TODO: skip auto generated file
if filepath.Base(path) == "testdata" {
return fmt.Errorf("skip testdata dir")
}
Expand Down
1 change: 0 additions & 1 deletion process.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func Process(filename string, src []byte) ([]byte, error) {
if fd.Body != nil {
// TODO: no append if exist calling statement of newrelic.FromContext.
// TODO: skip if comment go:nrsegignore in function/method comment.
// TODO: ignore auto generated files.
sn := genSegName(fd.Name.Name)
vn, t := parseParams(fd.Type)
var ds ast.Stmt
Expand Down

0 comments on commit d7a1f17

Please sign in to comment.