#Can AI Code Generators Be Configured to Follow Project Coding Style?

2 messages · Page 1 of 1 (latest)

waxen thunder
#

I’m working on a project with multiple developers and want to enforce a consistent coding style across the codebase (for example, avoiding certain patterns like try-catch, but this is just an example).

We already use linting rules to enforce these conventions.

However, some developers generate code using tools like ChatGPT or cloud-based code assistants, and the generated code doesn’t always follow our project’s coding style.

Is there a way to define a project-level file or configuration that instructs AI code generators to follow (or avoid) specific coding styles?

steep mesa