Code Naming Consistency Checker
Identify variable naming inconsistencies with this AI prompt, ensuring code clarity and reducing phantom bugs.
What this prompt does
- Identifies subtle naming inconsistencies in codebases that create phantom bugs.
- Analyzes code for variable name spelling variations and provides comprehensive corrections.
- Ensures variable names are standardized to eliminate unintentional duplications.
How to use this prompt
- Fill in the [INSERT THE PROGRAMMING LANGUAGE YOU'RE WORKING WITH], [PASTE YOUR CODE HERE], [INSERT YOUR PREFERRED NAMING STYLE - camelCase, snake_case, etc.], [DESCRIBE WHICH PARTS OF THE CODE ARE BEHAVING UNEXPECTEDLY], and [INSERT YOUR STYLE GUIDE - PEP 8, Google Style Guide, etc.] placeholders…
- Example: "My programming language: Python. My code with unexpected variable behavior: def calculateSum(num_list): sum = 0 for num in num_list: sum += num return sum. My preferred naming convention: snake_case. My specific areas of concern: The sum variable is not updating correctly. My coding sty…
Free prompt — copy, paste and run. Part of the Coding prompts collection in the God of Prompt library.