Repository navigation
Expand file tree
/
Copy pathsonar-project.properties
More file actions
38 lines (32 loc) · 2.19 KB
/
Copy pathsonar-project.properties
File metadata and controls
38 lines (32 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
sonar.projectKey=anchildress1_commit-chronicles
sonar.organization=anchildress1
sonar.sources=src
sonar.tests=tests
sonar.exclusions=node_modules/**,dist/**,.vite/**,coverage/**
sonar.javascript.lcov.reportPaths=coverage/lcov.info
# Snowflake SQL is not Oracle PL/SQL, but plsql is the only analyzer Sonar has for
# .sql, so it applies Oracle grammar to files that never claimed to follow it. The
# rules below are dialect errors, not defects. Scoped to snowflake/** so a genuine
# PL/SQL file elsewhere would still be checked.
sonar.issue.ignore.multicriteria=e1,e2,e3,e4
# $$...$$ dollar-quoted bodies (a Python UDF, a multi-line PARSE_JSON schema) read as
# one string literal, so every newline inside them trips as a non-printable character.
sonar.issue.ignore.multicriteria.e1.ruleKey=plsql:LiteralsNonPrintableCharactersCheck
sonar.issue.ignore.multicriteria.e1.resourceKey=snowflake/**/*.sql
# Snowflake STRING is unsized by design. Oracle's mandatory VARCHAR2(n) has no analogue.
sonar.issue.ignore.multicriteria.e2.ruleKey=plsql:SizeConstraintMissingCheck
sonar.issue.ignore.multicriteria.e2.resourceKey=snowflake/**/*.sql
# The "duplicated literals" are OBJECT_CONSTRUCT key names repeated across storyline
# views. SQL has no constants to extract them into.
sonar.issue.ignore.multicriteria.e3.ruleKey=plsql:S1192
sonar.issue.ignore.multicriteria.e3.resourceKey=snowflake/**/*.sql
# The only CROSS JOIN target is DETECTOR_CONFIG, a FROM-less SELECT of tuning constants.
# One row by construction, so the join broadcasts constants and cannot multiply rows.
# Rewriting it as JOIN ... ON TRUE would be the same query wearing a disguise.
sonar.issue.ignore.multicriteria.e4.ruleKey=plsql:CrossJoinUsageCheck
sonar.issue.ignore.multicriteria.e4.resourceKey=snowflake/**/*.sql
# Same exclusions the test run uses, so the gate and the coverage report agree.
# snowflake/** no test runner emits coverage for warehouse DDL
# index/rerender/main boot wiring; no branches of ours to assert
# snowflake.ts, queue.ts SDK adapters; the logic under test would be the vendor's
sonar.coverage.exclusions=snowflake/**/*.sql,src/server/index.ts,src/server/rerender.ts,src/client/main.tsx,src/server/snowflake.ts,src/server/queue.ts