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

Enhancement: Add Unused Dependency Detector #65

Merged
merged 8 commits into from
Feb 16, 2021

Conversation

jofrey-a-msft-production
Copy link
Contributor

Tried implementing the feature mentioned in #52.

Bumping major version because this could not be implemented using the existing PackageRule type. I created a new rule type and as a result had to change checks in the configuration to be able to specify two different types of rules:

  1. Rules that check each file individually
  2. Rules that that check all files in aggregate

Because I had to change the config object, this will break existing configurations when updating the package. As such, I've considered this a major version bump.

new Failure(
ruleName,
asBollFile("package.json"),
asBollLineNumber(0),
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we be showing the exact line number for missing dependency instead of 0?

@jdhuntington jdhuntington merged commit f63555b into main Feb 16, 2021
@jdhuntington jdhuntington deleted the jofrey/unused-dep-detector branch February 16, 2021 20:16
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.

3 participants