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

Coala counting whitespaces pressent aftercode. #6035

Open
AayusHTiw opened this issue Jun 24, 2019 · 1 comment
Open

Coala counting whitespaces pressent aftercode. #6035

AayusHTiw opened this issue Jun 24, 2019 · 1 comment

Comments

@AayusHTiw
Copy link

DESCRIPTION
Its good to count white unnecessary white spaces present in the code but it will be more practical if Coala counts only those unnecessary whitespaces which are present between the words of the code, not those which are present at the end of the line as those have no effect on the code output as well as on the screen of the user.
STEPS TO REPRODUCE
Take any general code in account .
for example - import sys
a = int(input())(SPACE)(SPACE)(SPACE)
ACTUAL RESULT
Your source code contains trailing whitespaces. Those usually have no meaning. Please consider removing them.
EXPECTED RESULT
No output statement or not any suggestion from Coala
REPRODUCIBILITY
100%
ADDITIONAL INFORMATION
The code is written on idle (of python) and not tested via any other ide like pycharm or anaconda.

@KVGarg
Copy link
Contributor

KVGarg commented Jun 25, 2019

@AayusHTiw Thnx for raising an issue but it is an invalid issue, sorry!
Generally, we should ensure that good coding practices be followed and adding unnecessarily white spaces at the end of line is never been a good practice. coala will raise a warning if it finds any of the trailing whitespaces. And, you must be using PEP8Bear which is showing you this log. Python by-default follows PEP8 coding standards
Moreover, IDEs like pycharm have built-in plugins. They by-default allows users to write python code following PEP8 coding standards. If it is enabled, it will definitely give you a suggestion(:bulb: ) about trailing whitespaces and will ask to remove them.

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

No branches or pull requests

2 participants