-
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
MarkdownBear: verify config_file #981
base: master
Are you sure you want to change the base?
Conversation
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! |
Comment on 8dd427a. Shortlog of HEAD commit does not match given regex. GitCommitBear, severity NORMAL, section |
5e514c0
to
af26057
Compare
af26057
to
770cb24
Compare
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 |
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.
wait - did this actually work? At least this commit seems to be not helpful, config_file should be None all the time
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.
I don't understand the purpose of the issue if the config_file
should be None
all the time.
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.
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
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.
Thx 👍
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.
I'm fairly confused by this. Where does config_file get set? Where does the value come from?
770cb24 will introduce definite bugs, needs work |
770cb24
to
09fff17
Compare
|
||
@staticmethod | ||
def generate_config(filename, file): | ||
return filename |
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/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.') | ||
|
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/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 |
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/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
09fff17
to
c532de2
Compare
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.') | ||
|
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/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 |
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/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
c532de2
to
82ea997
Compare
@@ -1,13 +1,20 @@ | |||
import json | |||
|
|||
from coalib.bearlib.abstractions.Linter import linter | |||
from coalib.bearlib.abstractions.Linter import | |||
_create_linter.LinterBase.generate_config |
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/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
8c0748a
to
e033ec4
Compare
@@ -1,13 +1,18 @@ | |||
import json | |||
|
|||
from coalib.bearlib.abstractions.Linter import linter | |||
from coalib.bearlib.abstractions.Linter import linter, _create_linter.LinterBase |
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.
Line is longer than allowed. (80 > 79)
LineLengthBear, severity NORMAL, section linelength
.
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
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again! |
If the config_file is provided, all other options are ignored.
Closes #925