generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 129
chore: clean up sonar config, add ignore for typescript:S1848 #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ac06368
Adding all endpoint types to SNS.2 Remediation (#145) (#147)
tmekari d6ebc8b
Merge branch 'develop' into release/v2.0.0
hearde 446b772
Merge branch 'develop' into release/v2.0.0
hearde 8f5310f
Merge pull request #149 from aws-solutions/release/v2.0.0
tbelmega 887a2e0
chore: bump version numbers
hearde 22c1d46
chore: upgrade python testing deps to match Lambda runtime
hearde a28c94e
chore: clean up sonar config, add ignore for typescript:S1848
hearde 2fbb7da
Remove wildcard for typescript tests
hearde 9f7be48
Remove wildcards for playbook test directories
hearde d746442
Add exclusion for tests
hearde c293461
Fix exclusion for tests
hearde a8d40cb
Specify scm provider, add exclusions, specify python versions
hearde 6b15289
Disable scm integration
hearde 9ca4109
Remove ignore for templates
hearde 05098b8
Include more artifacts in buildspec, re-enable scm integration
hearde e7c7fbc
Fix artifact exclude paths
hearde 6df0398
Disable gitignore for sonarqube
hearde 2a2f100
Add sources back to sonar config
hearde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,4 +10,4 @@ jmespath==0.10.0 | |
| python-dateutil==2.8.2 | ||
| s3transfer==0.5.2 | ||
| six==1.16.0 | ||
| urllib3==1.26.9 | ||
| urllib3==1.26.11 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,66 +1,36 @@ | ||
| # Note: Currently testing and supported with code coverage sonarqube | ||
| # collection for python lambda (python pytest, python unittest) and javascript jest | ||
| # and CDK TypeScript | ||
| # scan templates in cdk.out even though they are in .gitignore | ||
| sonar.scm.exclusions.disabled = true | ||
|
|
||
| # Uncomment to enable debugging by default | ||
| # sonar.verbose=true | ||
| # sonar.log.level=DEBUG | ||
| sonar.sources = source/ | ||
|
|
||
| # Disable if needed | ||
| sonar.scm.disabled=true | ||
| sonar.exclusions = \ | ||
| **/test/**/*, \ | ||
| source/jest.config.ts, \ | ||
| source/coverage/**/* | ||
|
|
||
| # | ||
| # Refer to https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/ | ||
| # for details on sources and exclusions. Note also .gitignore | ||
| # | ||
| sonar.sources= \ | ||
| source | ||
| sonar.tests = \ | ||
| source/LambdaLayers/test/, \ | ||
| source/Orchestrator/test/, \ | ||
| source/playbooks/AFSBP/test/, \ | ||
| source/playbooks/AFSBP/ssmdocs/scripts/test/, \ | ||
| source/playbooks/CIS120/test/, \ | ||
| source/playbooks/CIS140/test/, \ | ||
| source/playbooks/common/test/, \ | ||
| source/playbooks/NEWPLAYBOOK/test/, \ | ||
| source/playbooks/NEWPLAYBOOK/ssmdocs/scripts/test/, \ | ||
| source/playbooks/PCI321/test/, \ | ||
| source/playbooks/PCI321/ssmdocs/scripts/test/, \ | ||
| source/playbooks/SC/test/, \ | ||
| source/playbooks/SC/ssmdocs/scripts/test/, \ | ||
| source/remediation_runbooks/scripts/test/, \ | ||
| source/solution_deploy/source/test/, \ | ||
| source/test/ | ||
|
|
||
| # LambdaLayers modules are excluded from lambda folders, where they must be copied for testing | ||
| # These files are tested in LambdaLayers | ||
| sonar.exclusions= \ | ||
| **/test/**, \ | ||
| **/tests/**, \ | ||
| **/node_modules/**, \ | ||
| **/python_tests/**, \ | ||
| **/jest.config.js, \ | ||
| source/**.js, \ | ||
| deployment/build/**, \ | ||
| **/requests/**, \ | ||
| **/charset_normalizer/**, \ | ||
| **/chardet/**, \ | ||
| **/urllib3/**, \ | ||
| **/idna/**, \ | ||
| **/certifi/**, \ | ||
| **/coverage/**, \ | ||
| **/bin/*.ts, \ | ||
| deployment/temp/**, \ | ||
| simtest/** | ||
|
|
||
| sonar.tests= \ | ||
| source/Orchestrator/test, \ | ||
| source/test, \ | ||
| source/LambdaLayers/test, \ | ||
| source/playbooks/AFSBP/test, \ | ||
| source/playbooks/AFSBP/ssmdocs/scripts/test, \ | ||
| source/playbooks/CIS120/test, \ | ||
| source/playbooks/PCI321/test, \ | ||
| source/playbooks/PCI321/ssmdocs/scripts/test, \ | ||
| source/solution_deploy/source/test, \ | ||
| source/remediation_runbooks/scripts/test | ||
| sonar.python.version = 3.8, 3.9, 3.10, 3.11 | ||
| sonar.python.coverage.reportPaths = deployment/test/coverage-reports/*.coverage.xml | ||
|
|
||
| sonar.sourceEncoding=UTF-8 | ||
| sonar.javascript.lcov.reportPaths = source/coverage/lcov.info | ||
|
|
||
| ## Python Specific Properties* | ||
| # coverage | ||
| # https://docs.sonarqube.org/pages/viewpage.action?pageId=4784149 | ||
| # Comma-separated list of ant pattern describing paths to coverage reports, relative to projects | ||
| # root. Leave unset to use the default ("coverage-reports/*coverage-*.xml"). | ||
| sonar.python.coverage.reportPaths=deployment/test/coverage-reports/*.coverage.xml | ||
|
|
||
| # Sensor SonarJS Coverage [javascript] was not allowing globbing | ||
| # for sonar.javascript.lcov.reportPaths such as this | ||
| # source/test/coverage-reports/jest/*/lcov.info | ||
| # so we have to provide an explicit list of reportPaths | ||
| sonar.javascript.lcov.reportPaths= \ | ||
| source/coverage/lcov.info | ||
| sonar.issue.ignore.multicriteria = ts1 | ||
| sonar.issue.ignore.multicriteria.ts1.ruleKey = typescript:S1848 | ||
| sonar.issue.ignore.multicriteria.ts1.resourceKey = **/*.ts | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.