Answer the question
In order to leave comments, you need to log in
How does code formatting affect git conflicts?
Why do teams that develop with git have certain rules for customizing the code editor? How do they affect git conflicts? (Let's say there are tabs or spaces, their number)
Answer the question
In order to leave comments, you need to log in
it's not so much due to git conflicts as it is to one style of code on the project. Every developer likes to write code in a certain style. Imagine the horror in the files when a team of 10 developers write code each in a different style. And if there are hundreds or thousands of developers on the project?
It will be PPC. And a couple of days ago I got such a project for revision. There is no single style. Who wanted to write like that. Therefore, they came up with some standards for writing code.
Why do teams that develop with git have certain rules for customizing the code editor?I've never heard before that this has to do with using Git.
No way.
This requirement does not apply to the git, but refers to internal standards for coding.
In fact, there are a couple of points in this that are important for working in git, and not only.
I'll try to tell you with an example:
We have a function like
function parseData({options = {}, lang, info, test, data, ...other}) {
}
function parseData({options = {}, lang, info, test, data, data2, ...other}) {
}
function parseData({options = {}, lang, info, test, data, info, ...other}) {
}
function parseData({
options = {},
lang,
info,
test,
data,
...other,
}) {
}
const data = {
attr1: '',
attr2: ",
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question