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

🏗♻️:rm js console expressions as prep for logging framework adoption #1157

Merged
merged 4 commits into from
Mar 29, 2024

Conversation

deepsource-autofix[bot]
Copy link
Contributor

It is considered a best practice to avoid the use of any console methods in JavaScript code that will run on the browser.

NOTE: If your repository contains a server side project, you can add "nodejs" to the environment property of analyzer meta in .deepsource.toml.
This will prevent this issue from getting raised.
Documentation for the analyzer meta can be found here.
Alternatively, you can silence this issue for your repository as shown here.

If a specific console call is meant to stay for other reasons, you can add a skipcq comment to that line.
This will inform other developers about the reason behind the log's presence, and prevent DeepSource from flagging it.

It is considered a best practice to avoid the use of any `console` methods in JavaScript code that will run on the browser.

**NOTE:** If your repository contains a server side project, you can add `"nodejs"` to the `environment` property of analyzer meta in `.deepsource.toml`.
This will prevent this issue from getting raised.
Documentation for the analyzer meta can be found [here](https://docs.deepsource.com/docs/analyzers-javascript#meta).
Alternatively, you can silence this issue for your repository [as shown here](https://deepsource.com/blog/releases-issue-actions).

If a specific `console` call is meant to stay for other reasons, you can add [a skipcq comment](https://docs.deepsource.com/docs/issues-ignore-rules#silencing-a-specific-issue) to that line.
This will inform other developers about the reason behind the log's presence, and prevent DeepSource from flagging it.
Copy link

netlify bot commented Feb 28, 2024

👷 Deploy Preview for open-inf-is processing.

Name Link
🔨 Latest commit 0587a45
🔍 Latest deploy log https://app.netlify.com/sites/open-inf-is/deploys/65df4c7570725f00080ac249

Copy link
Member

@DerekNonGeneric DerekNonGeneric left a comment

Choose a reason for hiding this comment

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

thnx. but solution should not be having no replacement

@OpenINFbot OpenINFbot added the ⛔ Status: Blocked PRs that cannot move forward due to some other workstream label Feb 28, 2024
Copy link
Member

@DerekNonGeneric DerekNonGeneric left a comment

Choose a reason for hiding this comment

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

Screenshot 2024-03-04 at 15-28-01 JS-0002 @ 053e258 • OpenINF _ openinf github io

Screenshot 2024-03-04 at 15-54-50 JS-0099 @ 3ea0474 • OpenINF _ openinf github io

👆 we do not necessarily agree w/ those two

Copy link
Member

@DerekNonGeneric DerekNonGeneric left a comment

Choose a reason for hiding this comment

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

even as ex-@nodejs core, my position on this PR is still -1 BUT

and a big BUT: a logging framework should preferably be used

merging in good faith effort & also propose our switching @pinojs

See: https://getpino.io

@DerekNonGeneric DerekNonGeneric added the 🟨 Code: JS/TS PRs or issues regarding JavaScript/TypeScript code label Mar 29, 2024
@DerekNonGeneric DerekNonGeneric changed the title refactor: remove the console expressions 🏗♻️:rm js console expressions as prep for logging framework adoption Mar 29, 2024
DerekNonGeneric and others added 2 commits March 28, 2024 22:17
This commit fixes the style issues introduced in 1efc9e3 according to the output
from Prettier and RuboCop.

Details: #1157
Copy link

netlify bot commented Mar 29, 2024

Deploy Preview for openinfis ready!

Name Link
🔨 Latest commit 1efc9e3
🔍 Latest deploy log https://app.netlify.com/sites/openinfis/deploys/660624ba30d3ba0008121dbf
😎 Deploy Preview https://deploy-preview-1157--openinfis.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@DerekNonGeneric DerekNonGeneric added the 🗳️ Status: Author Ready PRs that are considered ready by their author label Mar 29, 2024
Copy link

netlify bot commented Mar 29, 2024

Deploy Preview for openinfis ready!

Name Link
🔨 Latest commit 024fb65
🔍 Latest deploy log https://app.netlify.com/sites/openinfis/deploys/660625fd51fb1a00086e629a
😎 Deploy Preview https://deploy-preview-1157--openinfis.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: Derek Lewis <dereknongeneric@open.inf.is>
@OpenINFbot
Copy link
Member

OpenINFbot commented Mar 29, 2024

and a big BUT: a logging framework should preferably be used

See OpenINF/nps — fork of project repo @ OpenINF-private/openinf-nps (with no known issues to date).

@DerekNonGeneric
Copy link
Member

this dang merge conflict is w/e — we can let this one rot here, but we can address insufficiencies we have found w/ off-the-shelf nps using @pinojs is necessary

@OpenINFbot OpenINFbot merged commit a61b502 into live Mar 29, 2024
18 of 22 checks passed
@OpenINFbot OpenINFbot deleted the deepsource-autofix-a56a83b9 branch March 29, 2024 03:00
DerekNonGeneric added a commit that referenced this pull request Mar 29, 2024
PR URL: #1157
Reviewed-by: Derek Lewis <dereknongeneric@open.inf.is>
Reviewed-by: OpenINF-bot <openinfbot@open.inf.is>

Signed-off-by: Derek Lewis <dereknongeneric@open.inf.is>
Cc: Grimes <grimes@open.inf.is>
Refs: https://github.com/OpenINF/nps
Co-Authored-By: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-Authored-By: Derek Lewis <dereknongeneric@open.inf.is>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🟨 Code: JS/TS PRs or issues regarding JavaScript/TypeScript code 🗳️ Status: Author Ready PRs that are considered ready by their author ⛔ Status: Blocked PRs that cannot move forward due to some other workstream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants