todogroup/repolinter

Scan for PATENTS in files

trevmex opened this issue · 1 comments

Issue Report

The term "PATENTS" can trigger bad things for some users.

Expected Behavior

Add a rule to detect the usage of the word "PATENTS" in the project.

Actual Behavior

It does not do this right now.

Steps to Reproduce the Issue

N/A

This check can be implemented using the file-not-contents rule:

[
  {
    "file-no-patents": {
      "level": "error",
      "rule": {
        "type": "file-not-contents",
        "options": {
          "globsAll": "**/*",
          "content": "PATENTS"
        }
      }
    }
  }
]

As such, I believe this issue is resolved.