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

feat: minor refactor of how we debug and log out data in commands #563

Merged
merged 25 commits into from
Aug 10, 2022

Conversation

erunion
Copy link
Member

@erunion erunion commented Aug 10, 2022

🧰 Changes

Changes how we log out data in commands from calling debug() to having those commands set up as static methods in our core Command class.

ℹ️ Why do Command.debug() instead of this.debug()? Unfortunately in a number of places we're logging out debug the this scope gets polluted to the inside of a nested function and this.debug() becomes undefined.

@erunion erunion added the refactor Issues about tackling technical debt label Aug 10, 2022
@erunion erunion requested a review from kanadgupta August 10, 2022 00:01
@@ -30,15 +30,6 @@
*/
"class-methods-use-this": ["error", { "exceptMethods": ["run"] }],

"import/order": ["error", {
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved into our core standards and tagged a major release of that pkg. readmeio/standards@edffdbe

Base automatically changed from kanad/rm-4984-if-run-in-ci-environment-just-assume to main August 10, 2022 05:39
@erunion erunion merged commit 763642f into main Aug 10, 2022
@erunion erunion deleted the feat/minor-refactors branch August 10, 2022 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Issues about tackling technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants