1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-09 20:17:21 +00:00

Language statistics bar for repositories (#8037)

* Implementation for calculating language statistics

Impement saving code language statistics to database

Implement rendering langauge stats

Add primary laguage to show in repository list

Implement repository stats indexer queue

Add indexer test

Refactor to use queue module

* Do not timeout for queues
This commit is contained in:
Lauris BH
2020-02-11 11:34:17 +02:00
committed by GitHub
parent 37892be635
commit ad2642a8aa
89 changed files with 182950 additions and 57 deletions

17
vendor/github.com/src-d/enry/v2/regex/oniguruma.go generated vendored Normal file
View File

@ -0,0 +1,17 @@
// +build oniguruma
package regex
import (
rubex "github.com/src-d/go-oniguruma"
)
type EnryRegexp = *rubex.Regexp
func MustCompile(str string) EnryRegexp {
return rubex.MustCompileASCII(str)
}
func QuoteMeta(s string) string {
return rubex.QuoteMeta(s)
}

17
vendor/github.com/src-d/enry/v2/regex/standard.go generated vendored Normal file
View File

@ -0,0 +1,17 @@
// +build !oniguruma
package regex
import (
"regexp"
)
type EnryRegexp = *regexp.Regexp
func MustCompile(str string) EnryRegexp {
return regexp.MustCompile(str)
}
func QuoteMeta(s string) string {
return regexp.QuoteMeta(s)
}