32 Commits

Author SHA1 Message Date
Fender
420c6e8039 Merge pull request #161 from VioletandSakura/code-quality-improvements
Code quality improvements
2026-08-13 20:34:21 +08:00
Codex
37d88babf1 chore: remove duplicated test step in auto-release workflow 2026-08-06 12:51:21 -07:00
Codex
2c81ea5de3 chore: upgrade dependencies and clear npm audit
- @modelcontextprotocol/sdk 1.26 -> 1.30 (hono/node-server 2.1.0).

- @typescript-eslint/* and typescript-eslint 8.55 -> 8.66.

- npm audit now reports 0 vulnerabilities (was 21: 2 critical, 15 high).

- Add ConfigOverrides type so partial output overrides are typed instead of cast.

- Remove unnecessary type assertions flagged by the upgraded linter; build, lint and 205 tests pass.
2026-08-06 12:33:56 -07:00
Codex
80002aebea fix: harden security and clean up code quality issues
- git clone now uses execFile (no shell) and rejects URLs with shell metacharacters; removed dead parseRepoName.

- config show masks apiKey; config file chmod 0600 after writing keys.

- CLI launcher reports signal kills as failures and supports FUCK_U_CODE_MAX_MEMORY (default 4096MB).

- File discovery: well-known non-code dirs are defaults, not hard overrides; user-included dirs are analyzed.

- Nested .gitignore loading uses forward slashes so it works on Windows.

- Deduplicated analysis output rendering; fixed fetch timeout cleanup; aligned concurrency default to 8; enabled zh_TW locale end to end.

- Fixed pre-existing lint errors and Windows-flaky MCP tests; added git-utils, secrets, file-discovery tests; release workflow now runs tests.
2026-08-06 12:22:48 -07:00
Done-0
13d082ae74 docs(readme): add Agent Skill section and HotDaily link across all locales 2026-06-11 23:29:59 +08:00
Fender
432e06c8fc Merge pull request #158 from Zerone-Agent/main
feat(skills): add fuck-u-code-analysis skill for AI agent code qualit…
2026-06-09 21:38:33 +08:00
zero
0856325f6f docs(skill): add installation prerequisites to SKILL.md 2026-06-08 10:22:34 +08:00
zero
876ca84299 feat(skills): add fuck-u-code-analysis skill for AI agent code quality review 2026-06-05 11:26:11 +08:00
Done-0
c47f16ff8a fix: improve error handling for missing target directory in clone-analyze command
refactor: optimize regex matching for SSH URL format in git utility
2026-05-20 18:08:13 +08:00
Done-0
8e03a87b95 docs: add Trendshift badge to README files 2026-03-29 21:35:33 +08:00
Done-0
71e147315a chore: update version to 2.2.2 in package.json and version.ts 2026-03-18 23:13:13 +08:00
Fender
5e49338c77 Merge pull request #153 from sleet0922/main
繁體中文翻譯完成 #152
2026-03-18 23:04:09 +08:00
sleet0922
9f794dc9ce docs(i18n): complete Traditional Chinese documentation translation 2026-03-18 09:25:07 +08:00
sleet0922
78428af93f i18n: complete Traditional Chinese translation 2026-03-18 09:16:49 +08:00
Fender
b8f7547421 Merge pull request #151 from WowDoers/issue-144-react-hook-callback-metrics
Fix nested callback line counting in parser
2026-03-14 16:30:47 +08:00
Wilder Liu
39dcdefebf Fix nested callback line counting in parser 2026-03-14 16:24:23 +08:00
Fender
aaa9756453 Merge pull request #148 from justlovemaki/main
docs: translate comments and JSDoc to English
2026-03-01 19:08:36 +08:00
hex2077
f544088694 docs: translate comments and JSDoc to English
Translate Chinese comments and JSDoc strings into English in the git utility functions and the clone-and-analyze CLI command to improve code accessibility for international contributors.
2026-03-01 19:06:48 +08:00
Fender
86d7008f46 Merge pull request #147 from justlovemaki/main
feat(cli): add clone-and-analyze command for remote repositories
2026-03-01 18:38:48 +08:00
hex2077
dd548efacc feat(cli): add clone-and-analyze command for remote repositories
Introduce a new command that allows users to clone a remote git
repository to a temporary directory and perform code quality analysis
directly.

- Implement `clone-and-analyze` command logic and CLI registration.
- Add git utility functions for cloning, validation, and cleanup.
- Support automatic temporary directory management.
- Add comprehensive i18n support for English, Chinese, and Russian.
2026-03-01 18:35:03 +08:00
Done-0
acff024c68 fix: resolve arrow function boundary detection in React components
- Fix tree-sitter parser to correctly identify nested arrow functions
- Modified collectNodesByTypes to recursively traverse function nodes
- Arrow functions inside React components now correctly identified with accurate line counts and nesting depths
- Update version to 2.2.1
- Add auto-release workflow for GitHub Release automation (with overwrite support)
- Remove old manual release workflow
- Add value-realization project to README (all language versions)
2026-02-27 11:28:31 +08:00
Done-0
cd55ca0935 feat: add JSON schema documentation and improve parser error handling
- Add comprehensive JSON schema field descriptions with i18n support (en, zh, ru)
- Fix shell script parsing by adding graceful fallback to regex parser when tree-sitter fails
- Change MCP server default output format from markdown to JSON for better AI integration
- Improve parser error handling with automatic fallback mechanism
- Add detailed field explanations in $schema for better AI comprehension
- Bump version to 2.2.0

Breaking changes:
- MCP server now returns JSON format by default instead of markdown
v2.2.0
2026-02-16 11:05:23 +08:00
Done-0
2bf5220b7f fix: reorder release workflow steps to fix npm ci issue
- Move version sync before npm ci
- This prevents npm ci from failing when package.json version doesn't exist on npm yet
2026-02-15 23:51:48 +08:00
Done-0
1848dcf4c8 feat: add update command to auto-update eff-u-code
- Add 'fuck-u-code update' command to update to latest version
- Check current and latest versions from npm
- Auto-install latest version globally
- Add translations for en/zh/ru
- Add update command to CLI help examples
v2.1.0
2026-02-15 23:05:54 +08:00
Done-0
6a59ca3cab feat: implement language-specific thresholds for code quality metrics
- Refactored metrics to utilize language-specific thresholds from a new module.
- Updated NestingDepthMetric, FileLengthMetric, FunctionLengthMetric, and ParameterCountMetric to accept language as a parameter and retrieve thresholds accordingly.
- Added support for PHP, Ruby, Swift, and Shell languages in the parser and metrics.
- Created a new thresholds module with detailed configurations for various languages based on official linter defaults.
- Updated tests to validate new thresholds and ensure metrics function correctly with different languages.
- Introduced a versioning system for the application.
2026-02-15 22:52:49 +08:00
Done-0
157fb0f135 feat: add uninstall command with robust error handling 2026-02-15 21:27:15 +08:00
Done-0
ecafd78aeb feat: add uninstall command to clean up local files 2026-02-15 21:17:22 +08:00
Done-0
ea0164ac12 chore: bump version to 2.0.1 2026-02-15 21:11:36 +08:00
Done-0
c211e32b59 fix: handle undefined exclude/include in config merge v2.0.0 2026-02-15 21:07:05 +08:00
Done-0
2565fd7e19 feat: rename npm package to eff-u-code and use trusted publishing 2026-02-15 20:26:19 +08:00
Done-0
fb390e3673 fix: normalize package.json bin paths and repository url 2026-02-15 20:09:57 +08:00
Done-0
1a4840ca42 feat: rewrite in TypeScript with AST parsing and AI integration 2026-02-15 19:39:29 +08:00