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 everything #257

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Lint everything #257

wants to merge 5 commits into from

Conversation

amrc-benmorrow
Copy link
Contributor

@amrc-benmorrow amrc-benmorrow commented Apr 22, 2024

  • Create a make lint top-level Makefile target which runs through all subdirs and lints anything which defines a lint rule.
  • Create a Makefile which can lint the deploy subdir.
  • Use this in the GH Action.

@amrc-benmorrow amrc-benmorrow self-assigned this Apr 22, 2024
@amrc-benmorrow amrc-benmorrow force-pushed the bmz/lint-all branch 3 times, most recently from c709267 to 3945a43 Compare April 25, 2024 07:38
@amrc-benmorrow amrc-benmorrow marked this pull request as ready for review April 25, 2024 08:20
Most of these do nothing as yet, but this gives us a framework.

Create a recursive top-level Makefile.
Give the recursive targets do-nothing commands. All deps of these
targets must now use unique target names. (We could use :: targets
instead, but this doesn't give order to the chunks of rule.)

Refactor the recursion.
Annoyingly we seem to need to install this separately for each subdir,
because of the way Node works.
The GH Actions checkout doesn't normally include tags or history,
presumably for speed. We don't care for linting, but we don't need
errors.

GMake likes to print a lot of messages about entering and leaving
directories, which are not helpful here.
@amrc-benmorrow amrc-benmorrow marked this pull request as draft November 6, 2024 12:16
@amrc-benmorrow
Copy link
Contributor Author

This needs rebasing before it can be considered for merge.

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.

1 participant