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

Add configuration file validation #49

Merged
merged 3 commits into from Sep 12, 2018
Merged

Conversation

bobvanderlinden
Copy link
Owner

Currently whenever a configuration file is available, defaults will be applied
and the result is used as-is.

It would be nice if the configuration was validated before use, so that strange
error will not occur due to configuration typing differences.

This PR will do validation for the configuration file and will fail in one place
when the configuration file does not follow the structure defined in TypeScript.

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

Failed to load tslint.json: Invalid "extends" configuration value - could not...
Failed to load tslint.json: Invalid "extends" configuration value - could not require "tslint-config-standard". Review the Node lookup algorithm (https://nodejs.org/api/modules.html#modules_all_together) for the approximate method TSLint uses to find the referenced configuration file.

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

Failed to load tslint.json: Invalid "extends" configuration value - could not...
Failed to load tslint.json: Invalid "extends" configuration value - could not require "tslint-config-standard". Review the Node lookup algorithm (https://nodejs.org/api/modules.html#modules_all_together) for the approximate method TSLint uses to find the referenced configuration file.

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

Failed to load tslint.json: Invalid "extends" configuration value - could not...
Failed to load tslint.json: Invalid "extends" configuration value - could not require "tslint-config-standard". Review the Node lookup algorithm (https://nodejs.org/api/modules.html#modules_all_together) for the approximate method TSLint uses to find the referenced configuration file.

@probot-auto-merge probot-auto-merge bot merged commit d27d994 into master Sep 12, 2018
@probot-auto-merge probot-auto-merge bot deleted the pr-config-validation branch September 12, 2018 19:30
@bobvanderlinden
Copy link
Owner Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants