all: clean up dot files (#5983)

pull/5986/head
ᴜɴᴋɴᴡᴏɴ 2020-03-11 03:02:18 +08:00 committed by GitHub
parent 927ffef864
commit 434f1ec542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 26 deletions

View File

@ -1,7 +0,0 @@
conf/**
docker/**
modules/bindata/**
packager/**
public/**
scripts/**
templates/**

View File

@ -1,7 +0,0 @@
{
"GOLANG": {
"TOTAL_LOC": [500, 999, 1999, 9999],
"TOO_MANY_FUNCTIONS": [50, 99, 199, 999],
"TOO_MANY_IVARS": [20, 50, 70, 99]
}
}

View File

@ -1,5 +1,5 @@
packager .packager
packager/** .packager/**
scripts scripts
scripts/** scripts/**
.github/ .github/
@ -8,7 +8,6 @@ config.codekit
.dockerignore .dockerignore
*.yml *.yml
*.md *.md
.bra.toml
.editorconfig .editorconfig
.gitignore .gitignore
Dockerfile* Dockerfile*

View File

@ -16,7 +16,7 @@ indent_size = 4
indent_style = tab indent_style = tab
indent_size = 2 indent_size = 2
[*.{less,yml}] [*.{less, yml}]
indent_style = space indent_style = space
indent_size = 2 indent_size = 2

1
.gitignore vendored
View File

@ -4,7 +4,6 @@
log/ log/
custom/ custom/
data/ data/
.vendor/
.idea/ .idea/
*.iml *.iml
public/img/avatar/ public/img/avatar/

View File

@ -8,17 +8,14 @@ LESS_FILES := $(wildcard public/less/*.less)
ASSETS_GENERATED := internal/assets/conf/conf_gen.go internal/assets/templates/templates_gen.go internal/assets/public/public_gen.go ASSETS_GENERATED := internal/assets/conf/conf_gen.go internal/assets/templates/templates_gen.go internal/assets/public/public_gen.go
GENERATED := $(ASSETS_GENERATED) public/css/gogs.css GENERATED := $(ASSETS_GENERATED) public/css/gogs.css
OS := $(shell uname)
TAGS = "" TAGS = ""
BUILD_FLAGS = "-v" BUILD_FLAGS = "-v"
RELEASE_ROOT = "release" RELEASE_ROOT = "release"
RELEASE_GOGS = "release/gogs" RELEASE_GOGS = "release/gogs"
NOW = $(shell date -u '+%Y%m%d%I%M%S') NOW = $(shell date -u '+%Y%m%d%I%M%S')
GOVET = go tool vet -composites=false -methods=false -structtags=false
.PHONY: build pack release generate clean .PHONY: check dist build build-no-gen pack release generate less clean test fixme todo legacy
.IGNORE: public/css/gogs.css .IGNORE: public/css/gogs.css
@ -67,7 +64,7 @@ less: public/css/gogs.css
public/css/gogs.css: $(LESS_FILES) public/css/gogs.css: $(LESS_FILES)
@type lessc >/dev/null 2>&1 && lessc --source-map "public/less/gogs.less" $@ || echo "lessc command not found or failed" @type lessc >/dev/null 2>&1 && lessc --source-map "public/less/gogs.less" $@ || echo "lessc command not found or failed"
clean-mac: clean:
find . -name "*.DS_Store" -type f -delete find . -name "*.DS_Store" -type f -delete
test: test:
@ -79,6 +76,6 @@ fixme:
todo: todo:
grep -rnw "TODO" internal grep -rnw "TODO" internal
# Legacy code should be remove by the time of release # Legacy code should be removed by the time of release
legacy: legacy:
grep -rnw "\(LEGACY\|DEPRECATED\)" internal grep -rnw "\(LEGACY\|Deprecated\)" internal