question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New Rule: secretlint-rule-secret-patterns

See original GitHub issue

It is generic rule (not recommended).

Thie rule just use @textlint/regexp-string-matcher for matching content with rule’s options.

{
  "rules": [
    {
      "id": "@secretlint/ecretlint-rule-secret-patterns",
      "options": {
        "pattens": [
          "/IT IS SECRET/i",
          "/API_TOKEN=\w{40}/i"
        ],
        "patternFiles": ["./secret.yml"] // need?
      }
    }
  ]
}

This rule allow to define secret patterns by user. In other words, it is just user defined NG words list.

It similar concept with textlint-rule-prh. This rule allow a project to have own dictionary for secretlint.

TODO

  • Require suitable rule name
  • Implement

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
PseudoCodingcommented, Jun 5, 2020

I’ll try to get a PR open soon then!

1reaction
azucommented, Jun 5, 2020

I like it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SEC Final Rules
Proposed Rule Rel. No. 34-93169 · 33-11131, Nov. 2, 2022, Enhanced Reporting of Proxy Votes by Registered Management Investment Companies; ...
Read more >
The SEC Signals it is Ready to Enforce the New Marketing ...
The SEC originally published the new rule in March 2021 with a compliance date of November 4, 2022 to modernize and replace a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found