From ab1f55dc4eb2d6ab2d58d27c3e37329025c0e6da Mon Sep 17 00:00:00 2001 From: francisfuzz <15894826+francisfuzz@users.noreply.github.com> Date: Wed, 18 Sep 2024 05:55:23 -0700 Subject: [PATCH] docs(README.md): Document HardCodedString linter (#278) --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/README.md b/README.md index 16cc4f8..4ab7c0f 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ linters: | [ErbSafety](#erbsafety) | No | detects unsafe interpolation of ruby data into various javascript contexts and enforce usage of safe helpers like `.to_json`. | | [Rubocop](#rubocop) | No | runs RuboCop rules on ruby statements found in ERB templates | | [RequireScriptNonce](#requirescriptnonce) | No | warns about missing [Content Security Policy nonces](https://guides.rubyonrails.org/security.html#content-security-policy) in script tags | +| [HardCodedString](#hardcodedstring) | No | warns if there is a visible hardcoded string in the DOM (does not check for a hardcoded string nested inside a JavaScript tag) | ### DeprecatedClasses @@ -500,6 +501,49 @@ Linter-Specific Option | Description `allow_blank` | True or false, depending on whether or not the `type` attribute may be omitted entirely from a `