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

MarkdownBear: verify config_file #981

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nosferatul
Copy link
Member

If the config_file is provided, all other options are ignored.

Closes #925

@gitmate-bot
Copy link
Collaborator

Thanks for your contribution!

Reviewing pull requests take really a lot of time and we're all volunteers. Please make sure you go through the following check list and complete them all before pinging someone for a review.

As you learn things over your Pull Request please help others on the chat and on PRs to get their stuff right as well!

@gitmate-bot
Copy link
Collaborator

Comment on 8dd427a.

Shortlog of HEAD commit does not match given regex.

GitCommitBear, severity NORMAL, section commit.

@Nosferatul Nosferatul force-pushed the Nosferatul/Markdown branch 2 times, most recently from 5e514c0 to af26057 Compare November 7, 2016 12:41
@gitmate-bot gitmate-bot added size/S and removed size/XS labels Nov 7, 2016
@gitmate-bot gitmate-bot added size/XS and removed size/S labels Nov 7, 2016
config_json = json.dumps(remark_configs)
# Remove { and } as remark adds them on its own
settings = config_json[1:-1]
return '--no-color', '--quiet', '--setting', settings
Copy link
Member

Choose a reason for hiding this comment

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

wait - did this actually work? At least this commit seems to be not helpful, config_file should be None all the time

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand the purpose of the issue if the config_file should be None all the time.

Copy link
Member

Choose a reason for hiding this comment

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

you have to override https://github.com/coala/coala/blob/master/coalib/bearlib/abstractions/Linter.py#L127 for the config to be generated, then config_file will hold a filename of that config

Copy link
Member Author

Choose a reason for hiding this comment

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

Thx 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm fairly confused by this. Where does config_file get set? Where does the value come from?

@sils
Copy link
Member

sils commented Nov 7, 2016

770cb24 will introduce definite bugs, needs work


@staticmethod
def generate_config(filename, file):
return filename
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/bears/markdown/MarkdownBear.py
+++ b/bears/markdown/MarkdownBear.py
@@ -14,6 +14,7 @@
 @staticmethod
 def generate_config(filename, file):
     return filename
+

 class MarkdownBear:
     """

from coalib.bears.requirements.NpmRequirement import NpmRequirement


@linter(executable='remark',
use_stdin=True,
output_format='corrected',
result_message='The text does not comply to the set style.')

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/bears/markdown/MarkdownBear.py
+++ b/bears/markdown/MarkdownBear.py
@@ -10,7 +10,6 @@
         use_stdin=True,
         output_format='corrected',
         result_message='The text does not comply to the set style.')
-
 @staticmethod
 def generate_config(filename, file):
     return filename

@@ -1,13 +1,20 @@
import json

from coalib.bearlib.abstractions.Linter import linter
from coalib.bearlib.abstractions.Linter import
_create_linter.LinterBase.generate_config
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/bears/markdown/MarkdownBear.py
+++ b/bears/markdown/MarkdownBear.py
@@ -2,7 +2,7 @@

 from coalib.bearlib.abstractions.Linter import linter
 from coalib.bearlib.abstractions.Linter import
-                                    _create_linter.LinterBase.generate_config
+    _create_linter.LinterBase.generate_config
 from coalib.bears.requirements.NpmRequirement import NpmRequirement

from coalib.bears.requirements.NpmRequirement import NpmRequirement


@linter(executable='remark',
use_stdin=True,
output_format='corrected',
result_message='The text does not comply to the set style.')

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/bears/markdown/MarkdownBear.py
+++ b/bears/markdown/MarkdownBear.py
@@ -10,7 +10,6 @@
         use_stdin=True,
         output_format='corrected',
         result_message='The text does not comply to the set style.')
-
 @staticmethod
 def generate_config(filename, file):
     return filename

@@ -1,13 +1,21 @@
import json

from coalib.bearlib.abstractions.Linter import linter
from coalib.bearlib.abstractions.Linter import
_create_linter.LinterBase.generate_config
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/bears/markdown/MarkdownBear.py
+++ b/bears/markdown/MarkdownBear.py
@@ -2,7 +2,7 @@

 from coalib.bearlib.abstractions.Linter import linter
 from coalib.bearlib.abstractions.Linter import
-                                    _create_linter.LinterBase.generate_config
+    _create_linter.LinterBase.generate_config
 from coalib.bears.requirements.NpmRequirement import NpmRequirement

@@ -1,13 +1,20 @@
import json

from coalib.bearlib.abstractions.Linter import linter
from coalib.bearlib.abstractions.Linter import
_create_linter.LinterBase.generate_config
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/bears/markdown/MarkdownBear.py
+++ b/bears/markdown/MarkdownBear.py
@@ -2,7 +2,7 @@

 from coalib.bearlib.abstractions.Linter import linter
 from coalib.bearlib.abstractions.Linter import
-                                    _create_linter.LinterBase.generate_config
+    _create_linter.LinterBase.generate_config
 from coalib.bears.requirements.NpmRequirement import NpmRequirement

@Nosferatul Nosferatul force-pushed the Nosferatul/Markdown branch 3 times, most recently from 8c0748a to e033ec4 Compare November 14, 2016 14:12
@@ -1,13 +1,18 @@
import json

from coalib.bearlib.abstractions.Linter import linter
from coalib.bearlib.abstractions.Linter import linter, _create_linter.LinterBase
Copy link
Collaborator

Choose a reason for hiding this comment

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

Line is longer than allowed. (80 > 79)

LineLengthBear, severity NORMAL, section linelength.

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

28 similar comments
@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

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.

4 participants