Skip to content

Commit 3121e22

Browse files
[PETOSS-829] Update megalinter config
1 parent 1ae9e67 commit 3121e22

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.github/workflows/pr-validation.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ jobs:
1717

1818
- name: MegaLinter
1919
uses: oxsecurity/megalinter/flavors/documentation@v9
20-
env:
21-
ENABLE_LINTERS: YAML_YAMLLINT,ACTION_ACTIONLINT,API_SPECTRAL
22-
API_SPECTRAL_FILTER_REGEX_INCLUDE: xero.*\.yaml
23-
API_SPECTRAL_PRE_COMMANDS: npm i @stoplight/spectral-owasp-ruleset
24-
APPLY_FIXES: none
2520

2621
codegen-validation:
2722
runs-on: ubuntu-latest

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
node_modules
44

55
# JetBrains generated files
6-
.idea
6+
.idea
7+
8+
megalinter-reports

.mega-linter.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ENABLE_LINTERS: YAML_YAMLLINT,ACTION_ACTIONLINT,API_SPECTRAL
2+
3+
APPLY_FIXES: none
4+
5+
API_SPECTRAL_FILTER_REGEX_INCLUDE: "xero.*\\.yaml"
6+
API_SPECTRAL_PRE_COMMANDS:
7+
- command: npm i @stoplight/spectral-owasp-ruleset

.yamllint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
extends: default
2+
23
rules:
34
line-length:
45
level: warning

0 commit comments

Comments
 (0)