Skip to content

Commit 3a03311

Browse files
committed
lint
1 parent 3dd794c commit 3a03311

5 files changed

Lines changed: 14 additions & 16 deletions

File tree

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
node_modules/
22
.DS_Store
3-
.venv/
4-
5-
# Terraform
63
infra/tf/.terraform/
7-
infra/tf/tmp/
8-
**/*.zip

definitions/output/f1/pages_latest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ publish('pages_latest', {
77
clusterBy: ['client', 'is_root_page', 'rank', 'page']
88
},
99
tags: ['crawl_complete']
10-
}).preOps(ctx => `
10+
}).preOps(`
1111
SET @@RESERVATION='projects/httparchive/locations/US/reservations/enterprise';
1212
`).query(ctx => `
1313
SELECT

definitions/output/f1/requests_latest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ publish('requests_latest', {
77
clusterBy: ['client', 'is_root_page', 'rank', 'type']
88
},
99
tags: ['crawl_complete']
10-
}).preOps(ctx => `
10+
}).preOps(`
1111
SET @@RESERVATION='projects/httparchive/locations/US/reservations/enterprise';
1212
`).query(ctx => `
1313
SELECT

definitions/output/reports/reports_dynamic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ SELECT
7878
})
7979
})
8080
} else {
81-
iterations.forEach((params, _) => {
81+
iterations.forEach(params => {
8282
metrics.forEach(metric => {
8383
metric.SQL.forEach(sql => {
8484
operate(metric.id + '_' + sql.type + '_' + params.date, {

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"author": "@max-ostapenko",
44
"scripts": {
55
"format": "npx standard --fix; npx markdownlint --ignore-path .gitignore --config package.json --configPointer /markdownlint . --fix; terraform -chdir=infra/tf fmt -recursive",
6-
"lint": "npx standard; npx markdownlint --ignore-path .gitignore --config package.json --configPointer /markdownlint .; dataform compile"
6+
"lint": "npx standard; npx markdownlint --ignore-path .gitignore --config package.json --configPointer /markdownlint .; dataform compile",
7+
"superlint": "docker run --platform linux/amd64 -e DEFAULT_BRANCH=main -e VALIDATE_GIT_COMMITLINT=false -e VALIDATE_TERRAFORM_TERRASCAN=false -e VALIDATE_TERRAFORM_TFLINT=false -e FIX_JSON_PRETTIER=true -e IGNORE_GITIGNORED_FILES=true -e VALIDATE_ALL_CODEBASE=true -e RUN_LOCAL=true -v ./:/tmp/lint ghcr.io/super-linter/super-linter:slim-v7.4.0"
78
},
89
"dependencies": {
910
"@dataform/core": "3.0.25"
@@ -28,13 +29,15 @@
2829
"node": true
2930
},
3031
"globals": {
31-
"dataform": "readonly",
32-
"constants": "readonly",
33-
"declare": "readonly",
34-
"assert": "readonly",
35-
"publish": "readonly",
36-
"ctx": "readonly"
37-
}
32+
"dataform": "readonly",
33+
"declare": "readonly",
34+
"assert": "readonly",
35+
"publish": "readonly",
36+
"operate": "readonly",
37+
"ctx": "readonly",
38+
"constants": "readonly",
39+
"reports": "readonly"
40+
}
3841
},
3942
"markdownlint": {
4043
"default": true,

0 commit comments

Comments
 (0)