Skip to content

config: Ignore description.md and metadata.yml #284

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

Merged
merged 1 commit into from
May 9, 2017
Merged

config: Ignore description.md and metadata.yml #284

merged 1 commit into from
May 9, 2017

Conversation

petertseng
Copy link
Member

They were created for #248, but since they're not in the ignore_pattern
they are being served.

See for proof:
http://x.exercism.io/v2/exercises/rust/luhn-from
http://x.exercism.io/v2/exercises/rust/luhn-trait

And note how description.md and metadata.yml appear inside the response.

They were created for #248, but since they're not in the ignore_pattern
they are being served.

See for proof:
http://x.exercism.io/v2/exercises/rust/luhn-from
http://x.exercism.io/v2/exercises/rust/luhn-trait

And note how description.md and metadata.yml appear inside the response.
@petertseng petertseng merged commit 230b91a into exercism:master May 9, 2017
@petertseng petertseng deleted the ignore-metas branch May 9, 2017 16:20
@@ -1,6 +1,7 @@
{
"slug": "rust",
"language": "Rust",
"ignore_pattern": "example|description.md|metadata.yml",
Copy link
Member Author

Choose a reason for hiding this comment

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

fun fact: this will match a file name descriptionxmd, but we have no files of that name, so I don't care. it will go away if files move to .meta.

Copy link
Contributor

Choose a reason for hiding this comment

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

another fun fact: When you need to put a backslash in json string you need two, so the correct regex still looks odd.
"ignore_pattern": "example|description\\.md|metadata\\.yml"

Copy link
Contributor

Choose a reason for hiding this comment

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

another fun fact: the ignore_pattern is not anchored so you'll also match the_description.md_file_contains_the_description

petertseng added a commit to Insti/xrust that referenced this pull request May 19, 2017
This reverts commit 230b91a.

Since the previous commit removes the duplicate files, there is no more
need to ignore them! The new copies (exercism#285) are in the .meta directory,
which is always ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants