mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-17 21:12:20 +01:00
build: Add commands to run opengrep
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
dced649bc3
commit
2df968749d
2 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,8 @@
|
|||
"openapi": "generate-spec && (npm run typescript:generate || echo 'Please manually regenerate the typescript OpenAPI models')",
|
||||
"rector:check": "rector --dry-run",
|
||||
"rector:fix": "rector",
|
||||
"opengrep": "opengrep --opengrep-ignore-pattern=noopengrep --error --include '*.php' --exclude 'docs' .",
|
||||
"opengrep-full": "opengrep --opengrep-ignore-pattern=noopengrep --error --include '*.php' --exclude 'docs' --include '*.vue' --include '*.js' --include '*.ts' --exclude-rule 'javascript.vue.security.audit.xss.templates.avoid-v-html.avoid-v-html' .",
|
||||
"psalm": "psalm --no-cache --threads=$(nproc)",
|
||||
"psalm:dev": "@psalm",
|
||||
"psalm:update-baseline": "psalm --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml",
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
"dev": "node --max-old-space-size=4096 ./node_modules/webpack/bin/webpack.js --node-env development --progress",
|
||||
"lint": "eslint",
|
||||
"lint:fix": "eslint --fix",
|
||||
"opengrep": "opengrep --opengrep-ignore-pattern=noopengrep --error --exclude '*.php' --exclude 'docs' --include '*.vue' --include '*.js' --include '*.ts' --exclude-rule 'javascript.vue.security.audit.xss.templates.avoid-v-html.avoid-v-html' .",
|
||||
"serve": "node --max-old-space-size=4096 ./node_modules/webpack/bin/webpack.js serve --node-env development --progress --allowed-hosts all",
|
||||
"stylelint": "stylelint \"src/**/*.scss\" \"src/**/*.vue\"",
|
||||
"stylelint:fix": "stylelint \"src/**/*.scss\" \"src/**/*.vue\" --fix",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue