Skip to content

Conversation

@sapientpants
Copy link
Owner

Summary

  • Added new SonarQube API capabilities to view source code with issue annotations
  • Implemented two new tools: source_code and scm_blame for accessing and analyzing source code
  • Added comprehensive tests with 100% coverage of new functionality

Test plan

  • Run pnpm test to verify all tests pass
  • Check that the new tools are properly registered
  • Verify that source code can be retrieved with issues highlighted
  • Confirm that SCM blame information is correctly formatted

🤖 Generated with Claude Code

sapientpants and others added 4 commits May 13, 2025 22:15
Implemented two new tools to provide access to source code with issues highlighted:
- source_code: View source code with annotations showing issues
- scm_blame: Access raw source and SCM blame information

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Replace repeated union type with type alias 'AuthCredentials' to improve code maintainability.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Created a common stringToNumberTransform function
- Replaced repeated transform code in tool registrations
- Added tests for the new utility function

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Added tests for Zod boolean transform schema
- Added tests for string-to-boolean conversions
- Improved coverage of boolean transforms in index.ts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@sonarqubecloud
Copy link

@sapientpants sapientpants merged commit cbebcfb into main May 13, 2025
6 checks passed
@sapientpants sapientpants deleted the feature/source-code-api branch May 13, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants