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

Save custom quke args to global env vars #5

Merged
merged 2 commits into from
May 13, 2016

Conversation

Cruikshanks
Copy link
Member

This change saves the values of DRIVER and PAUSE (qukes custom arguments) to global variables so they can be accessed from anywhere else in the code base. The expected use of these variables is in things like extra functionality around fail scenarios, but at this point its just about making them accessible.

This change saves the values of DRIVER and PAUSE (qukes custom arguments) to global variables so they can be accessed from anywhere else in the code base. The expected use of these variables is in things like extra functionality around fail scenarios, but at this point its just about making them accessible.
Developers within our teams at the EA generally use rubocop to ensure the code they are writing is consistent with community conventions. In order to capture the values of quke's custom arguments for use elsewhere we have saved them to global variables which rubocop raises an excption for.

We know that global variables are not recommended hence rubocop flagging them, but in this case and due to the intended audience of quke (people who are not necessarily developers) it was felt to be the best solution. So this change adds a `.rubocop.yml` file with some default settings (display cop names and style guide link in errors) and GlobalVars disabled.
@Cruikshanks Cruikshanks self-assigned this May 13, 2016
@Cruikshanks Cruikshanks added the enhancement New feature or request label May 13, 2016
@Cruikshanks Cruikshanks merged commit 797980a into master May 13, 2016
@Cruikshanks Cruikshanks deleted the feature/save-arguments-as-global-env-vars branch May 13, 2016 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant