Open Issues Need Help
View All on GitHubRefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Modify the existing fixture test runner in RefakTS to ensure that tests fail when a `.received.out` or `.received.err` file is generated without a corresponding `.expected.out` or `.expected.err` file. The error message should clearly indicate the missing file and suggest creating it if the output is correct. This improvement will prevent silent failures and increase the reliability of the test suite.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Develop a dependency visualization tool for the RefakTS project. This tool should generate dependency charts (file and class level) in various formats (SVG, HTML, DOT, JSON, ASCII), allowing for interactive exploration and grouping by directory structure. The tool can be implemented as a RefakTS command or a standalone utility, leveraging TypeScript's AST and a visualization library like D3.js or Graphviz.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: The task is to resolve a complex edge case in the RefakTS `find-usages` command related to handling computed property access in TypeScript. This involves community discussion to determine the best approach for tracking usages in scenarios where object properties are accessed using variables as keys, considering the trade-offs between safety and utility. The solution should include updated test cases and documentation.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Remove the `changeFrequencyCheck` quality checks from the RefakTS project due to a high false positive rate. This involves removing related code, updating configuration and documentation, and potentially cleaning up dependencies. Alternative approaches to addressing OCP violations and abstraction leakage, such as manual reviews or using dependency visualization tools, are considered but not implemented as part of this task.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Refactor multiple TypeScript commands in the RefakTS project to consistently handle LocationRange to Node conversions at the command level, rather than within service classes. This involves moving conversion logic into the commands, updating service classes to work directly with Node objects, and updating tests.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Implement a quality check in RefakTS to enforce consistent ES6 imports (using `import`) at the top of TypeScript files, disallowing `require()` statements and imports within functions or methods. This involves adding a new rule to the existing quality check system, updating documentation, and ensuring the rule correctly identifies and flags violations.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: The task is to fix a bug in the RefakTS `move-file` command. The bug causes the command to fail when moving files that use ES module imports because of a mismatch in TypeScript compiler options between the `ASTService` and the project's `tsconfig.json`. The solution involves modifying the `ASTService` constructor to explicitly use the project's `tsconfig.json` when creating a ts-morph `Project`.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Standardize TypeScript file names in the RefakTS project from PascalCase to kebab-case, update imports, and add a quality check to enforce this convention going forward. This involves renaming files, updating import statements, modifying the quality check script, and ensuring all tests pass after the changes.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Modify the RefakTS test framework to prevent the deletion of generated files when a test fails due to the absence of expected output files. The solution should provide clear messaging about preserved files and facilitate their conversion into expected files for test approval. This change must handle both single and multi-file tests.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Remove the deprecated `variable-locator` command from RefakTS, including its associated command file and tests, and clean up any resulting dead code.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: The task requires modifying the `fixture-approver.ts` and `fixture-reviewer.ts` scripts to handle multi-file fixture structures in addition to the existing single-file support. This involves updating the scripts to detect and process directories containing multiple input and expected output files, while maintaining backward compatibility with the single-file workflow. Documentation and error messages should also be updated to reflect the new multi-file functionality.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Improve the output of failing fixture tests in RefakTS to provide clearer debugging information. This involves displaying unified diffs showing file changes, absolute file paths for easier IDE integration (especially IntelliJ), and handling both local and CI/CD environments. The current stack trace output should be replaced with this enhanced information.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Modify the RefakTS `select` command to include the relative path from the current working directory in its output, ensuring that the returned locations are usable directly in subsequent commands like `rename` or `find-usages` without manual modification. The solution should maintain consistent behavior regardless of the command's execution location.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Improve RefakTS's `rename` command to handle reserved keywords. This involves adding validation to check if the new name is a reserved keyword before attempting the rename operation. If a reserved keyword is detected, a clear and user-friendly error message should be displayed instead of a complex error. Unit tests should be updated to reflect the change and ensure the new validation works correctly.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Improve RefakTS's `inline-variable` command to handle destructuring patterns gracefully. The task involves enhancing error handling to detect destructuring assignments without initializers and provide a user-friendly error message instead of a low-level error. This requires modifying the command's logic to recognize destructuring patterns and updating a relevant test case.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Improve the error handling of the `inline-variable` command in RefakTS to gracefully handle cases with complex variable dependencies, providing user-friendly error messages instead of stack traces. This involves detecting such dependencies before AST manipulation and updating tests to reflect the improved error handling.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Enhance RefakTS to provide feedback messages after successful refactoring operations. These messages should confirm the operation's success and detail the changes made (e.g., the number of variable occurrences inlined).
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Implement a pre-commit Git hook for the RefakTS project that prevents accidental commits of files whose names match specific patterns, likely related to command-line options used by the tool. This involves identifying the problematic file naming patterns, writing a script (likely shell or Node.js) to check for these patterns before each commit, and integrating this script as a pre-commit hook.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: Write comprehensive tests for the RefakTS tool, focusing on failure cases and error handling. This includes identifying currently untested error paths, creating tests to cover these scenarios, ensuring informative error messages, removing dead code, and documenting the testing approach. The goal is to improve test coverage and robustness.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.
AI Summary: The task is to implement a quality check within the RefakTS project to ensure that all JSDoc comments in test fixtures use a multi-line format instead of single-line comments. This involves modifying the existing quality check system to identify and flag single-line JSDoc comments in fixture files, promoting better documentation standards and readability.
RefakTS is a TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.