Skip to content
Myr

chore: improve linting, testing, and GitHub Actions setup (#3583)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- Update golangci-lint version from `v1.48.0` to `v1.52.2` - Remove Gitter notifications from GitHub Actions workflow - Add gosec linter settings and include specific rules - Exclude revive linter for test files - Remove Gitter badge from README.md - Delete codecov.yml file - Change function parameter name in fs.go - Remove unused parameter in defaultHandleRecovery function

authored by Bo-Yi Wu · committed by GitHub · parent fe989b6 · Browse files · 6 files+23 added−24 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: appleboy <appleboy.tw@gmail.com>

Diff stats

6 files+23 added−24 removed

  • other:+23 added−24 removed

6 files+23 added−24 removed

modified:.github/workflows/gin.yml+1 added-15 removed
modified:.golangci.yml+19 added
deleted:codecov.yml-5 removed
modified:fs.go+1 added-1 removed
37 unmodified lines
38 return neuteredReaddirFile{f}, nil39}4041// Readdir overrides the http.File default implementation.42func (f neuteredReaddirFile) Readdir(count int) ([]os.FileInfo, error) {42func (f neuteredReaddirFile) Readdir(_ int) ([]os.FileInfo, error) {43 // this disables directory listing44 return nil, nil45}
modified:README.md+1 added-2 removed
4 unmodified lines
5[![Build Status](https://github.com/gin-gonic/gin/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/gin-gonic/gin/actions?query=branch%3Amaster)6[![codecov](https://codecov.io/gh/gin-gonic/gin/branch/master/graph/badge.svg)](https://codecov.io/gh/gin-gonic/gin)7[![Go Report Card](https://goreportcard.com/badge/github.com/gin-gonic/gin)](https://goreportcard.com/report/github.com/gin-gonic/gin)8[![GoDoc](https://pkg.go.dev/badge/github.com/gin-gonic/gin?status.svg)](https://pkg.go.dev/github.com/gin-gonic/gin?tab=doc)9[![Join the chat at https://gitter.im/gin-gonic/gin](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gin-gonic/gin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)9[![Sourcegraph](https://sourcegraph.com/github.com/gin-gonic/gin/-/badge.svg)](https://sourcegraph.com/github.com/gin-gonic/gin?badge)10[![Open Source Helpers](https://www.codetriage.com/gin-gonic/gin/badges/users.svg)](https://www.codetriage.com/gin-gonic/gin)11[![Release](https://img.shields.io/github/release/gin-gonic/gin.svg?style=flat-square)](https://github.com/gin-gonic/gin/releases)12[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/gin-gonic/gin)](https://www.tickgit.com/browse?repo=github.com/gin-gonic/gin)
161 unmodified lines
174## Contributing175176Gin is the work of hundreds of contributors. We appreciate your help!177179Please see [CONTRIBUTING](CONTRIBUTING.md) for details on submitting patches and the contribution workflow.178Please see [CONTRIBUTING](CONTRIBUTING.md) for details on submitting patches and the contribution workflow.
modified:recovery.go+1 added-1 removed
101 unmodified lines
102 c.Next()103 }104}105106func defaultHandleRecovery(c *Context, err any) {106func defaultHandleRecovery(c *Context, _ any) {107 c.AbortWithStatus(http.StatusInternalServerError)108}109110// stack returns a nicely formatted stack frame, skipping skip frames.
64 unmodified lines