-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add lint and dependabot
- Loading branch information
Showing
10 changed files
with
226 additions
and
97 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
|
||
- package-ecosystem: nuget | ||
directory: / | ||
schedule: | ||
interval: weekly |
This file contains 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
quiet: true | ||
skip-check: | ||
- CKV_AZURE_35 # Ensure default network access rule for storage accounts is set to deny | ||
- CKV_AZURE_59 # Ensure that storage accounts disallow public access | ||
- CKV_AZURE_109 # Ensure that key vault allows firewall rules settings |
This file contains 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
rules: | ||
braces: | ||
forbid: true | ||
level: error | ||
brackets: | ||
forbid: true | ||
level: error | ||
colons: | ||
level: error | ||
commas: | ||
level: error | ||
comments: | ||
level: error | ||
comments-indentation: | ||
level: error | ||
document-end: | ||
present: false | ||
level: error | ||
document-start: | ||
present: true | ||
level: error | ||
empty-lines: | ||
max: 1 | ||
level: error | ||
empty-values: disable | ||
hyphens: | ||
level: error | ||
indentation: | ||
spaces: 2 | ||
level: error | ||
key-duplicates: | ||
level: error | ||
key-ordering: disable | ||
line-length: disable | ||
new-line-at-end-of-file: | ||
level: error | ||
new-lines: | ||
type: unix | ||
level: error | ||
octal-values: disable | ||
quoted-strings: | ||
quote-type: single | ||
required: only-when-needed | ||
trailing-spaces: | ||
level: error | ||
truthy: | ||
level: error |
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
name: Lint | ||
|
||
"on": | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: {} | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
build: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
# To report GitHub Actions status checks | ||
statuses: write | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
# super-linter needs the full git history to get the | ||
# list of files that changed across commits | ||
fetch-depth: 0 | ||
|
||
- name: Super-Linter | ||
uses: super-linter/super-linter@v7 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VALIDATE_CSS: false | ||
VALIDATE_CSS_PRETTIER: false | ||
VALIDATE_JSON_PRETTIER: false | ||
|
||
- name: Lint Bicep Files | ||
run: | | ||
Get-ChildItem -Filter "*.bicep*" -Recurse | ForEach-Object { | ||
Write-Output "Linting $PSItem" | ||
az bicep lint --file $PSItem | ||
} | ||
shell: pwsh |
This file contains 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,11 +1,11 @@ | ||
{ | ||
"recommendations": [ | ||
"davidanson.vscode-markdownlint", | ||
"ms-vscode.azure-account", | ||
"ms-azuretools.vscode-bicep", | ||
"ms-dotnettools.vscodeintellicode-csharp", | ||
"ms-azuretools.vscode-azureappservice", | ||
"redhat.vscode-yaml", | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
"recommendations": [ | ||
"davidanson.vscode-markdownlint", | ||
"ms-vscode.azure-account", | ||
"ms-azuretools.vscode-bicep", | ||
"ms-dotnettools.vscodeintellicode-csharp", | ||
"ms-azuretools.vscode-azureappservice", | ||
"redhat.vscode-yaml", | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} |
This file contains 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,17 +1,20 @@ | ||
{ | ||
"cSpell.enabled": true, | ||
"cSpell.language": "en", | ||
"cSpell.enableFiletypes": [ | ||
"*" | ||
], | ||
"cSpell.words": [ | ||
"azcliversion" | ||
], | ||
"editor.trimAutoWhitespace": true, | ||
"files.autoSave": "afterDelay", | ||
"files.trimFinalNewlines": true, | ||
"files.trimTrailingWhitespace": true, | ||
"[github-actions-workflow]": { | ||
"editor.tabSize": 2 | ||
} | ||
"cSpell.enabled": true, | ||
"cSpell.language": "en", | ||
"cSpell.enableFiletypes": [ | ||
"*" | ||
], | ||
"cSpell.words": [ | ||
"ASPNETCORE", | ||
"azcliversion", | ||
"Entra", | ||
"pwsh" | ||
], | ||
"editor.trimAutoWhitespace": true, | ||
"files.autoSave": "afterDelay", | ||
"files.trimFinalNewlines": true, | ||
"files.trimTrailingWhitespace": true, | ||
"[github-actions-workflow]": { | ||
"editor.tabSize": 2 | ||
} | ||
} |
This file contains 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 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,23 +1,23 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/launchsettings.json", | ||
"profiles": { | ||
"http": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": true, | ||
"applicationUrl": "http://localhost:5253", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
}, | ||
"https": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": true, | ||
"applicationUrl": "https://localhost:7083;http://localhost:5253", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
"profiles": { | ||
"http": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": true, | ||
"applicationUrl": "http://localhost:5253", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
}, | ||
"https": { | ||
"commandName": "Project", | ||
"dotnetRunMessages": true, | ||
"launchBrowser": true, | ||
"applicationUrl": "https://localhost:7083;http://localhost:5253", | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
} | ||
} | ||
} |