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

Code cleanup: spacing, tabs at ends of lines #6653

Closed
josephsl opened this issue Dec 19, 2016 · 6 comments
Closed

Code cleanup: spacing, tabs at ends of lines #6653

josephsl opened this issue Dec 19, 2016 · 6 comments
Labels
p5 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority

Comments

@josephsl
Copy link
Collaborator

Hi,

Briefly discussed in #6589:

There are some instances where we have different spacing to denote boundaries between classes, as well as lines that only have tabs (and appears to be blank when it isn't). This became prominent during introduction of GUI Helper services.

Thus the following are proposed:

  1. Locate lins that only have tabs and remove them.
  2. Use two lines to denote boundaries between classes.
  3. Other consistent style for blank lines.

@feerrenrut, @derekriemer and others, any thoughts?

Thanks.

josephsl added a commit to josephsl/nvda that referenced this issue Dec 20, 2016
…#6653

Although the line may look blank, it is actually a line of tabs, thus remove extra tabs from some modules.
@feerrenrut
Copy link
Contributor

I can see how this is important, and its unfortunate that the blank lines weren't picked up before being merged, I'll try look out for this more carefully in the future. Generally I would try to avoid code changes just to fix formatting, because it doesn't provide functionality but adds noise to the file history and can cause merge conflicts. However if this improves the readability of the code, then that is valuable. If the changed lines are all blank or whitespace, then it is unlikely to cause problems with merges / file history.

@feerrenrut feerrenrut added the p5 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority label Dec 21, 2016
@josephsl
Copy link
Collaborator Author

josephsl commented Dec 21, 2016 via email

@jcsteh
Copy link
Contributor

jcsteh commented Dec 22, 2016 via email

@Adriani90
Copy link
Collaborator

This will be actually fixed interactively also through flake8 errors and warnings. @josephsl don't you think we could close this now?

@josephsl
Copy link
Collaborator Author

josephsl commented Jan 25, 2020 via email

@feerrenrut
Copy link
Contributor

I don't think this is a good use of time, and only introduces noise into the history. As mentioned we have the linter to stop new issues from being introduced, and this should gradually affect older files too. Even if this was done by the community as a contribution, I don't think we could justify the time to review something like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p5 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority
Projects
None yet
Development

No branches or pull requests

4 participants