Repository Analysis

micro/go-micro

A Go microservices framework

2.2 Likely human-written View on GitHub
2.2
Adjusted Score
2.2
Raw Score
100%
Time Factor
2026-05-30
Last Push
22,747
Stars
Go
Language
108,388
Lines of Code
666
Files
131
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 15MEDIUM 8LOW 108

Pattern Findings

131 matches across 12 categories. Click a row to expand file-level details.

Over-Commented Block67 hits · 67 pts
SeverityFileLineSnippet
LOW.golangci.yaml1# This file contains all available configuration options
LOW.golangci.yaml21 # no need to include all autogenerated files, we confidently recognize
LOW.golangci.yaml41 # Default: colored-line-number
LOW.golangci.yaml121 # Setting locale to US will correct the British spelling of 'colour' to 'color'.
LOW.golangci.yaml241
LOWcmd/micro/api/api.go1// Package api implements the 'micro api' command — a lightweight
LOWcmd/micro-mcp-gateway/main.go1// Command micro-mcp-gateway runs a standalone MCP gateway that discovers
LOWcmd/protoc-gen-micro/main.go1// Go support for Protocol Buffers - Google's data interchange format
LOWcmd/protoc-gen-micro/main.go21// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LOWcmd/protoc-gen-micro/main.go41//
LOWcmd/protoc-gen-micro/generator/generator.go1// Go support for Protocol Buffers - Google's data interchange format
LOWcmd/protoc-gen-micro/generator/generator.go1401// The tag is a string like "varint,2,opt,name=fieldname,def=7" that
LOWcmd/protoc-gen-micro/generator/generator.go1701// defaultConstantName builds the name of the default constant from the message
LOWcmd/protoc-gen-micro/generator/name_test.go1// Go support for Protocol Buffers - Google's data interchange format
LOWtransport/options.go21 // Other options for implementations of the interface
LOWtransport/grpc/grpc_test.go21
LOWwrapper/auth/server.go21}
LOWwrapper/auth/client.go21// For each outgoing request:
LOWconfig/source/flag/flag.go81func (fs *flagsrc) Write(cs *source.ChangeSet) error {
LOWconfig/source/cli/cli.go81func (c *cliSource) Write(cs *source.ChangeSet) error {
LOWauth/noop/noop.go1// Package noop provides a no-op auth implementation for testing and development.
LOWauth/noop/noop.go21//
LOWhealth/health.go1// Package health provides health check functionality for microservices.
LOWinternal/test/service.go41// - Bi-directional streaming
LOWinternal/test/testing.go1// Package test provides utilities for testing micro services.
LOWinternal/util/mdns/server.go221 if query.Opcode != dns.OpcodeQuery {
LOWinternal/util/mdns/server.go281 Opcode: dns.OpcodeQuery,
LOWinternal/util/mdns/server.go321//
LOWinternal/util/mdns/dns_sd.go1package mdns
LOWinternal/util/mdns/dns_sd.go21// server, err := mdns.NewServer(&mdns.Config{Zone: service})
LOWinternal/util/mdns/dns_sd.go41 }
LOWinternal/util/mdns/dns_sd.go81// availability of the service, as described in section 8.3 of RFC 6762.
LOWinternal/util/tls/tls.go21var (
LOW…l/website/docs/architecture/adr-010-unified-gateway.md81# - HTTP API at /api/{service}/{endpoint}
LOWinternal/website/docs/guides/tool-descriptions.md121
LOWinternal/website/docs/guides/tool-descriptions.md141// Only the provided fields are updated; omitted fields are unchanged.
LOWinternal/website/docs/guides/tool-descriptions.md161```
LOWserver/server.go101 Context() context.Context
LOWserver/doc.go1package server
LOWserver/doc.go21//
LOWserver/doc.go81}
LOWai/tools/tools.go1// Package tools turns go-micro services into ai.Tool definitions and
LOWai/together/together.go1// Package together implements the Together AI model provider.
LOWai/groq/groq.go1// Package groq implements the Groq model provider.
LOWai/atlascloud/atlascloud.go1// Package atlascloud implements the Atlas Cloud model provider.
LOWai/mistral/mistral.go1// Package mistral implements the Mistral AI model provider.
LOWai/flow/flow.go1// Package flow provides event-driven LLM orchestration for go-micro
LOWexamples/mcp/platform/main.go1// Platform example: AI agents interacting with a real microservices platform.
LOWexamples/mcp/workflow/main.go1// Workflow example: cross-service orchestration via AI agents.
LOWexamples/mcp/crud/main.go1// CRUD example: a contact book service with full MCP integration.
LOWexamples/mcp/documented/README.md21### 2. **JSDoc-Style Tags**
LOWexamples/mcp/documented/README.md201
LOWexamples/deployment/docker-compose.yml1# Go Micro + MCP Gateway deployment with Docker Compose
LOWexamples/agent-demo/main.go1// Agent Demo — A multi-service project management app
LOWregistry/consul/options.go41// AllowStale sets whether any Consul server (non-leader) can service
LOWevents/options.go41// ConsumeOptions contains all the options which can be provided when subscribing to a topic
LOWgateway/mcp/option.go1package mcp
LOWgateway/mcp/mcp.go1// Package mcp provides Model Context Protocol (MCP) gateway functionality for go-micro services.
LOWgateway/mcp/mcp.go101
LOWgateway/mcp/mcp.go121 // When set, tools that fail repeatedly are temporarily blocked to
7 more matches not shown…
Magic Placeholder Names10 hits · 65 pts
SeverityFileLineSnippet
HIGHinternal/website/docs/guides/ai-provider-guide.md283 ai.WithAPIKey("your-api-key"),
HIGHai/README.md33 ai.WithAPIKey("your-api-key"),
HIGHai/README.md67 ai.WithAPIKey("your-api-key"),
HIGHai/README.md96 ai.WithAPIKey("your-api-key"),
HIGHai/together/together.go11// ai.WithAPIKey("your-api-key"),
HIGHai/gemini/gemini.go8// ai.WithAPIKey("your-api-key"),
HIGHai/groq/groq.go11// ai.WithAPIKey("your-api-key"),
HIGHai/atlascloud/atlascloud.go13// ai.WithAPIKey("your-api-key"),
HIGHai/atlascloud/atlascloud.go18// ai.WithAPIKey("your-api-key"),
HIGHai/mistral/mistral.go11// ai.WithAPIKey("your-api-key"),
Verbosity Indicators10 hits · 22 pts
SeverityFileLineSnippet
LOWcmd/micro/cli/deploy/deploy.go123 // Step 1: Check SSH connectivity
LOWcmd/micro/cli/deploy/deploy.go131 // Step 2: Check server is initialized
LOWcmd/micro/cli/deploy/deploy.go139 // Step 3: Build binaries
LOWcmd/micro/cli/deploy/deploy.go169 // Step 4: Copy binaries
LOWcmd/micro/cli/deploy/deploy.go177 // Step 5: Setup and restart services via systemd
LOWcmd/micro/cli/deploy/deploy.go185 // Step 6: Restart services
LOWcmd/micro/cli/deploy/deploy.go193 // Step 7: Check health
LOWcontrib/langchain-go-micro/examples/multi_agent.py48 # Step 1: Create a user
LOWcontrib/langchain-go-micro/examples/multi_agent.py55 # Step 2: Create a blog post for that user
LOWcontrib/langchain-go-micro/examples/multi_agent.py63 # Step 3: List user's posts
Docstring Block Structure4 hits · 20 pts
SeverityFileLineSnippet
HIGH…ntrib/langchain-go-micro/langchain_go_micro/toolkit.py124Make HTTP request to MCP gateway. Args: method: HTTP method (GET, POST, etc.) p
HIGH…ntrib/langchain-go-micro/langchain_go_micro/toolkit.py270Call a specific tool directly. Args: tool_name: Name of the tool to call argume
HIGH…rib/go-micro-llamaindex/go_micro_llamaindex/toolkit.py123Make HTTP request to MCP gateway. Args: method: HTTP method (GET, POST, etc.) path: API
HIGH…rib/go-micro-llamaindex/go_micro_llamaindex/toolkit.py264Call a specific tool directly. Args: tool_name: Name of the tool to call arguments: JSO
Self-Referential Comments5 hits · 13 pts
SeverityFileLineSnippet
MEDIUM.golangci.yaml1# This file contains all available configuration options
MEDIUMinternal/website/install.sh99echo " micro new myservice # Create a new service"
MEDIUMinternal/scripts/install.sh72echo " micro new myservice # Create a new service"
MEDIUM…trib/go-micro-llamaindex/examples/rag_with_services.py25 # Create a simple document index for RAG
MEDIUM…trib/go-micro-llamaindex/examples/rag_with_services.py37 # Create a query engine tool for RAG
Unused Imports12 hits · 12 pts
SeverityFileLineSnippet
LOW…ntrib/langchain-go-micro/langchain_go_micro/toolkit.py5
LOW…trib/langchain-go-micro/langchain_go_micro/__init__.py7
LOW…trib/langchain-go-micro/langchain_go_micro/__init__.py7
LOW…trib/langchain-go-micro/langchain_go_micro/__init__.py8
LOW…trib/langchain-go-micro/langchain_go_micro/__init__.py8
LOW…trib/langchain-go-micro/langchain_go_micro/__init__.py8
LOW…rib/go-micro-llamaindex/go_micro_llamaindex/toolkit.py9
LOW…ib/go-micro-llamaindex/go_micro_llamaindex/__init__.py7
LOW…ib/go-micro-llamaindex/go_micro_llamaindex/__init__.py7
LOW…ib/go-micro-llamaindex/go_micro_llamaindex/__init__.py8
LOW…ib/go-micro-llamaindex/go_micro_llamaindex/__init__.py8
LOW…ib/go-micro-llamaindex/go_micro_llamaindex/__init__.py8
Hyper-Verbose Identifiers11 hits · 11 pts
SeverityFileLineSnippet
LOWcontrib/langchain-go-micro/tests/test_toolkit.py62 def test_config_custom_values(self):
LOWcontrib/langchain-go-micro/tests/test_toolkit.py91 def test_from_gateway_with_auth(self):
LOWcontrib/langchain-go-micro/tests/test_toolkit.py133 def test_get_tools_with_service_filter(self, mock_request, mock_gateway_response):
LOWcontrib/langchain-go-micro/tests/test_toolkit.py148 def test_get_tools_with_include(self, mock_request, mock_gateway_response):
LOWcontrib/langchain-go-micro/tests/test_toolkit.py162 def test_get_tools_with_exclude(self, mock_request, mock_gateway_response):
LOWcontrib/go-micro-llamaindex/tests/test_toolkit.py70 def test_config_custom_values(self):
LOWcontrib/go-micro-llamaindex/tests/test_toolkit.py99 def test_from_gateway_with_auth(self):
LOWcontrib/go-micro-llamaindex/tests/test_toolkit.py144 def test_get_tools_with_service_filter(self, mock_request, mock_gateway_response):
LOWcontrib/go-micro-llamaindex/tests/test_toolkit.py159 def test_get_tools_with_include(self, mock_request, mock_gateway_response):
LOWcontrib/go-micro-llamaindex/tests/test_toolkit.py173 def test_get_tools_with_exclude(self, mock_request, mock_gateway_response):
LOWcontrib/go-micro-llamaindex/tests/test_toolkit.py188 def test_get_tools_with_name_pattern(self, mock_request, mock_gateway_response):
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippet
LOWwrapper/auth/server.go35// Example usage:
LOWwrapper/auth/client.go26// Example usage:
LOWinternal/util/mdns/dns_sd.go12// Example usage:
LOWexamples/deployment/docker-compose.yml9# Usage:
LOWgateway/mcp/mcp.go4// Example usage:
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHstore/nats-js-kv/keys.go28 // Plain is the plain key as requested by the go-micro interface.
Excessive Try-Catch Wrapping2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMcontrib/langchain-go-micro/README.md158 print(f"Error: {e}")
MEDIUMcontrib/go-micro-llamaindex/README.md171 print(f"Error: {e}")
Fake / Example Data3 hits · 4 pts
SeverityFileLineSnippet
LOWcmd/micro/cli/new/template/crud.go106// @example {"name": "Alice Smith", "email": "alice@example.com", "phone": "+1-555-0100", "company": "Acme Inc"}
LOWinternal/website/docs/quickstart.md84 Email: "user@example.com",
LOWexamples/mcp/documented/main.go107 "user-1": {ID: "user-1", Name: "John Doe", Email: "john@example.com", Age: 25},
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMinternal/website/badge.html194 <li>Feel free to customize the colors to match your brand</li>