Этот коммит содержится в:
Agniva De Sarker
2020-05-15 21:27:15 +05:30
коммит произвёл GitHub
родитель 21af1f49f1
Коммит bb172aea71
6 изменённых файлов: 12 добавлений и 5 удалений

Просмотреть файл

@@ -22,6 +22,7 @@ linters:
- ineffassign
- scopelint
- structcheck
- staticcheck
- unconvert
- unused
- varcheck
@@ -41,6 +42,10 @@ issues:
# ignore warnings from table tests. https://github.com/kyoh86/scopelint/issues/4
path: ".*_test.go|store/storetest"
- linters:
- staticcheck
path: ".*_test.go|store/storetest"
- linters:
# ignore golint error for a lot of packages for now
- golint

Просмотреть файл

@@ -136,7 +136,6 @@ func (s *Server) configureAudit(adt *audit.Audit) {
filter := adt.MakeFilter(RestLevel, RestContentLevel, RestPermsLevel, CLILevel)
formatter := adt.MakeJSONFormatter()
formatter.DisableTimestamp = false
formatter.Indent = "\n"
target, err := audit.NewFileTarget(filter, formatter, opts, maxQueueSize)
if err != nil {
mlog.Error("cannot configure File audit target", mlog.Err(err))

Просмотреть файл

@@ -278,7 +278,7 @@ func resizeEmoji(img image.Image, width int, height int) image.Image {
func imageToPaletted(img image.Image) *image.Paletted {
b := img.Bounds()
pm := image.NewPaletted(b, palette.Plan9)
draw.FloydSteinberg.Draw(pm, b, img, image.ZP)
draw.FloydSteinberg.Draw(pm, b, img, image.Point{})
return pm
}

Просмотреть файл

@@ -330,8 +330,7 @@ func (a *App) MigrateFilenamesToFileInfos(post *model.Post) []*model.FileInfo {
}
// Copy and save the updated post
newPost := &model.Post{}
newPost = post.Clone()
newPost := post.Clone()
newPost.Filenames = []string{}
newPost.FileIds = fileIds

Просмотреть файл

@@ -709,7 +709,7 @@ func CreateProfileImage(username string, userId string, initialFont string) ([]b
color := colors[int64(seed)%int64(len(colors))]
dstImg := image.NewRGBA(image.Rect(0, 0, IMAGE_PROFILE_PIXEL_DIMENSION, IMAGE_PROFILE_PIXEL_DIMENSION))
srcImg := image.White
draw.Draw(dstImg, dstImg.Bounds(), &image.Uniform{color}, image.ZP, draw.Src)
draw.Draw(dstImg, dstImg.Bounds(), &image.Uniform{color}, image.Point{}, draw.Src)
size := float64(IMAGE_PROFILE_PIXEL_DIMENSION / 2)
c := freetype.NewContext()

Просмотреть файл

@@ -3886,6 +3886,10 @@
"id": "ent.compliance.csv.metadata.json.marshalling.appError",
"translation": "Unable to convert metadata to json."
},
{
"id": "ent.compliance.csv.metadata.json.zipfile.appError",
"translation": "Unable to create the zip file"
},
{
"id": "ent.compliance.csv.post.export.appError",
"translation": "Unable to export a post."