Commit Graph

11 Commits

Author SHA1 Message Date
Azeem Shaikh
2d5c770ff3
Move repos.RepoResult -> pkg.ScorecardResult (#620)
Co-authored-by: Azeem Shaikh <azeems@google.com>
2021-06-28 16:14:34 +10:00
Azeem Shaikh
1f1e05b22c
Add metadata Google for Google-owned repos (#616)
Co-authored-by: Azeem Shaikh <azeems@google.com>
2021-06-27 09:04:00 -07:00
Azeem Shaikh
09e86518e5
Add all Google-owned repositories to cron job (#555)
Co-authored-by: Azeem Shaikh <azeems@google.com>
2021-06-08 16:55:43 -07:00
Chris McGehee
6b63f3f963
🌱 Fix lint issues: Replace golint with revive (#493)
* Fix lint issues: Replace golint with revive
golint is deprecated and recommended to be replaced with revive

* Updating comments to be more accurate

* Updating comments again

Co-authored-by: Azeem Shaikh <azeemshaikh38@gmail.com>
2021-05-24 11:34:33 -07:00
Chris McGehee
9214d71c8f Fix lint issues: wrapcheck linter
Bumping version of golangci-lint because it has a fix for a false
positive we were encountering.
2021-05-13 06:53:56 -05:00
Chris McGehee
647870fb4c Fix lint issues: gocritic linter 2021-05-08 21:51:04 -05:00
Azeem Shaikh
29c4983fdc
Return error instead of log.fatal. (#421)
Co-authored-by: Azeem Shaikh <azeems@google.com>
2021-05-08 16:28:59 -07:00
Chris McGehee
82be54ba75
🌱 Fix lint issues: goerr113 linter (#398)
* Fix lint issues: goerr113 linter
This linter encourages wrapped static errors instead of dynamic errors.

* Updating capitalization
2021-05-06 15:32:27 -05:00
Chris McGehee
6a7142fe21 Fix lint issues: golint linter 2021-05-02 14:49:40 -05:00
Azeem Shaikh
86a46560c8 Rename CheckResults to Checks to match BQ schema. 2021-04-26 17:45:04 -05:00
Azeem Shaikh
bd3eff1fcf
Cron job uses line-delimited JSON (#344)
*  Refactor to reduce code duplication

* 

* Move lib/ back to checker/

* Move lib/ back to checker/

* Move lib/ back to checker/

* Address PR comments.

* Addressing PR comments.

* Separate out ReposURL nito repos/

* Add TODO in gitcache module.

* Add RepoRequest/Response types.

* Avoid printing `ShouldRetry` and `Error` in output JSON.

* Fix JSON output.

* Simplify cmd package.

* Make cron/ a package instead of module.

* Fix TODO.

* Remove binary file.

* go.mod file.

* go.mod updates.

* Refactor cron to use in-memory JSON.

* Fix JSON output.

* Fix go.mod

* Address PR comments.

* Change %w -> %v.

* Address PR comments.

* Fix err.

Co-authored-by: Azeem Shaikh <azeems@google.com>
2021-04-19 12:49:51 -07:00