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

Rule S1075: URIs should not be hardcoded #507

Closed
Evangelink opened this issue Jun 30, 2017 · 0 comments
Closed

Rule S1075: URIs should not be hardcoded #507

Evangelink opened this issue Jun 30, 2017 · 0 comments
Assignees
Milestone

Comments

@Evangelink
Copy link
Contributor

Evangelink commented Jun 30, 2017

RSPEC-1075

Hard coding a URI makes it difficult to test a program: path literals are not always portable across operating systems, a given absolute path may not exist on a specific test environment, a specified Internet URL may not be available when executing the tests, production environment filesystems usually differ from the development environment, ...etc. For all those reasons, a URI should never be hard coded. Instead, it should be replaced by customizable parameter.

Contributes to MMF-963.

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

No branches or pull requests

3 participants