Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ColumnLimit to 120 #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Magnati
Copy link
Contributor

@Magnati Magnati commented Nov 16, 2021

A ColumnLimit of 180 is far to big.

  • Definitions in Headers or method calls with several parameters with several non trivial types get over that fast.
  • horizontal scrolling is a pain
  • Not everybody has an 2k or 4k monitor (me) but just HD (me and others) some have on their Laptop even smaller resolutions, due to the small screens, if no monitor is available (not me, but I know colleagues) this is however a minority.
  • Our python format definition is 111.

But it seems that this option shall be as big as possible.

Compromise: On a HD monitor in standard font size in several IDEs in default window/widget configuration (VS code, Intellij) the line ends between Column 120 and 130.
So I propose a ColumnLimit of 120.

A ColumnLimit of 180 is far to big. 
- Definitions in Headers or method calls with several parameters with several non trivial types get over that fast.
- horizontal scrolling is a pain
- Not everybody has an 2k or 4k monitor (me) but just HD (me and others) some have on their Laptop even smaller resolutions, due to the small screens, if no monitor is available (not me, but I know colleagues) this is however a minority.   
- Our python format definition is 111.   

But it seems that this option shall be as big as possible. 

Compromise: On a HD monitor in standard font size in several IDEs in default window/widget configuration (VS code, Intellij) the line ends between Column 120 and 130.  
So I propose a ColumnLimit of 120.
Copy link
Collaborator

@bibermann bibermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but when we change this we need to reformat the whole code.

@markusabel
Copy link
Contributor

We have coding guidelines in Ambrosys for that. For C++ we use the google style:

https://google.github.io/styleguide/cppguide.html#Line_Length

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants