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

Add MarkdownBear and format existing .md #128

Merged
merged 1 commit into from
May 9, 2018

Conversation

blazeu
Copy link
Member

@blazeu blazeu commented May 8, 2018

Default MarkdownBear style used.
Probably need CI.

Closes #125

| cEP | 0000 |
| Version | 2.2 |
| Title | coala Enhancement Proposals |
| Authors | Lasse Schuirmann <mailto:[email protected]> |
Copy link
Member Author

@blazeu blazeu May 8, 2018

Choose a reason for hiding this comment

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

Not sure if we want this, since GitHub already highlight email without mailto:
but MarkdownBear enforces this

Copy link
Member

Choose a reason for hiding this comment

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

@blazeu
Copy link
Member Author

blazeu commented May 8, 2018

Note that MarkdownBear often gives us trouble, so this may not be as easy as it sounds.
#125 (comment)

There's this bug coala/coala-bears#1235 which can usually be avoided by installing the correct packages and version of remark.

Also, coala/coala-bears#2131 (comment) which can be confusing as hell, upstream bug and needs more testing.

## Code Samples

### Collecting extracted information from project

<!-- Start ignoring MarkdownBear -->
Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe a bug, it wants to add more and more indentation to the codeblocks below.

cEP-0014.md Outdated
@@ -410,7 +545,8 @@ def aggregate_info(infoextractors):
```

### Collecting all the meta-data
```py

````py
Copy link
Member Author

Choose a reason for hiding this comment

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

4 backticks? I don't understand the reason.

Copy link
Member

Choose a reason for hiding this comment

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

Agree strange.
You intended to put an Start ignoring.. 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.

Okay, replaced it with 3 and MarkdownBear didn't complain

shortlog(and the the first character following the colon if there is one)
given the value of
<!-- Ignore MarkdownBear -->
`Root.Metadata.CommitMessage.Shortlog.FirstCharacter.shortlog_starts_upper_case`
Copy link
Member Author

@blazeu blazeu May 8, 2018

Choose a reason for hiding this comment

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

MarkdownBear wants to warp inline codeblock, this doesn't happen with remark-lint@6, but MarkdownBear is using v5.

| cEP | 0001 |
| Version | 2.0 |
| Title | Decision Making in coala |
| Authors | Maximilian Scholz <mailto:[email protected]>, Lasse Schuirmann <mailto:[email protected]>, Mischa Krüger <mailto:[email protected]> |
Copy link
Member

Choose a reason for hiding this comment

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

this is going to be annoying when another author is added.
markdown tables suck

Copy link
Member Author

Choose a reason for hiding this comment

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

Make it 1 author per line?

Copy link
Member

Choose a reason for hiding this comment

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

then we get into variations of markdown.
not worth it atm.
IMO we propose a change to cEP 0 to replace .md with .asciidoc or rst.

#129

cEP-0001.md Outdated
have voting rights on B and C level decisions.
A developer can be promoted to a maintainer with a B level decision. This
decision does not have to be initiated by a maintainer so it is valid for a
developer to propose himself for a promotion. A maintainer has all the rights a
Copy link
Member

Choose a reason for hiding this comment

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

add an extra blank line before A maintainer .. - that preserves the intent a bit better IMO

cEP-0014.md Outdated
@@ -410,7 +545,8 @@ def aggregate_info(infoextractors):
```

### Collecting all the meta-data
```py

````py
Copy link
Member

Choose a reason for hiding this comment

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

Agree strange.
You intended to put an Start ignoring.. here?

jayvdb
jayvdb previously approved these changes May 9, 2018
@jayvdb
Copy link
Member

jayvdb commented May 9, 2018

ack 3ab92ca

@jayvdb
Copy link
Member

jayvdb commented May 9, 2018

@gitmate-bot rebase

@gitmate-bot
Copy link

Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently ⚠️

@gitmate-bot
Copy link

Automated rebase with GitMate.io was successful! 🎉

@jayvdb
Copy link
Member

jayvdb commented May 9, 2018

reack c1a4b7e

@jayvdb
Copy link
Member

jayvdb commented May 9, 2018

@gitmate-bot ff

@gitmate-bot
Copy link

Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently ⚠️

@gitmate-bot
Copy link

Automated fastforward with GitMate.io was successful! 🎉

@gitmate-bot gitmate-bot merged commit c1a4b7e into coala:master May 9, 2018
@virresh
Copy link
Member

virresh commented May 9, 2018

I tried running the mark-down bear locally, but it reports errors in other cEP's as well
Here is the corresponding output https://gist.github.com/virresh/b65304112e75a238f00a41a9f3d00a86

I used [email protected] and [email protected]

@blazeu
Copy link
Member Author

blazeu commented May 10, 2018

@virresh can you open an issue please?

@blazeu blazeu mentioned this pull request May 10, 2018
@virresh
Copy link
Member

virresh commented May 17, 2018

@blazeu I realised I was using coala's development version
Using the pip version solved it 😅

Although even the pre-release on pip doesn't work well with MarkDown bear
Probably we will have to look into it when we do the next pre-release of coala 😅

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