Skip to content

Commit 5328fe1

Browse files
authored
Merge pull request aws-solutions#61 from aws-solutions/development
Adding files and configuration needed for GitHub first conversion
2 parents 39c7081 + 36cbd1d commit 5328fe1

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

.viperlightignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
^dist/
2+
CONTRIBUTING.md:50
3+
CODE_OF_CONDUCT.md:4
4+
source/custom-resources/lib/media-live/channel.js:25
5+
source/custom-resource/lib/cfn/index.spec.js:30
6+
deployment/live-streaming-on-aws.yaml:308

.viperlightrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"modules": ["contents", "files", "ncu", "nsp"],
3+
"failOn": "medium"
4+
}

sonar-project.properties

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Note: Currently testing and supported with code coverage sonarqube
2+
# collection for python lambda (python pytest, python unittest) and javascript jest
3+
# and CDK TypeScript
4+
5+
# Uncomment to enable debugging by default
6+
#sonar.verbose=true
7+
#sonar.log.level=DEBUG
8+
9+
# Disable if needed
10+
#sonar.scm.disabled=true
11+
12+
#
13+
# Refer to https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/
14+
# for details on sources and exclusions. Note also .gitignore
15+
#
16+
17+
sonar.sources= \
18+
source/constructs, \
19+
source/custom-resource
20+
21+
sonar.exclusions= \
22+
**/cdk.out/**, \
23+
**/node_modules/**, \
24+
**/**.spec.js, \
25+
**/**.test.ts, \
26+
**/jest.config.js, \
27+
source/custom-resource/index.js
28+
29+
30+
# sonar.tests=source/test
31+
32+
sonar.sourceEncoding=UTF-8
33+
34+
## Python Specific Properties*
35+
# coverage
36+
# https://docs.sonarqube.org/pages/viewpage.action?pageId=4784149
37+
# Comma-separated list of ant pattern describing paths to coverage reports, relative to projects
38+
# root. Leave unset to use the default ("coverage-reports/*coverage-*.xml").
39+
# sonar.python.coverage.reportPaths= \
40+
# source/test/coverage-reports/*.coverage.xml, \
41+
# source/test/coverage-reports/layers/*.coverage.xml
42+
43+
44+
# Sensor SonarJS Coverage [javascript] was not allowing globbing
45+
# for sonar.javascript.lcov.reportPaths such as this
46+
# source/test/coverage-reports/jest/*/lcov.info
47+
# so we have to provide an explicit list of reportPaths
48+
sonar.javascript.lcov.reportPaths= \
49+
source/test/coverage-reports/jest/constructs/lcov.info, \
50+
source/test/coverage-reports/jest/custom-resource/lcov.info
51+
52+
# Project Specific ignores with rational
53+
# sonar.issue.ignore.multicriteria=ts1
54+
55+
# TODO: Temporary ignore for typescript:S1848. Review and update code as needed. Only ignore this for typescript file which are in CDK since there are many common cases of new <SomeClass>(this, ...) without using the created object.
56+
#typescript:S1848 Objects should not be created to be dropped immediately without being used
57+
# sonar.issue.ignore.multicriteria.ts1.ruleKey=typescript:S1848
58+
# sonar.issue.ignore.multicriteria.ts1.resourceKey=**/*.ts

0 commit comments

Comments
 (0)