Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • opentalk/controller
1 result
Show changes
Commits on Source (2)
# SPDX-FileCopyrightText: OpenTalk GmbH <mail@opentalk.eu>
#
# SPDX-License-Identifier: EUPL-1.2
---
# For setup instructions see the backend onboarding doc.
# https://git.opentalk.dev/a.weiche/the-knowledge/-/blob/main/backend-onboarding.md?ref_type=heads#pre-commit
exclude: target/|.*\.snap|.*.sql
repos:
# These are "general" hooks provided by the pre-commit devs
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
# A repo containing hooks for certain cargo subcommands
# Used for tools that don't bring official hooks
# Maybe we should create such a "dummy" project ourselves
- repo: https://github.com/AndrejOrsula/pre-commit-cargo
rev: 0.4.0
hooks:
- id: cargo-fmt
- id: cargo-clippy
args:
- --all-targets
- --all-features
- --tests
- --
- --deny
- warnings
- id: cargo-doc
args:
- --workspace
- --no-deps
- repo: https://github.com/EmbarkStudios/cargo-deny
rev: 0.18.2
hooks:
- id: cargo-deny
args:
- --all-features
- --workspace
- check
- --deny
- unmatched-skip
- --deny
- license-not-encountered
- --deny
- advisory-not-detected
# There currently is no official taplo hook, but this one got recommended in the corresponding issue
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
- id: taplo-lint
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.29.0
hooks:
- id: yamllint
exclude: ^api/docs/openapi\.yml$
args:
- .
- repo: https://github.com/fsfe/reuse-tool
rev: v5.0.2
hooks:
- id: reuse-lint-file
- repo: https://github.com/markdownlint/markdownlint
rev: v0.13.0
hooks:
- id: markdownlint
args:
- --style
- .markdown_style.rb
- --warnings
# No official hooks for commitlint available, this one seems actively maintained
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.22.0
hooks:
- id: commitlint
stages: [commit-msg]
- repo: https://github.com/daveshanley/vacuum
rev: v0.16.5
hooks:
- id: vacuum
files: ^api/.*\.(json|ya?ml)$
args:
- --ruleset
- ci/spectral/openapi.yml
......@@ -379,16 +379,16 @@ mod tests {
const MODEL2: &str = r#"
[request_definition]
r = sub, dom, obj, act
[policy_definition]
p = sub, dom, obj, act
[role_definition]
g = _, _, _
[policy_effect]
e = some(where (p.eft == allow))
[matchers]
m = g(r.sub, p.sub, r.dom) && r.dom == p.dom && r.obj == p.obj && r.act == p.act"#;
......

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.