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, fmt: support tags for approaches and concepts #822

Merged
merged 13 commits into from
Oct 6, 2023
Merged

Conversation

ErikSchierboom
Copy link
Member

@ErikSchierboom ErikSchierboom commented Oct 5, 2023

  • Lint tags for approaches
  • Lint tags for concepts
  • Don't check tags for articles
  • Try fmt tags

For background, see the forum thread.

@ErikSchierboom ErikSchierboom marked this pull request as draft October 5, 2023 14:52
@ErikSchierboom ErikSchierboom force-pushed the analyzer-tags-support branch 2 times, most recently from 5a8edb2 to 81df8bb Compare October 6, 2023 07:42
src/fmt/approaches.nim Show resolved Hide resolved
src/lint/approaches_and_articles.nim Outdated Show resolved Hide resolved
@ErikSchierboom ErikSchierboom marked this pull request as ready for review October 6, 2023 07:43
src/types_approaches_config.nim Outdated Show resolved Hide resolved
src/types_track_config.nim Show resolved Hide resolved
src/lint/approaches_and_articles.nim Outdated Show resolved Hide resolved
src/lint/approaches_and_articles.nim Outdated Show resolved Hide resolved
src/lint/validators.nim Outdated Show resolved Hide resolved
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.

No diff to output of configlet lint on any track.

Diff in output of configlet fmt on exactly one track:

csharp

-The below paths are relative to '/home/foo/exercism-tracks/csharp'
-Not formatted: config.json
-Not formatted: exercises/practice/bank-account/.approaches/config.json
-Not formatted: exercises/practice/bob/.approaches/config.json
-Not formatted: exercises/practice/collatz-conjecture/.approaches/config.json
-Not formatted: exercises/practice/darts/.approaches/config.json
-Not formatted: exercises/practice/difference-of-squares/.approaches/config.json
-Not formatted: exercises/practice/diffie-hellman/.approaches/config.json
-Not formatted: exercises/practice/gigasecond/.approaches/config.json
-Not formatted: exercises/practice/grade-school/.approaches/config.json
-Not formatted: exercises/practice/grains/.approaches/config.json
-Not formatted: exercises/practice/hamming/.approaches/config.json
-Not formatted: exercises/practice/isogram/.approaches/config.json
-Not formatted: exercises/practice/leap/.approaches/config.json
-Not formatted: exercises/practice/pangram/.approaches/config.json
-Not formatted: exercises/practice/parallel-letter-frequency/.approaches/config.json
-Not formatted: exercises/practice/perfect-numbers/.approaches/config.json
-Not formatted: exercises/practice/phone-number/.approaches/config.json
-Not formatted: exercises/practice/pig-latin/.approaches/config.json
-Not formatted: exercises/practice/protein-translation/.approaches/config.json
-Not formatted: exercises/practice/proverb/.approaches/config.json
-Not formatted: exercises/practice/raindrops/.approaches/config.json
-Not formatted: exercises/practice/reverse-string/.approaches/config.json
-Not formatted: exercises/practice/rna-transcription/.approaches/config.json
-Not formatted: exercises/practice/series/.approaches/config.json
-Not formatted: exercises/practice/sieve/.approaches/config.json
-Not formatted: exercises/practice/two-fer/.approaches/config.json
-Not formatted: exercises/practice/yacht/.approaches/config.json
+Every exercise config is already formatted!

@ee7 ee7 self-assigned this Oct 6, 2023
src/lint/track_config.nim Outdated Show resolved Hide resolved
@ee7 ee7 self-requested a review October 6, 2023 09:43
@ee7 ee7 merged commit 9251cb4 into main Oct 6, 2023
12 checks passed
@ee7 ee7 deleted the analyzer-tags-support branch October 6, 2023 12:45
@ee7 ee7 changed the title Support tags field lint, fmt: support tags for approaches and concepts Oct 6, 2023
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