sonarjs/no-clear-text-protocols
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/no-clear-text-protocols": "error",
},
},
];The documentation shows no incorrect example for this rule.
url = "https://example.com";
url = "sftp://[email protected]";
url = "ssh://[email protected]";const nodemailer = require("nodemailer");
let transporter = nodemailer.createTransport({
secure: true,
requireTLS: true,
port: 465,
secured: true
});var Client = require('ftp');
var c = new Client();
c.connect({
'secure': true
});Examples from the ESLint documentation.
sonarjs/no-clear-text-protocols
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-clear-text-protocols": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
"switch" statements should not contain non-case labels
Tests should not execute any code after "done()" is called
Constructors should not contain asynchronous operations
Collection size and array length comparisons should make sense
Regular expressions should not contain control characters