mirror of
https://github.com/lukaszraczylo/filepuff-mcp.git
synced 2026-06-05 22:23:50 +00:00
9205b2bc26
- [x] Add API reference documentation with tool descriptions and examples - [x] Add ERROR_CODES reference with error descriptions and remediation steps - [x] Add PERFORMANCE tuning guide with caching and optimization details - [x] Add GitHub Actions workflows for linting and security scanning - [x] Add golangci-lint configuration with comprehensive linter settings - [x] Add pre-commit hooks configuration for local development - [x] Add API documentation generator tool (cmd/docgen) - [x] Update Go version from 1.24 to 1.25 across workflows - [x] Add static build configuration to goreleaser - [x] Add metrics package with Prometheus-style metric types - [x] Add parser benchmarks for performance testing - [x] Add LSP manager integration tests - [x] Add server integration tests with MCP protocol flow testing - [x] Extract regex cache to shared utility package - [x] Add context cancellation handling in AST queries - [x] Add graceful shutdown with timeout to server - [x] Add configurable max parse size (MaxParseSize) - [x] Add Config.Validate() method with comprehensive checks - [x] Add parser cache statistics tracking - [x] Add file permission preservation in edit operations - [x] Improve line splitting for large files with bufio.Scanner - [x] Add comprehensive config tests for edge cases - [x] Update Makefile with new targets and documentation
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
# Pre-commit hooks configuration
|
|
# See https://pre-commit.com for more information
|
|
# Installation: pip install pre-commit && pre-commit install
|
|
#
|
|
# Note: These hooks are optional for contributors.
|
|
# Run manually with: pre-commit run --all-files
|
|
|
|
repos:
|
|
# Standard pre-commit hooks
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
args: [--markdown-linebreak-ext=md]
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-json
|
|
- id: check-merge-conflict
|
|
- id: check-added-large-files
|
|
args: ['--maxkb=500']
|
|
- id: detect-private-key
|
|
|
|
# Go formatting
|
|
- repo: https://github.com/dnephin/pre-commit-golang
|
|
rev: v0.5.1
|
|
hooks:
|
|
- id: go-fmt
|
|
- id: go-imports
|
|
- id: go-vet
|
|
- id: go-mod-tidy
|
|
|
|
# golangci-lint
|
|
- repo: https://github.com/golangci/golangci-lint
|
|
rev: v1.56.2
|
|
hooks:
|
|
- id: golangci-lint
|
|
args: [--config=.golangci.yml]
|
|
|
|
# Markdown linting (optional)
|
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
|
rev: v0.39.0
|
|
hooks:
|
|
- id: markdownlint
|
|
args: ['--fix', '--disable', 'MD013', 'MD033', 'MD041', '--']
|
|
|
|
# Configuration for specific hooks
|
|
default_language_version:
|
|
golang: "1.22"
|
|
|
|
# Don't run on CI by default (handled by GitHub Actions)
|
|
ci:
|
|
skip: [golangci-lint, go-vet]
|