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

Bug solving sprint #747

Merged
merged 21 commits into from
Sep 3, 2016
Merged

Bug solving sprint #747

merged 21 commits into from
Sep 3, 2016

Conversation

AbdealiLoKo
Copy link
Contributor

No description provided.

@@ -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
Copy link
Contributor

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
Copy link
Member

Choose a reason for hiding this comment

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

colon : after are maybe

Copy link
Contributor

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
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Contributor Author

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 ?

Copy link
Member

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

@AbdealiLoKo AbdealiLoKo changed the title JSHint - deprecated args Bear bug fixes - JSHint, JSComplexity Aug 31, 2016
"radon_ranks_info": "",
"radon_ranks_normal": "A",
"radon_ranks_major": ""})
valid_files=(),
Copy link
Collaborator

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": ""})

@sils
Copy link
Member

sils commented Sep 3, 2016

ack fa70e92

@sils
Copy link
Member

sils commented Sep 3, 2016

ack db8a2de

@sils
Copy link
Member

sils commented Sep 3, 2016

unack a9c22db the commit message context in the shortlog is misleading, I'd just remove it

AbdealiLoKo and others added 5 commits September 3, 2016 21:39
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
@sils
Copy link
Member

sils commented Sep 3, 2016

ack a9c22db

@sils
Copy link
Member

sils commented Sep 3, 2016

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.
Copy link
Member

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?

Copy link
Contributor Author

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

@sils
Copy link
Member

sils commented Sep 3, 2016

ack 24598e5

@sils
Copy link
Member

sils commented Sep 3, 2016

ack 41aa471

@AbdealiLoKo
Copy link
Contributor Author

reack 5c72d4e 8a3d7fd

@sils
Copy link
Member

sils commented Sep 3, 2016

ack 22cdc8a

AUTHORS = {'The coala developers'}
AUTHORS_EMAILS = {'[email protected]'}
LICENSE = 'AGPL-3.0'
CAN_FIX = {'Syntax'}
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sils
Copy link
Member

sils commented Sep 3, 2016

ack c60e9f5

@sils
Copy link
Member

sils commented Sep 3, 2016

ack 8a3d7fd

1 similar comment
@sils
Copy link
Member

sils commented Sep 3, 2016

ack 8a3d7fd

@sils
Copy link
Member

sils commented Sep 3, 2016

ack ee34cdc b3be8f3

@sils
Copy link
Member

sils commented Sep 3, 2016

@rultor merge

@rultor
Copy link

rultor commented Sep 3, 2016

@rultor merge

@sils1297 OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit b3be8f3 into master Sep 3, 2016
@rultor
Copy link

rultor commented Sep 3, 2016

@rultor merge

@sils1297 Done! FYI, the full log is here (took me 1min)

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

Successfully merging this pull request may close these issues.

9 participants