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

Sils/lints4 #354

Merged
merged 9 commits into from
Apr 25, 2016
Merged

Sils/lints4 #354

merged 9 commits into from
Apr 25, 2016

Conversation

sils
Copy link
Member

@sils sils commented Apr 25, 2016

No description provided.

"""

LANGUAGES = ("Java",)
Copy link
Contributor

Choose a reason for hiding this comment

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

why is the comma necessary with one argument?

Copy link
Member Author

Choose a reason for hiding this comment

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

("something") is the same as "something" but we want it to be a tuple, standard notation is ("something",)

Copy link
Member

Choose a reason for hiding this comment

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

hm interesting issue though, maybe file an issue to support single items?

@Adrianzatreanu
Copy link
Contributor

ack c1b502f

@staticmethod
def create_arguments(filename, file, config_file,
htmllint_ignore: typed_list(str)=()):
"""
:param htmllint_include: List of checkers to ignore.
Copy link
Member

Choose a reason for hiding this comment

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

:param htmllint_ignore: right?

@tushar-rishav
Copy link
Member

unack c1b502f

use_stdin=True)
class RuboCopBear:
"""
Checks the code with ``rubocop``. This will run ``rubocop`` over each of
Copy link
Member

Choose a reason for hiding this comment

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

Ignore if we are not strict with having imperatives here.

Copy link
Member Author

Choose a reason for hiding this comment

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

this commit doesn't change the docs, it's a refactoring of the code

Copy link
Member

Choose a reason for hiding this comment

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

Oh cool 👍

On Mon, Apr 25, 2016 at 11:42 PM, Lasse Schuirmann <notifications@github.com

wrote:

In bears/ruby/RuboCopBear.py
#354 (comment)
:

-class RuboCopBear(LocalBear, Lint):

  • executable = 'rubocop'
  • Need both stdin and filename. Explained in the comment:

  • [Fix #1682] Add STDIN support rubocop/rubocop#2146 (comment)

  • arguments = '{filename} --stdin --format=json'
  • severity_map = {
  •    "error": RESULT_SEVERITY.MAJOR,
    
  •    "warning": RESULT_SEVERITY.NORMAL,
    
  •    "convention": RESULT_SEVERITY.INFO
    
  • }
  • use_stdin = True
    +@LINTER(executable='rubocop',
  •    use_stdin=True)
    
    +class RuboCopBear:
  • """
  • Checks the code with rubocop. This will run rubocop over each of

this commit doesn't change the docs, it's a refactoring of the code


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/coala-analyzer/coala-bears/pull/354/files/7466e381198059dfd0b91a580972dd751faa0f34..cbb76220bbaf3377f020001ea937fffb95152c25#r60960389

@tushar-rishav
Copy link
Member

ack 9049270

@tushar-rishav
Copy link
Member

ack 7684ca8

@Makman2
Copy link
Member

Makman2 commented Apr 25, 2016

ack 930bc8d

@sils
Copy link
Member Author

sils commented Apr 25, 2016

reack 4a81fa9 9227382

@Makman2
Copy link
Member

Makman2 commented Apr 25, 2016

unack
3952427

@Makman2
Copy link
Member

Makman2 commented Apr 25, 2016

ack c1e766a

@Makman2
Copy link
Member

Makman2 commented Apr 25, 2016

ack f5237ac, 807fb95, 02dfb5e

@@ -9,9 +9,15 @@
@linter(executable='hlint')
class HaskellLintBear:
"""
Checks the given file with ``hlint``.
Check Haskell code for possible problems. Fixes include ideas such as using
alternative functions, simplifying code and removing redundancies.
Copy link
Member

Choose a reason for hiding this comment

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

what are "include ideas"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixes include: ideas such as..

@Makman2
Copy link
Member

Makman2 commented Apr 25, 2016

ack cbb0d26, f42572b, 3ba75b7, a8c8e51

@sils
Copy link
Member Author

sils commented Apr 25, 2016

coverage is 100%

@codecov-io
Copy link

Current coverage is 99.93%

Merging #354 into master will decrease coverage by -0.00%

@@             master       #354   diff @@
==========================================
  Files            73         73          
  Lines          1394       1359    -35   
  Methods           0          0          
  Messages          0          0          
  Branches        211        211          
==========================================
- Hits           1393       1358    -35   
  Misses            0          0          
  Partials          1          1          
  1. File ...on/PyDocStyleBear.py (not in diff) was modified. more
    • Misses 0
    • Partials 0
    • Hits -10

Sunburst

Powered by Codecov. Last updated by eadc8e8

@sils
Copy link
Member Author

sils commented Apr 25, 2016

@rultor merge

@rultor
Copy link

rultor commented Apr 25, 2016

@rultor merge

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

@rultor rultor merged commit a8c8e51 into master Apr 25, 2016
@rultor
Copy link

rultor commented Apr 25, 2016

@rultor merge

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

@sils sils deleted the sils/lints4 branch April 25, 2016 20:01
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.

7 participants