code-cleanup Questions

9

I'm aware that branches don't really store creator information - and they're just a pointer to a commit. My goal is to be able to clean out my old branches that have been merged back to the main ...
Kevinkevina asked 16/3, 2016 at 3:39

5

Solved

I've accidentally put some whitespace in my initial commit. It shows up red in git diff --color. How do I get rid of the existing whitespace and how can I avoid this from happening again?
Glacial asked 30/7, 2010 at 15:14

2

Hi I am using Visual Studio 2022. I want to share code cleanup on save setting with my team. How can i do it? I tried to export settings and import it but without success.
Lodgment asked 19/8, 2022 at 12:14

2

Our team want to enforce styling rules in our C# project. I read somewhere some time that Microsoft said that ".editorconfig is the future" so we want to use this. NOTE: We don't want to use ReShar...
Saito asked 29/3, 2019 at 9:2

1

I have the following settings regarding my Tab sizing in Visual Studio 17.4.1: When I use Edit->Advanced->Format Document, I get this result: I configured Code Cleanup which allegedly conta...
Oftentimes asked 22/11, 2022 at 9:17

5

Solved

I wonder if there is a simple way to call a function from a string. I know a simple way, using 'if' and 'else'. int function_1(int i, int j) { return i*j; } int function_2(int i, int j) { retur...
Gosh asked 20/10, 2013 at 2:36

3

So I just finished up writing my first script to assemble a Weibull Analysis from a text file. In all of my tinkering I suspect I may have loaded some libraries that aren't used in the final script...
Outstrip asked 5/2, 2015 at 15:7

0

My team has configured ReSharper/Rider to automatically run code-cleanup every time we save. I save a lot, which means code-cleanup runs a lot. Every time I try to Ctrl+Z past a point where code-cl...
Homeroom asked 20/9, 2022 at 16:48

2

Solved

Is there any way to clean up flutter/bin folder cache? or older app release apk without opening an individual app and writing the command flutter build clean? I just want to free up space from the ...
Abortive asked 3/6, 2022 at 11:33

12

How to clean react native project? Is there any way to clean react native project as we can clean xcode project? Any help will be appreciated!
Phenol asked 29/12, 2017 at 7:19

11

Solved

In short; i have many empty lines generated in an XML file, and i am looking for a way to remove them as a way of leaning the file. How can i do that ? For detailed explanation; I currently have t...
Burglar asked 1/10, 2012 at 8:19

2

I have an .editorconfig file that has my naming preferences in it. When I run code cleanup, it automatically formats seemingly all of my other preferences besides the naming. When I hover over a va...
Araldo asked 11/6, 2021 at 12:56

16

Solved

Is there an official C# guideline for the order of items in terms of class structure? Does it go: Public Fields Private Fields Properties Constructors Methods ? I'm curious if there is a hard ...
Kauffmann asked 29/9, 2008 at 20:23

1

Solved

I'm using Visual Studios Code Cleanup on Save to automatically clean my code when i save. It also removes unused namespaces. But now i noticed that it even removes namespaces when they are actually...
Sashasashay asked 26/3, 2021 at 8:57

5

Solved

I am working on a c++ project where I am using a lot of #pragma omp. I use the wonderful clang-format for tidiness but it always deletes the indentation for all preprocessor directives. Is there a ...
Duple asked 29/6, 2014 at 12:44

4

I am new to cleaning code/refactoring and I learned to avoid having long switch statements like the one I have below. I discovered that polymorphism is a helpful technique to shorten complex switch...
Pathology asked 17/12, 2020 at 17:7

4

Solved

I've just fired up PHPMD for the first time and, predictably, I've got an error I can't figure out. The error is Avoid using static access to class 'InvalidArgumentException' in method 'setLang...
Adulate asked 3/9, 2013 at 5:56

3

A bunch of CSS files were pulled in and now I'm trying to clean things up a bit. How can I efficiently identify unused CSS definitions in a whole project?
Quarantine asked 25/9, 2008 at 20:3

3

Solved

I came across a question on StackOverflow: Swift - Convert Array to Dictionary where the user wants to take the elements of an array and wants to put them in a dictionary and assign 0 to each of th...
Airless asked 24/10, 2019 at 19:34

2

I'm not really clear on which traps are inherited when in bash. The manpage says: When a simple command other than a builtin or shell function is to be executed, it is invoked in a separate exec...
Rozier asked 9/4, 2018 at 1:6

3

Solved

I need to do refactoring in a big legacy Python code base. Often I think "these lines don't get executed in production any more". But I am unsure. There are some tests which touch these lines. B...
Departmentalism asked 7/5, 2018 at 7:30

1

Newer versions of Visual Studio Support EditorConfig within the IDE which is useful, however it would be best if I could run it from the command line (and therefore in automation). Is there any st...
Grabowski asked 13/11, 2018 at 15:36

3

I am little confuse in the efficient way to use connect() from react-redux library. I have the blow component class SignUp extends React.Component { //some functions render(){ return ( <SignU...
Different asked 31/1, 2019 at 18:18

1

Solved

I don't always write make files but when I do I like to try and write them well. Trying to make the interface consistent with what other developers might expect is always a struggle. What I am look...
Recitation asked 14/8, 2018 at 9:6

5

Solved

Is it alright to define a lambda function to be used only locally, that is in the current block (function/method)? Consider the situation when some code is going to be executed several times ...
Kareykari asked 6/6, 2018 at 9:41

© 2022 - 2024 — McMap. All rights reserved.