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

(GH-18) added depcheck to the pipeline #20

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nils-a
Copy link
Contributor

@nils-a nils-a commented Dec 20, 2020

Depcheck will raise warnings. if unused packages are referenced
in packages.json.

configuration:

  • shouldRunDepcheck (bool) configures whether to run depcheck at all.
    Default: true
  • depcheckArguments (string) arguments to pass to the call of depcheck.
    Default: ""

fixes #18

@nils-a
Copy link
Contributor Author

nils-a commented Dec 20, 2020

There's one todo still left in the code: build.cake, line 233:

I'm not sure if outputting an error in "enough". We could also throw and break the build.

@gep13
Copy link
Member

gep13 commented Dec 21, 2020

@nils-a how about another parameter? i.e. shouldFailOnError?

@nils-a
Copy link
Contributor Author

nils-a commented Dec 21, 2020

@gep13 shouldFailOnError sounds rather generic. What about shouldFailOnDepcheckError ?

@gep13
Copy link
Member

gep13 commented Dec 21, 2020

@nils-a yip, makes sense to me. I wasn't sold on the name that I came up with, just the idea to make it configurable.

Depcheck will raise warnings. if unused packages are referenced
in packages.json.

configuration:
 * shouldRunDepcheck (bool) configures whether to run depcheck at all.
Default: true
 * shouldFailOnDepcheckError (bool) configures whether depcheck errors
will break the build or only raise warnings. Default: true.
 *  depcheckArguments (string) arguments to pass to the call of depcheck.
 Default: ""
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.

Add support for running depcheck
2 participants