Browse Source

all: clean up dot files (#5983)

ᴜɴᴋɴᴡᴏɴ 1 year ago
parent
commit
434f1ec542
6 changed files with 7 additions and 26 deletions
  1. 0 7
      .codebeatignore
  2. 0 7
      .codebeatsettings
  3. 2 3
      .dockerignore
  4. 1 1
      .editorconfig
  5. 0 1
      .gitignore
  6. 4 7
      Makefile

+ 0 - 7
.codebeatignore

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

+ 0 - 7
.codebeatsettings

@@ -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]
-	}
-}

+ 2 - 3
.dockerignore

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

+ 1 - 1
.editorconfig

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

+ 0 - 1
.gitignore

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

+ 4 - 7
Makefile

@@ -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
 GENERATED := $(ASSETS_GENERATED) public/css/gogs.css
 
-OS := $(shell uname)
-
 TAGS = ""
 BUILD_FLAGS = "-v"
 
 RELEASE_ROOT = "release"
 RELEASE_GOGS = "release/gogs"
 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
 
@@ -67,7 +64,7 @@ less: public/css/gogs.css
 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"
 
-clean-mac:
+clean:
 	find . -name "*.DS_Store" -type f -delete
 
 test:
@@ -79,6 +76,6 @@ fixme:
 todo:
 	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:
-	grep -rnw "\(LEGACY\|DEPRECATED\)" internal
+	grep -rnw "\(LEGACY\|Deprecated\)" internal