ethernaut icon indicating copy to clipboard operation
ethernaut copied to clipboard

Use the correct line tab

Open vibern0 opened this issue 6 years ago • 7 comments
trafficstars

As I work with 4 spaces as a tab, I immediately saw the difference. I prefer the 4 spaces, but that is not the problem.

Since I use VSCode and, by default I have 4 spaces, the code I was writing, was not being formatted correctly.

In all my projects, I use EditorConfig. It will be awesome to have it here as well. What are your thoughts?

vibern0 avatar May 18 '19 17:05 vibern0

It's a very good idea. I think we should also change indentation in the code to be o be consistent with Solidity Style Guide -I've noticed that there are 4 spaces or 2 spaces used in different contracts. We can also convert all existing indentation to spaces

paulinablaszk avatar Jul 23 '19 05:07 paulinablaszk

Great, I'll open a PR. Since you are working in #123 do you want to do that with the contracts? I've realized there's no linter for JS either. Instead of editorconfig, maybe a linter is better, like eslint.

vibern0 avatar Jul 23 '19 09:07 vibern0

I can correct the contracts. Do you think I should do it within #123 or is it better to wait for the review to don't mix those issues?

paulinablaszk avatar Jul 23 '19 10:07 paulinablaszk

Let's not mix it. #123 is already really big and you've put a huge amount of time and really good work. And that is about migrating it to 0.5, so let's keep it this way. After that, we open another PR to fix this issue. :+1:

vibern0 avatar Jul 23 '19 10:07 vibern0

Sounds like a good plan :)

paulinablaszk avatar Jul 23 '19 11:07 paulinablaszk

Agree on updating the contracts once #123 is done.

My preference is consistency with OpenZeppelin contracts linting.

abcoathup avatar Jul 25 '19 04:07 abcoathup

@obernardovieira does this still apply ?

xaler5 avatar Dec 25 '22 20:12 xaler5