Skip to content

Commit acb0007

Browse files
committed
re-format
1 parent 829f78e commit acb0007

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+5
-67
lines changed

build/codeformat/formatimports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func parseImportLine(line string) (*importLineParsed, error) {
4646
pDot := strings.IndexRune(il.pkg, '.')
4747
pSlash := strings.IndexRune(il.pkg, '/')
4848
if pDot != -1 && pDot < pSlash {
49-
il.group = il.pkg[:pSlash]
49+
il.group = "domain-package"
5050
}
5151
for groupName := range importPackageGroupOrders {
5252
if groupName == "" {

build/codeformat/formatimports_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,9 @@ import (
8686
"code.gitea.io/gitea/modules/util"
8787
8888
"code.gitea.io/other/package"
89-
9089
"github.com/issue9/identicon"
9190
"github.com/nfnt/resize"
9291
"github.com/oliamb/cutter"
93-
9492
"xorm.io/the/package"
9593
)
9694
`

cmd/doctor.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"code.gitea.io/gitea/modules/setting"
2020

2121
"github.com/urfave/cli"
22-
2322
"xorm.io/xorm"
2423
)
2524

cmd/dump.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"code.gitea.io/gitea/modules/util"
2222

2323
"gitea.com/go-chi/session"
24-
2524
archiver "github.com/mholt/archiver/v3"
2625
"github.com/urfave/cli"
2726
)

cmd/web.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"code.gitea.io/gitea/routers/install"
2222

2323
"github.com/urfave/cli"
24-
2524
ini "gopkg.in/ini.v1"
2625
)
2726

contrib/environment-to-ini/environment-to-ini.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"code.gitea.io/gitea/modules/util"
1616

1717
"github.com/urfave/cli"
18-
1918
ini "gopkg.in/ini.v1"
2019
)
2120

contrib/pr/checkout.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import (
3737
"github.com/go-git/go-git/v5"
3838
"github.com/go-git/go-git/v5/config"
3939
"github.com/go-git/go-git/v5/plumbing"
40-
4140
"xorm.io/xorm"
4241
)
4342

integrations/create_no_session_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
"code.gitea.io/gitea/routers"
1818

1919
"gitea.com/go-chi/session"
20-
2120
"github.com/stretchr/testify/assert"
2221
)
2322

integrations/gpg_git_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"code.gitea.io/gitea/modules/util"
2020

2121
"github.com/stretchr/testify/assert"
22-
2322
"golang.org/x/crypto/openpgp"
2423
"golang.org/x/crypto/openpgp/armor"
2524
)

models/db/engine.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ import (
1616

1717
"code.gitea.io/gitea/modules/setting"
1818

19-
_ "github.com/denisenkom/go-mssqldb" // Needed for the MSSQL driver
20-
_ "github.com/go-sql-driver/mysql" // Needed for the MySQL driver
21-
_ "github.com/lib/pq" // Needed for the Postgresql driver
22-
2319
"xorm.io/xorm"
2420
"xorm.io/xorm/names"
2521
"xorm.io/xorm/schemas"
22+
23+
_ "github.com/denisenkom/go-mssqldb" // Needed for the MSSQL driver
24+
_ "github.com/go-sql-driver/mysql" // Needed for the MySQL driver
25+
_ "github.com/lib/pq" // Needed for the Postgresql driver
2626
)
2727

2828
var (

0 commit comments

Comments
 (0)