Skip to content

Linter rules documentation and control #391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mpayette-3rdeyecam opened this issue May 6, 2025 · 1 comment
Open

Linter rules documentation and control #391

mpayette-3rdeyecam opened this issue May 6, 2025 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@mpayette-3rdeyecam
Copy link

Was trying to find how to disable specific linter rules for this but it looks like that's not even possible? Given the issue #367 it's something missing I would assume, but I'm making this issue since it would also require proper and clear documentation. Right now, all I could find was "use the recommended: true set", but that's clearly too limiting.

@mpayette-3rdeyecam mpayette-3rdeyecam added the documentation Improvements or additions to documentation label May 6, 2025
@mpayette-3rdeyecam
Copy link
Author

Looks like it was this!

{
  "$schema": "https://pgtools.dev/schemas/0.0.0/schema.json",
  "vcs": {
    "enabled": false,
    "clientKind": "git",
    "useIgnoreFile": false
  },
  "files": {
    "ignore": []
  },
  "linter": {
    "enabled": true,
    "rules": {
      "recommended": true,
      "safety": {
        "banDropNotNull": "off"
      }
    }
  }
}

The part I couldnt find was this:

"safety": {
  "banDropNotNull": "off"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant