-
Notifications
You must be signed in to change notification settings - Fork 581
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
Bug solving sprint #747
Bug solving sprint #747
Conversation
@@ -209,6 +209,14 @@ def generate_config(filename, file, | |||
:param use_mozilla_extension: | |||
This options tells JSHint that your code uses Mozilla JavaScript | |||
extensions. | |||
:param javascript_strictness: | |||
What sort of strictness to use in the javascript code. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
javascript -> JavaScript
@@ -209,6 +209,14 @@ def generate_config(filename, file, | |||
:param use_mozilla_extension: | |||
This options tells JSHint that your code uses Mozilla JavaScript | |||
extensions. | |||
:param javascript_strictness: | |||
What sort of strictness to use in the JavaScript code. The | |||
possible options are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
colon :
after are
maybe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after how many params you have written, you are a master of it :D
- "global" - there must be a ``"use strict";`` at global level | ||
- "implied" - lint the code as if there is a ``"use strict";`` | ||
- False - disable warnings about strict mode | ||
- True - there must be a ``"use strict";`` at function level |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with this you're suggesting to the user that he should write "global"
including the quotes as true and false are quoteless which isn't what we want right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is what I mean, "global" is a string, True and False are booleans. The data type is bool_or_str
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm still I think this is confusing for the user because he enters all of them as strings and it's not important for him.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Soo, I should be adding quotes here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or remove them in the other examples
"radon_ranks_info": "", | ||
"radon_ranks_normal": "A", | ||
"radon_ranks_major": ""}) | ||
valid_files=(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code does not comply to PEP8.
PEP8Bear, severity NORMAL, section autopep8
.
The issue can be fixed by applying the following patch:
--- a/tests/python/RadonBearTest.py
+++ b/tests/python/RadonBearTest.py
@@ -22,8 +22,9 @@
RadonBearReportsTest = verify_local_bear(RadonBear,
- valid_files=(),
- invalid_files=(test_file1, test_file2),
- settings={"radon_ranks_info": "",
- "radon_ranks_normal": "A",
- "radon_ranks_major": ""})
+ valid_files=(),
+ invalid_files=(
+ test_file1, test_file2),
+ settings={"radon_ranks_info": "",
+ "radon_ranks_normal": "A",
+ "radon_ranks_major": ""})
ack fa70e92 |
ack db8a2de |
unack a9c22db the commit message context in the shortlog is misleading, I'd just remove it |
The PuppetLintBear runs the `puppet-lint` utility on files give by coala and gives results based on this. Closes #46
If eslint fails to run, for example if it gets an invalid config file it does not know how to handle, earlier the bear would throw a JSON Decoding error because it wouldn't know how to parse "" (an empty string). Now this case is handled, and it gracefull doesn't try to create results in such cases. Fixes #727
THe nltk versions were fixed a while back. THe comment is a remnant though, which can be removed now. Related to #509
Classes don't use snake casing, but rather CapWords convention according to PEP8.
This bear uses ``scspell`` to check for spelling mistakes. Closes #629
ack a9c22db |
ooops I unacked it before... a9c22db needs work |
@@ -38,3 +38,12 @@ | |||
ESLintBear, | |||
valid_files=(test_good, ''), | |||
invalid_files=(test_syntax_error, test_bad)) | |||
|
|||
# If there is an invalid config file, the results cannot be found. So, no | |||
# file gives a result. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you file an issue about warning the user and link it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already exist:
#730
coala/coala#2711
ack 24598e5 |
ack 41aa471 |
ack 22cdc8a |
AUTHORS = {'The coala developers'} | ||
AUTHORS_EMAILS = {'[email protected]'} | ||
LICENSE = 'AGPL-3.0' | ||
CAN_FIX = {'Syntax'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add an asciinema URL or file an issue about making one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack c60e9f5 |
ack 8a3d7fd |
1 similar comment
ack 8a3d7fd |
@rultor merge |
No description provided.