Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
danger-plugin-no-console-ext
Advanced tools
Readme
Danger plugin to prevent merging code that still has
console.log
s inside it.
Install:
yarn add danger-plugin-no-console-ext --dev
At a glance:
// dangerfile.js
import { schedule } from 'danger'
import noConsole from 'danger-plugin-no-console-ext'
// Note: You need to use schedule()
schedule(noConsole())
Fails | |
---|---|
⛔️ |
1 console statement(s) left in src/add.js. |
whitelist
You can specify a whitelist of console properties to let pass. This is useful to e.g. let errors be logged, like so:
// dangerfile.js
import noConsole from 'danger-plugin-no-console'
// Any file that contains console.log or console.info will fail,
// but files can contain console.error and console.warn
schedule(noConsole({ whitelist: ['error', 'warn'] }))
See the GitHub release history.
See CONTRIBUTING.md.
FAQs
Danger plugin to prevent merging code that still has `console.log`s inside it.
The npm package danger-plugin-no-console-ext receives a total of 564 weekly downloads. As such, danger-plugin-no-console-ext popularity was classified as not popular.
We found that danger-plugin-no-console-ext demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.