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

DL3060: Lint for yarn cache clean #395 #592

Merged
merged 1 commit into from Apr 5, 2021
Merged

Conversation

m-ildefons
Copy link
Collaborator

  • Add new rule DL3060 linting for yarn cache clean after yarn install with severity DLInfoC
  • Add tests

This rule reminds the odd programmer about cleaning yarns caches after
installing, just like with the other package managers.

fixes: #395

How to verify it

This should trigger DL3060:

RUN yarn install foo

This should be fine:

RUN yarn install foo \
 && yarn cache clean

- Add new rule DL3060 linting for `yarn cache clean` after `yarn
  install` with severity `DLInfoC`
- Add tests

This rule reminds the odd programmer about cleaning `yarn`s caches after
installing, just like with the other package managers.
@lorenzo
Copy link
Member

lorenzo commented Apr 5, 2021

this looks great, thanks!

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.

Suggest yarn cache clean when yarn [install] was run
2 participants