Feature request: use style guide with Duo
Custom rules for Duo (&16938)
Closing this as this is being followed up inGeneral request
As a developer, I would like to have code suggestions or answers from the Chat based on internal coding best practices.
Known use cases
1.Ensure Duo Chat and Code Suggestions considers the customer style guide. One customer shared these details:
- They have multiple SM top-level groups each one for one product and one team
- Each of those teams have their own style guide
- Such a style guide applies to all repos in a top-level group
- The style guides live either in GL pages or in confluence
- They change rarely
Possible solution:
- Use code embeddings to support pinned repos/groups of files at scale.
- Potentially support embeddings of GL pages, or at least indexing them and making them available to add as context in Duo UI. These can be manually added today.
- We'll need to support linking to confluence if they want to add the style guides without leaving Duo. Otherwise they can paste in the style guide to chat, or copy the file to the repo and add it manually to context.
A customer has also requested this functionality: They want some sort of injected context into Code Suggestions to load their development style guides (a spec of formatting code)
.
2.Diagnose pipeline failures in Duo Chat for IDE that resulted from style guide violations
- Customer would like to leverage their style guide to diagnose pipeline failures due to style guide violations
- Customer would like to leverage the entire project as context, not just individual files/directories
- ~80% of enterprise customers are using Confluence for docs, style guides, PRDs, etc.
- ~100% of enterprise customers are using style guides
High level solution pieces:
- Confluence integration
- Duo access to Pipelines context
- UI for the above two pieces
- Project (repo)-level context
Edited by Torsten Linz