Skip to main content
Glama

protolint-mcp

by yoheimuta
main.go883 B
package main import ( "flag" "github.com/yoheimuta/protolint/_example/plugin/customrules" "github.com/yoheimuta/protolint/internal/addon/rules" "github.com/yoheimuta/protolint/linter/rule" "github.com/yoheimuta/protolint/plugin" ) var ( goStyle = flag.Bool("go_style", true, "the comments should follow a golang style") ) func main() { flag.Parse() plugin.RegisterCustomRules( // The purpose of this line just illustrates that you can implement the same as internal linter rules. rules.NewEnumsHaveCommentRule(rule.SeverityWarning, *goStyle), // A common custom rule example. It's simple. customrules.NewEnumNamesLowerSnakeCaseRule(), // Wrapping with RuleGen allows referring to command-line flags. plugin.RuleGen(func( verbose bool, fixMode bool, ) rule.Rule { return customrules.NewSimpleRule(verbose, fixMode, rule.SeverityError) }), ) }

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