aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-04-05 01:20:50 -0500
committerGitHub <noreply@github.com>2020-04-05 07:20:50 +0100
commitbaadb51445b1d990f72a37b0ef7575f5ed72824a (patch)
tree192fa25f2dc144bfa5c78adafc9ccd8f92db86bb /models
parentb74d30ae275b4f025f689efca748dd0cbd826b22 (diff)
downloadgitea-baadb51445b1d990f72a37b0ef7575f5ed72824a.tar.gz
gitea-baadb51445b1d990f72a37b0ef7575f5ed72824a.zip
Add gitea-vet (#10948)
* Add copyright Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add gitea-vet and fix non-compliance Signed-off-by: jolheiser <john.olheiser@gmail.com> * Combine tools.go into build.go and clean up Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove extra GO111MODULE=on Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'models')
-rw-r--r--models/action_test.go4
-rw-r--r--models/issue_stopwatch_test.go4
-rw-r--r--models/lfs.go4
-rw-r--r--models/main_test.go4
-rw-r--r--models/review_test.go4
-rw-r--r--models/u2f_test.go4
-rw-r--r--models/user_follow_test.go4
7 files changed, 28 insertions, 0 deletions
diff --git a/models/action_test.go b/models/action_test.go
index ccdec8f532..c6aaaaf069 100644
--- a/models/action_test.go
+++ b/models/action_test.go
@@ -1,3 +1,7 @@
+// Copyright 2020 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package models
import (
diff --git a/models/issue_stopwatch_test.go b/models/issue_stopwatch_test.go
index 41d93c8a14..6fc2b1ce5d 100644
--- a/models/issue_stopwatch_test.go
+++ b/models/issue_stopwatch_test.go
@@ -1,3 +1,7 @@
+// Copyright 2020 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package models
import (
diff --git a/models/lfs.go b/models/lfs.go
index 854b715d5c..7a04f799c0 100644
--- a/models/lfs.go
+++ b/models/lfs.go
@@ -1,3 +1,7 @@
+// Copyright 2020 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package models
import (
diff --git a/models/main_test.go b/models/main_test.go
index 11c175ef88..78fc78b4d0 100644
--- a/models/main_test.go
+++ b/models/main_test.go
@@ -1,3 +1,7 @@
+// Copyright 2020 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package models
import (
diff --git a/models/review_test.go b/models/review_test.go
index 4425012408..dd7ae662ad 100644
--- a/models/review_test.go
+++ b/models/review_test.go
@@ -1,3 +1,7 @@
+// Copyright 2020 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package models
import (
diff --git a/models/u2f_test.go b/models/u2f_test.go
index 0080c649cb..7a38334cf8 100644
--- a/models/u2f_test.go
+++ b/models/u2f_test.go
@@ -1,3 +1,7 @@
+// Copyright 2020 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package models
import (
diff --git a/models/user_follow_test.go b/models/user_follow_test.go
index 59392dcb1d..a30944f03f 100644
--- a/models/user_follow_test.go
+++ b/models/user_follow_test.go
@@ -1,3 +1,7 @@
+// Copyright 2020 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package models
import (