Skip to main content
2 votes
1 answer
100 views

I'm building a Node.js backend using plain SQL (no ORM, just mysql2 wrapped in a small helper). However, as my project grows, my route handlers start looking messy — full of raw SQL strings embedded ...
OuterTowner's user avatar
0 votes
0 answers
35 views

I have a React Native project where I import a lot of .svg files into my components. How can I use npx knip to find all unused svg files, just like it has found all unused .js/tsx files? This is my ...
Esben von Buchwald's user avatar
0 votes
0 answers
41 views

I am trying to atleast clean the component.ts using services or somthing in my angular i have many repetitive code that i trying to fix and refactor. I am trying to apply DRY as possible can i have a ...
Jonel Teano's user avatar
0 votes
1 answer
31 views

When I run ReSharper cleanup code on a project, it adds a plus (+) sign. Is this a feature, or how do I disable it? <?xml ver.......> + <!-- ... ... -->
Magnus Calmervik's user avatar
0 votes
0 answers
41 views

Description: I'm working on a Vue/Nuxt project where we typically create a single component that handles all inputs, their state, validation, and submission to the API. While this approach works, it ...
Romin Manogil's user avatar
0 votes
0 answers
37 views

I am building a simple apm. I batch events and store them in db batched. I also want to store anything left in the batch once the process ends/killed/error This is my code export function startApm(): ...
Kristi Jorgji's user avatar
1 vote
0 answers
33 views

I have texts and text fields with the same modifiers. Instead of copying and pasting them every time, is there a way to clean them up so they're called like functions or extensions? Is there a way to ...
Alfred Wong's user avatar
1 vote
0 answers
237 views

On my team, some of us use Rider, others use Visual Studio 2022. When they run code cleanup, VS 2022 adds a space between delegate and () as seen here: var cat = this.ExecuteAFunction("Function ...
t3mp0ralflux's user avatar
0 votes
1 answer
763 views

I am using Code Cleanup in Visual Studio and noticed when file is on save. The unused variable will be removed like: I tried editing the .editorConfig file but it didn't seem to work with any of the ...
Sophie cai's user avatar
0 votes
0 answers
73 views

I'm still learning Unity. I have quite a few objects and scripts in the scene and they interact with each other. I'm getting "MissingReferenceException: The object of type 'GameObject' has been ...
TazDingo's user avatar
-2 votes
1 answer
345 views

I wrote a script in Python that is running for some time and performing a clean up as soon as it terminates regularly like: import time def cleanUp(): #delete some temporary files and so on ...
Leoncino's user avatar
  • 119
2 votes
2 answers
4k views

i have bumped into following issue, i'm trying to implement infiniteQuery by using react-query tanstack, but i can't do it without additional checking of pageParam on it's type of number. Could you ...
Oleksandr Stoliarchuk's user avatar
2 votes
2 answers
942 views

In VS2022 I turned on the very useful feature "Run Code Cleanup profile on Save". With this option on, every unneeded using statement in code gets removed automatically on save. Now I would ...
Disti's user avatar
  • 1,601
0 votes
0 answers
1k views

I'm trying to get data from a webpage using Playwright in TypeScript. I have a section of code where I want to extract information from multiple elements matching a certain locator. However, I'm ...
Neil Franci's user avatar
4 votes
0 answers
302 views

Environment: Visual studio 2022, v17.8.3 with net8 support I did cleanup to c# solution with 6 projects using profile2 . I found that vs 2022 during code cleanup using profile2 add these like ...
M.Hassan's user avatar
  • 11.2k

15 30 50 per page
1
2 3 4 5
43