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

lint: check unique array values #296

Merged
merged 1 commit into from
May 1, 2021
Merged

lint: check unique array values #296

merged 1 commit into from
May 1, 2021

Conversation

ErikSchierboom
Copy link
Member

@ErikSchierboom ErikSchierboom commented Apr 30, 2021

This PR is a follow-up to #295.

It validates that the following properties don't have any duplicate values:

Track config:

  • exercises.concept.concepts
  • exercises.concept.prerequisites
  • exercises.practice.practices
  • exercises.practice.prerequisites

Concept Exercise config:

  • authors
  • contributors
  • forked_from

Practice Exercise config:

  • authors
  • contributors

@ErikSchierboom ErikSchierboom requested a review from ee7 April 30, 2021 08:10
This commit validates that the following properties don't have any
duplicate values:

Track config:
- `exercises.concept.concepts`
- `exercises.concept.prerequisites`
- `exercises.practice.practices`
- `exercises.practice.prerequisites`

Concept Exercise config:
- `authors`
- `contributors`
- `forked_from`

Practice Exercise config:
- `authors`
- `contributors`
@ee7 ee7 force-pushed the check-unique-array-values branch from 0a4b30f to b0eee61 Compare May 1, 2021 10:11
@ErikSchierboom ErikSchierboom marked this pull request as ready for review May 1, 2021 16:11
Copy link
Member

@ee7 ee7 left a comment

Choose a reason for hiding this comment

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

Nice. A bunch of extra boxes to tick on the checklist.

Currently, this PR does not change the configlet lint output on any track (currently all these arrays Exercism-wide have distinct elements).

I guess it's easier to accidentally e.g. duplicate a user between authors and contributors.

@ee7 ee7 merged commit 97a731b into main May 1, 2021
@ee7 ee7 deleted the check-unique-array-values branch May 1, 2021 16:56
@ErikSchierboom
Copy link
Member Author

:)

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