Skip to main content
Glama

protolint-mcp

by yoheimuta
linter.go793 B
package linter import ( "github.com/yoheimuta/go-protoparser/v4/parser" "github.com/yoheimuta/protolint/linter/report" "github.com/yoheimuta/protolint/linter/rule" ) // Linter represents the protocol buffer linter with some rules. type Linter struct{} // NewLinter creates a new Linter. func NewLinter() *Linter { return &Linter{} } // Run lints the protocol buffer. func (l *Linter) Run( genProto func(*parser.Proto) (*parser.Proto, error), hasApplies []rule.HasApply, ) ([]report.Failure, error) { var fs []report.Failure var p *parser.Proto var err error for _, hasApply := range hasApplies { p, err = genProto(p) if err != nil { return nil, err } f, err := hasApply.Apply(p) if err != nil { return nil, err } fs = append(fs, f...) } return fs, nil }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yoheimuta/protolint'

If you have feedback or need assistance with the MCP directory API, please join our Discord server