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 a Markdown linter to check validation tasks #1421

Merged
merged 1 commit into from
Jul 21, 2024

Conversation

liblit
Copy link
Contributor

@liblit liblit commented Jul 21, 2024

I would rather use Spotless for these checks, for consistency with other format checkers that we already use. Spotless supports Markdown via flexmark, but unfortunately Spotless does not provide access to any of flexmark's configuration options. That would leave us with a Markdown linter that is too lenient for my tastes. For example, Spotless's flexmark configuration does not even restrict maximum line length.

Resolves #818.

I would rather use Spotless for these checks, for consistency with other
format checkers that we already use.  [Spotless supports Markdown via
flexmark](https://github.com/diffplug/spotless/tree/main/plugin-gradle#flexmark),
but unfortunately [Spotless does not provide access to any of flexmark's
configuration
options](diffplug/spotless#2183).  That would
leave us with a Markdown linter that is too lenient for my tastes.  For
example, [Spotless's flexmark configuration does not even restrict
maximum line length](diffplug/spotless#2167).

Resolves wala#818.
@liblit liblit added enhancement gradle WALA’s Gradle build system labels Jul 21, 2024
@liblit liblit requested a review from msridhar July 21, 2024 22:47
@liblit liblit self-assigned this Jul 21, 2024
@liblit liblit enabled auto-merge (rebase) July 21, 2024 22:47
Copy link

Test Results

  813 files  ±0    813 suites  ±0   3h 24m 50s ⏱️ - 19m 14s
  735 tests ±0    718 ✅ ±0   17 💤 ±0  0 ❌ ±0 
5 029 runs  ±0  4 908 ✅ ±0  121 💤 ±0  0 ❌ ±0 

Results for commit e7c4c94. ± Comparison against base commit 3e7322d.

Copy link
Member

@msridhar msridhar left a comment

Choose a reason for hiding this comment

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

Nice!

@liblit liblit merged commit 202ca3c into wala:master Jul 21, 2024
11 checks passed
@liblit liblit deleted the markdown-lint branch July 21, 2024 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement gradle WALA’s Gradle build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Markdown linter as part of ./gradlew check
2 participants