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

make linting easier #2094

Merged
merged 1 commit into from
Jun 22, 2022
Merged

make linting easier #2094

merged 1 commit into from
Jun 22, 2022

Conversation

martinpeck
Copy link
Member

This is a small PR that makes local linting slightly easier, with a specific use case for linting the docs.

The Makefile allows you to override which files to include in the linting run. This is a regular expression, so it's possible to go wild on this, but the most obvious use case is to restrict the linting to a given folder, or a given file extension, or both.

Included in the Makefile is a use case that I will be using a lot. make lint-docs sets the regular expression and then runs the regular make lint. This allows us to locally check that the markdown will pass superlinter checks in the PR builds.

@github-actions
Copy link

Unit Test Results

0 tests   - 4   0 ✔️  - 2   0s ⏱️ - 51m 56s
0 suites  - 1   0 💤 ±0 
0 files    - 1   0  - 2 

Results for commit 4fb89fb. ± Comparison against base commit 0f05148.

@ross-p-smith
Copy link
Contributor

/test-force-approve

@github-actions
Copy link

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 4fb89fb)

(in response to this comment from @ross-p-smith)

@ross-p-smith ross-p-smith merged commit 0e415c4 into main Jun 22, 2022
@ross-p-smith ross-p-smith deleted the mpeck/linting-should-be-easier branch June 22, 2022 22:11
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