[MM-17889] Implement validation of plugin API version comments (#11941)
Этот коммит содержится в:
коммит произвёл
Ben Schumacher
родитель
04653ec924
Коммит
5b79fc4110
16
plugin/checker/test/invalid/invalid.go
Обычный файл
16
plugin/checker/test/invalid/invalid.go
Обычный файл
@@ -0,0 +1,16 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
package invalid
|
||||
|
||||
type API interface {
|
||||
// ValidMethod is a fake method for testing the
|
||||
// plugin comment checker with a valid comment.
|
||||
//
|
||||
// Minimum server version: 1.2.3
|
||||
ValidMethod()
|
||||
|
||||
// InvalidMethod is a fake method for testing the
|
||||
// plugin comment checker with an invalid comment.
|
||||
InvalidMethod()
|
||||
}
|
||||
8
plugin/checker/test/missing/missing.go
Обычный файл
8
plugin/checker/test/missing/missing.go
Обычный файл
@@ -0,0 +1,8 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
package missing
|
||||
|
||||
// SomeType is a fake interface for testing the plugin comment checker.
|
||||
type SomeType interface {
|
||||
}
|
||||
12
plugin/checker/test/valid/valid.go
Обычный файл
12
plugin/checker/test/valid/valid.go
Обычный файл
@@ -0,0 +1,12 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
package valid
|
||||
|
||||
type API interface {
|
||||
// ValidMethod is a fake method for testing the
|
||||
// plugin comment checker with a valid comment.
|
||||
//
|
||||
// Minimum server version: 1.2.3
|
||||
ValidMethod()
|
||||
}
|
||||
Ссылка в новой задаче
Block a user