Skip to content
This repository was archived by the owner on Apr 10, 2019. It is now read-only.
This repository was archived by the owner on Apr 10, 2019. It is now read-only.

gosec with gometalinter reports same error multiple times #510

@xor-gate

Description

@xor-gate

gometalinter

~~~ SNIP ~~~
repository/git/manager.go:241::warning: Potential file inclusion via variable,MEDIUM,HIGH (gosec)
repository/git/manager.go:241::warning: Potential file inclusion via variable,MEDIUM,HIGH (gosec)
repository/git/manager.go:241::warning: Potential file inclusion via variable,MEDIUM,HIGH (gosec)
repository/git/manager.go:241::warning: Potential file inclusion via variable,MEDIUM,HIGH (gosec)
repository/git/manager.go:241::warning: Potential file inclusion via variable,MEDIUM,HIGH (gosec)
~~~ SNIP ~~~
DEBUG: [Jul 27 12:32:33.233] total elapsed time 37.680799079s

gosec by hand

jjacobs@dev04:~/$ gosec repository/git/manager.go
[gosec] 2018/07/27 14:33:38 including rules: default
[gosec] 2018/07/27 14:33:38 excluding rules: default
[gosec] 2018/07/27 14:33:38 Searching directory: repository/git
[gosec] 2018/07/27 14:33:40 Checking package: git
[gosec] 2018/07/27 14:33:40 Checking file: repository/git/bucket.go
[gosec] 2018/07/27 14:33:40 Checking file: repository/git/git.go
[gosec] 2018/07/27 14:33:40 Checking file: repository/git/manager.go
[gosec] 2018/07/27 14:33:40 Checking file: repository/git/repository.go
[gosec] 2018/07/27 14:33:40 Checking file: repository/git/template.go
Results:

[repository/git/manager.go:241] - G304: Potential file inclusion via variable (Confidence: HIGH, Severity: MEDIUM)
  > os.Open(src)


Summary:
   Files: 5
   Lines: 600
   Nosec: 0
  Issues: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions