@storm-software/linting-tools 1.122.1 → 1.123.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +1 -1
  2. package/alex/.alexignore +3 -0
  3. package/alex/config.json +43 -0
  4. package/{dist/bin → bin}/lint.cjs +0 -0
  5. package/{dist/bin → bin}/lint.js +0 -0
  6. package/biome/config.json +100 -0
  7. package/cloudformation-lint/config.yml +23 -0
  8. package/cspell/config.json +4 -0
  9. package/dependency-cruiser/config.js +438 -0
  10. package/editorconfig-checker/config.json +18 -0
  11. package/knip/config.json +9 -0
  12. package/ls-lint/config.yml +52 -0
  13. package/mega-linter/config.yml +102 -0
  14. package/package.json +10 -28
  15. package/syncpack/config.js +61 -0
  16. package/taplo/config.toml +50 -0
  17. package/terrascan/config.toml +19 -0
  18. package/tflint/config.hcl +27 -0
  19. package/yamllint/config.yml +39 -0
  20. package/zizmor/config.yml +12 -0
  21. package/bin/lint.ts +0 -42
  22. /package/{dist/bin → bin}/chunk-7QL7OWCM.cjs +0 -0
  23. /package/{dist/bin → bin}/chunk-7YW6SYK4.js +0 -0
  24. /package/{dist/bin → bin}/chunk-F5S2YWGK.js +0 -0
  25. /package/{dist/bin → bin}/chunk-F6PA6NI3.js +0 -0
  26. /package/{dist/bin → bin}/chunk-FGSXL4JU.cjs +0 -0
  27. /package/{dist/bin → bin}/chunk-IPCYPK2J.js +0 -0
  28. /package/{dist/bin → bin}/chunk-J4LYARTH.js +0 -0
  29. /package/{dist/bin → bin}/chunk-KN423ORF.js +0 -0
  30. /package/{dist/bin → bin}/chunk-M66BZBUS.cjs +0 -0
  31. /package/{dist/bin → bin}/chunk-NB4KOSLF.js +0 -0
  32. /package/{dist/bin → bin}/chunk-NUT6CHJV.cjs +0 -0
  33. /package/{dist/bin → bin}/chunk-OAGWRM5M.cjs +0 -0
  34. /package/{dist/bin → bin}/chunk-SJ5N62GB.cjs +0 -0
  35. /package/{dist/bin → bin}/chunk-TGYUEFVA.cjs +0 -0
  36. /package/{dist/bin → bin}/chunk-TX32NVUB.cjs +0 -0
  37. /package/{dist/bin → bin}/chunk-UIDSCBJV.js +0 -0
  38. /package/{dist/bin → bin}/chunk-VYEM36K4.cjs +0 -0
  39. /package/{dist/bin → bin}/chunk-W74CCW6O.js +0 -0
  40. /package/{dist/bin → bin}/chunk-WLZCLJOC.js +0 -0
  41. /package/{dist/bin → bin}/chunk-ZQIF6N27.cjs +0 -0
  42. /package/{dist/bin → bin}/dist-DXXGF7QP.cjs +0 -0
  43. /package/{dist/bin → bin}/dist-FNKS7ZTL.js +0 -0
  44. /package/{dist/bin → bin}/dist-JSWA7BHU.js +0 -0
  45. /package/{dist/bin → bin}/dist-WFIGOFLU.cjs +0 -0
  46. /package/{dist/bin → bin}/esm-QRQ3Y6XE.cjs +0 -0
  47. /package/{dist/bin → bin}/esm-QZ3YYZJV.js +0 -0
  48. /package/{dist/bin → bin}/json5-JSVTTMQT.js +0 -0
  49. /package/{dist/bin → bin}/json5-OQYQPVZN.cjs +0 -0
  50. /package/{dist/bin → bin}/jsonc-NS63ZYKZ.js +0 -0
  51. /package/{dist/bin → bin}/jsonc-XKAK7IRL.cjs +0 -0
  52. /package/{dist/bin → bin}/multipart-parser-26TRXV2P.cjs +0 -0
  53. /package/{dist/bin → bin}/multipart-parser-ASBSHMS5.js +0 -0
  54. /package/{dist/bin → bin}/package-json-EKGDZK3M.js +0 -0
  55. /package/{dist/bin → bin}/package-json-RT6O5R6O.cjs +0 -0
  56. /package/{dist/bin → bin}/toml-2QUBG5KS.js +0 -0
  57. /package/{dist/bin → bin}/toml-3CF4ZBWL.cjs +0 -0
  58. /package/{dist/bin → bin}/utils-CGHUDHMD.js +0 -0
  59. /package/{dist/bin → bin}/utils-XUEWZVN7.cjs +0 -0
  60. /package/{dist/bin → bin}/yaml-L4OASIST.js +0 -0
  61. /package/{dist/bin → bin}/yaml-UKJ745DD.cjs +0 -0
  62. /package/dist/{src/chunk-7QL7OWCM.cjs → chunk-7QL7OWCM.cjs} +0 -0
  63. /package/dist/{src/chunk-7YW6SYK4.js → chunk-7YW6SYK4.js} +0 -0
  64. /package/dist/{src/chunk-F5S2YWGK.js → chunk-F5S2YWGK.js} +0 -0
  65. /package/dist/{src/chunk-F6PA6NI3.js → chunk-F6PA6NI3.js} +0 -0
  66. /package/dist/{src/chunk-FGSXL4JU.cjs → chunk-FGSXL4JU.cjs} +0 -0
  67. /package/dist/{src/chunk-IPCYPK2J.js → chunk-IPCYPK2J.js} +0 -0
  68. /package/dist/{src/chunk-J4LYARTH.js → chunk-J4LYARTH.js} +0 -0
  69. /package/dist/{src/chunk-KN423ORF.js → chunk-KN423ORF.js} +0 -0
  70. /package/dist/{src/chunk-M66BZBUS.cjs → chunk-M66BZBUS.cjs} +0 -0
  71. /package/dist/{src/chunk-NB4KOSLF.js → chunk-NB4KOSLF.js} +0 -0
  72. /package/dist/{src/chunk-NUT6CHJV.cjs → chunk-NUT6CHJV.cjs} +0 -0
  73. /package/dist/{src/chunk-OAGWRM5M.cjs → chunk-OAGWRM5M.cjs} +0 -0
  74. /package/dist/{src/chunk-SJ5N62GB.cjs → chunk-SJ5N62GB.cjs} +0 -0
  75. /package/dist/{src/chunk-TGYUEFVA.cjs → chunk-TGYUEFVA.cjs} +0 -0
  76. /package/dist/{src/chunk-TX32NVUB.cjs → chunk-TX32NVUB.cjs} +0 -0
  77. /package/dist/{src/chunk-UIDSCBJV.js → chunk-UIDSCBJV.js} +0 -0
  78. /package/dist/{src/chunk-VYEM36K4.cjs → chunk-VYEM36K4.cjs} +0 -0
  79. /package/dist/{src/chunk-W74CCW6O.js → chunk-W74CCW6O.js} +0 -0
  80. /package/dist/{src/chunk-WLZCLJOC.js → chunk-WLZCLJOC.js} +0 -0
  81. /package/dist/{src/chunk-ZQIF6N27.cjs → chunk-ZQIF6N27.cjs} +0 -0
  82. /package/dist/{src/dist-DXXGF7QP.cjs → dist-DXXGF7QP.cjs} +0 -0
  83. /package/dist/{src/dist-FNKS7ZTL.js → dist-FNKS7ZTL.js} +0 -0
  84. /package/dist/{src/dist-JSWA7BHU.js → dist-JSWA7BHU.js} +0 -0
  85. /package/dist/{src/dist-WFIGOFLU.cjs → dist-WFIGOFLU.cjs} +0 -0
  86. /package/dist/{src/esm-QRQ3Y6XE.cjs → esm-QRQ3Y6XE.cjs} +0 -0
  87. /package/dist/{src/esm-QZ3YYZJV.js → esm-QZ3YYZJV.js} +0 -0
  88. /package/dist/{src/index.cjs → index.cjs} +0 -0
  89. /package/dist/{src/index.d.cts → index.d.cts} +0 -0
  90. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  91. /package/dist/{src/index.js → index.js} +0 -0
  92. /package/dist/{src/json5-JSVTTMQT.js → json5-JSVTTMQT.js} +0 -0
  93. /package/dist/{src/json5-OQYQPVZN.cjs → json5-OQYQPVZN.cjs} +0 -0
  94. /package/dist/{src/jsonc-NS63ZYKZ.js → jsonc-NS63ZYKZ.js} +0 -0
  95. /package/dist/{src/jsonc-XKAK7IRL.cjs → jsonc-XKAK7IRL.cjs} +0 -0
  96. /package/dist/{src/multipart-parser-26TRXV2P.cjs → multipart-parser-26TRXV2P.cjs} +0 -0
  97. /package/dist/{src/multipart-parser-ASBSHMS5.js → multipart-parser-ASBSHMS5.js} +0 -0
  98. /package/dist/{src/package-json-EKGDZK3M.js → package-json-EKGDZK3M.js} +0 -0
  99. /package/dist/{src/package-json-RT6O5R6O.cjs → package-json-RT6O5R6O.cjs} +0 -0
  100. /package/dist/{src/toml-2QUBG5KS.js → toml-2QUBG5KS.js} +0 -0
  101. /package/dist/{src/toml-3CF4ZBWL.cjs → toml-3CF4ZBWL.cjs} +0 -0
  102. /package/dist/{src/utils-CGHUDHMD.js → utils-CGHUDHMD.js} +0 -0
  103. /package/dist/{src/utils-XUEWZVN7.cjs → utils-XUEWZVN7.cjs} +0 -0
  104. /package/dist/{src/yaml-L4OASIST.js → yaml-L4OASIST.js} +0 -0
  105. /package/dist/{src/yaml-UKJ745DD.cjs → yaml-UKJ745DD.cjs} +0 -0
@@ -0,0 +1,52 @@
1
+ ls:
2
+ packages/*/src/**:
3
+ .ts: kebab-case
4
+ .js: kebab-case
5
+ .d.ts: kebab-case
6
+ libs/*/src/**:
7
+ .ts: kebab-case
8
+ .js: kebab-case
9
+ .d.ts: kebab-case
10
+ crates/**:
11
+ .rs: snake_case
12
+ apps/*/src/**:
13
+ .ts: kebab-case
14
+ .js: kebab-case
15
+ .d.ts: kebab-case
16
+ .rs: snake_case
17
+ tools/*/src/**:
18
+ .ts: kebab-case
19
+ .js: kebab-case
20
+ .d.ts: kebab-case
21
+
22
+ ignore:
23
+ - "**/node_modules"
24
+ - "**/tmp"
25
+ - "**/dist"
26
+ - "**/assets"
27
+ - "**/coverage"
28
+ - "**/__generated__"
29
+ - "**/__test__"
30
+ - "**/__mocks__"
31
+ - "**/.terragrunt-cache"
32
+ - "**/.cache"
33
+ - "**/.nx"
34
+ - "**/*.spec.*"
35
+ - "**/*.test.*"
36
+ - "**/*.schema.*"
37
+ - "**/*.untyped.*"
38
+ - "**/*.config.*"
39
+ - "**/tsup.*.*"
40
+ - "**/jest.*.*"
41
+ - "**/babel.*.*"
42
+ - "**/webpack.*.*"
43
+ - "**/rollup.*.*"
44
+ - "**/tailwind.*.*"
45
+ - "**/postcss.*.*"
46
+ - "**/vite.*.*"
47
+ - "**/snowpack.*.*"
48
+ - "**/next.*.*"
49
+ - "**/.dependency-cruiser.*"
50
+ - "**/_dockerfile*"
51
+ - "**/Dockerfile*"
52
+ - "**/docker-compose*"
@@ -0,0 +1,102 @@
1
+ # Configuration file for MegaLinter
2
+ # See all available variables at https://megalinter.io/configuration/ and in linters documentation
3
+
4
+ # all, none, or list of linter keys
5
+ APPLY_FIXES: all
6
+
7
+ # If you use ENABLE variable, all other languages/formats/tooling-formats will be disabled by default
8
+ # ENABLE:
9
+
10
+ DEFAULT_BRANCH: main
11
+
12
+ # If you use ENABLE_LINTERS variable, all other linters will be disabled by default
13
+ ENABLE_LINTERS:
14
+ # - BASH_EXEC
15
+ # - BASH_SHFMT
16
+ # - CLOUDFORMATION_CFN_LINT
17
+ # - DOCKERFILE_HADOLINT
18
+ - EDITORCONFIG_EDITORCONFIG_CHECKER
19
+ # - JSON_JSONLINT
20
+ - JSON_PRETTIER
21
+ # - JSON_V8R
22
+ # - JAVASCRIPT_STANDARD
23
+ - MARKDOWN_MARKDOWN_LINK_CHECK
24
+ - MARKDOWN_MARKDOWNLINT
25
+ - MARKDOWN_MARKDOWN_TABLE_FORMATTER
26
+ - SPELL_CSPELL
27
+ - TERRAFORM_TFLINT
28
+ - TERRAFORM_TERRASCAN
29
+ - YAML_YAMLLINT
30
+
31
+ FILTER_REGEX_EXCLUDE: '(\.automation/test|\.automation/generated|\.venv|\.github/workflows|docs/javascripts|docs/overrides|docs/json-schemas|flavors|clj-kondo|TEMPLATES|generators/*/files)'
32
+ YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: '(templates/\.mega-linter\.yml|generators/*/files)'
33
+ YAML_PRETTIER_FILTER_REGEX_EXCLUDE: '(templates/\.mega-linter\.yml|mkdocs\.yml)'
34
+ YAML_V8R_FILTER_REGEX_EXCLUDE: '(descriptors|templates/\.mega-linter\.yml|\.codecov\.yml)'
35
+ BASH_FILTER_REGEX_EXCLUDE: "(lib)"
36
+
37
+ # Install plugin for list handling.
38
+ JSON_PRETTIER_FILTER_REGEX_EXCLUDE: '(\.vscode/)'
39
+ JSON_PRETTIER_CONFIG_FILE: "./node_modules/@storm-software/prettier/config/config.json"
40
+ JSON_PRETTIER_PRE_COMMANDS:
41
+ - command: "pnpm add @storm-software/prettier -w -D"
42
+ cwd: "workspace"
43
+
44
+ CLOUDFORMATION_CFN_LINT_CONFIG_FILE: "./node_modules/@storm-software/linting-tools/src/cloudformation-lint/.cfnlintrc"
45
+ CLOUDFORMATION_CFN_LINT_FILE_EXTENSIONS: [".yml", ".yaml"]
46
+
47
+ TERRAFORM_TERRASCAN_CONFIG_FILE: "./node_modules/@storm-software/linting-tools/src/terrascan/config.yml"
48
+ TERRAFORM_TERRASCAN_UNSECURED_ENV_VARIABLES:
49
+ - GITHUB_TOKEN
50
+ - STORM_BOT_GITHUB_TOKEN
51
+ TERRAFORM_TERRASCAN_PRE_COMMANDS:
52
+ - command: "pnpm add @storm-software/linting-tools -w -D"
53
+ cwd: "workspace"
54
+
55
+ TERRAFORM_TFLINT_CONFIG_FILE: "./node_modules/@storm-software/linting-tools/src/tflint/config.hcl"
56
+ TERRAFORM_TFLINT_UNSECURED_ENV_VARIABLES:
57
+ - GITHUB_TOKEN
58
+ - STORM_BOT_GITHUB_TOKEN
59
+ TERRAFORM_TFLINT_PRE_COMMANDS:
60
+ - command: "pnpm add @storm-software/linting-tools -w -D"
61
+ cwd: "workspace"
62
+
63
+ EDITORCONFIG_EDITORCONFIG_CHECKER_CONFIG_FILE: "./node_modules/@storm-software/linting-tools/editorconfig-checker/config.json"
64
+ EDITORCONFIG_EDITORCONFIG_CHECKER_PRE_COMMANDS:
65
+ - command: "pnpm add @storm-software/linting-tools -w -D"
66
+ cwd: "workspace"
67
+
68
+ MARKDOWN_FILTER_REGEX_EXCLUDE: '(license\.md|docs/licenses)'
69
+
70
+ MARKDOWN_MARKDOWN_LINK_CHECK_ARGUMENTS: "-q"
71
+ MARKDOWN_MARKDOWN_LINK_CHECK_CONFIG_FILE: "./node_modules/@storm-software/markdownlint/config/markdown-link-check.json"
72
+ MARKDOWN_MARKDOWN_LINK_CHECK_DISABLE_ERRORS: true
73
+ MARKDOWN_MARKDOWN_LINK_CHECK_PRE_COMMANDS:
74
+ - command: "pnpm add @storm-software/markdownlint -w -D"
75
+ cwd: "workspace"
76
+
77
+ MARKDOWN_MARKDOWNLINT_DISABLE_ERRORS: false
78
+ MARKDOWN_MARKDOWNLINT_CONFIG_FILE: "./node_modules/@storm-software/markdownlint/config/.markdownlint-cli2.jsonc"
79
+ MARKDOWN_MARKDOWNLINT_PRE_COMMANDS:
80
+ - command: "pnpm add @storm-software/markdownlint -w -D"
81
+ cwd: "workspace"
82
+
83
+ SPELL_CSPELL_ARGUMENTS: "--gitignore --no-progress --show-suggestions"
84
+ SPELL_CSPELL_FILE_EXTENSIONS: ["*"]
85
+ SPELL_CSPELL_CONFIG_FILE: "./node_modules/@storm-software/cspell/cspell-recommended.json"
86
+ SPELL_CSPELL_PRE_COMMANDS:
87
+ - command: "pnpm add @storm-software/cspell -w -D"
88
+ cwd: "workspace"
89
+
90
+ YAML_YAMLLINT_CONFIG_FILE: "./node_modules/@storm-software/linting-tools/yamllint/config.yml"
91
+ YAML_YAMLLINT_PRE_COMMANDS:
92
+ - command: "pnpm add @storm-software/linting-tools -w -D"
93
+ cwd: "workspace"
94
+
95
+ SARIF_REPORTER: true
96
+ SHOW_ELAPSED_TIME: true
97
+ FILEIO_REPORTER: false
98
+ EMAIL_REPORTER: false
99
+ JSON_REPORTER: true
100
+
101
+ GITHUB_STATUS_REPORTER: true
102
+ GITHUB_COMMENT_REPORTER: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.122.1",
3
+ "version": "1.123.0",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
6
6
  "repository": {
@@ -40,10 +40,8 @@
40
40
  },
41
41
  "license": "Apache-2.0",
42
42
  "private": false,
43
- "engines": {
44
- "node": ">=22.4.0",
45
- "pnpm": ">=10.3.0"
46
- },
43
+ "packageManager": "pnpm@10.3.0",
44
+ "engines": { "node": ">=22.4.0", "pnpm": ">=10.3.0" },
47
45
  "bin": {
48
46
  "storm-lint": "./bin/lint.cjs",
49
47
  "storm-lint-esm": "./bin/lint.js",
@@ -54,32 +52,20 @@
54
52
  "exports": {
55
53
  "./package.json": "./package.json",
56
54
  ".": {
57
- "import": {
58
- "types": "./dist/index.d.ts",
59
- "default": "./dist/index.js"
60
- },
55
+ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
61
56
  "require": {
62
57
  "types": "./dist/index.d.cts",
63
58
  "default": "./dist/index.cjs"
64
59
  },
65
- "default": {
66
- "types": "./dist/index.d.ts",
67
- "default": "./dist/index.js"
68
- }
60
+ "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
69
61
  },
70
62
  "./index": {
71
- "import": {
72
- "types": "./dist/index.d.ts",
73
- "default": "./dist/index.js"
74
- },
63
+ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
75
64
  "require": {
76
65
  "types": "./dist/index.d.cts",
77
66
  "default": "./dist/index.cjs"
78
67
  },
79
- "default": {
80
- "types": "./dist/index.d.ts",
81
- "default": "./dist/index.js"
82
- }
68
+ "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
83
69
  },
84
70
  "./biome/*": "./biome/*",
85
71
  "./ls-lint/*": "./ls-lint/*",
@@ -131,9 +117,7 @@
131
117
  "syncpack",
132
118
  "zizmor"
133
119
  ],
134
- "dependencies": {
135
- "@angular-devkit/architect": "0.1900.6"
136
- },
120
+ "dependencies": { "@angular-devkit/architect": "0.1900.6" },
137
121
  "devDependencies": {
138
122
  "@manypkg/cli": "^0.23.0",
139
123
  "@manypkg/get-packages": "^2.2.2",
@@ -164,7 +148,5 @@
164
148
  "unified-engine": "11.2.1",
165
149
  "vfile-reporter": "8.1.1"
166
150
  },
167
- "publishConfig": {
168
- "access": "public"
169
- }
170
- }
151
+ "publishConfig": { "access": "public" }
152
+ }
@@ -0,0 +1,61 @@
1
+ /** @type {import("syncpack").RcFile} */
2
+ export const config = {
3
+ customTypes: {
4
+ engines: {
5
+ strategy: "versionsByName",
6
+ path: "engines",
7
+ },
8
+ packageManager: {
9
+ strategy: "name@version",
10
+ path: "packageManager",
11
+ },
12
+ nodeEngine: {
13
+ strategy: "version",
14
+ path: "engines.node",
15
+ },
16
+ },
17
+ dependencyTypes: ["**"],
18
+ formatBugs: true,
19
+ formatRepository: true,
20
+ indent: " ",
21
+ semverGroups: [],
22
+ sortAz: [
23
+ "bin",
24
+ "contributors",
25
+ "dependencies",
26
+ "devDependencies",
27
+ "keywords",
28
+ "peerDependencies",
29
+ "resolutions",
30
+ "scripts",
31
+ ],
32
+ sortExports: [
33
+ "types",
34
+ "node-addons",
35
+ "node",
36
+ "browser",
37
+ "import",
38
+ "require",
39
+ "development",
40
+ "production",
41
+ "default",
42
+ ],
43
+ sortFirst: ["name", "description", "version", "author"],
44
+ sortPackages: true,
45
+ specifierTypes: ["**"],
46
+ versionGroups: [
47
+ {
48
+ label: "@types packages should only be under devDependencies",
49
+ dependencies: ["@types/**"],
50
+ dependencyTypes: ["!dev"],
51
+ isBanned: true,
52
+ },
53
+ {
54
+ label:
55
+ "Ensure semver ranges for locally developed packages satisfy the local version",
56
+ dependencies: ["$LOCAL"],
57
+ dependencyTypes: ["dev"],
58
+ pinVersion: ["workspace-protocol"],
59
+ },
60
+ ],
61
+ };
@@ -0,0 +1,50 @@
1
+ ## https://taplo.tamasfe.dev/configuration/file.html
2
+
3
+ include = [
4
+ "*.toml",
5
+ "**/Cargo.toml",
6
+ "**/.config/**/*.toml",
7
+ "crates/**/*.toml",
8
+ "apps/**/*.toml",
9
+ ]
10
+
11
+ [formatting]
12
+ # Align consecutive entries vertically.
13
+ align_entries = true
14
+ # Append trailing commas for multi-line arrays.
15
+ array_trailing_comma = false
16
+ # Expand arrays to multiple lines that exceed the maximum column width.
17
+ array_auto_expand = true
18
+ # Collapse arrays that don't exceed the maximum column width and don't contain comments.
19
+ array_auto_collapse = false
20
+ # Omit white space padding from single-line arrays
21
+ compact_arrays = true
22
+ # Omit white space padding from the start and end of inline tables.
23
+ compact_inline_tables = false
24
+ # Maximum column width in characters, affects array expansion and collapse, this doesn't take whitespace into account.
25
+ # Note that this is not set in stone, and works on a best-effort basis.
26
+ column_width = 120
27
+ # Indent based on tables and arrays of tables and their subtables, subtables out of order are not indented.
28
+ indent_tables = false
29
+ # The substring that is used for indentation, should be tabs or spaces (but technically can be anything).
30
+ indent_string = ' '
31
+ # Add trailing newline at the end of the file if not present.
32
+ trailing_newline = true
33
+ # Alphabetically reorder keys that are not separated by empty lines.
34
+ reorder_keys = true
35
+ # Maximum amount of allowed consecutive blank lines. This does not affect the whitespace at the end of the document, as it is always stripped.
36
+ allowed_blank_lines = 1
37
+ # Use CRLF for line endings.
38
+ crlf = false
39
+ # Use tabs for indentation.
40
+ object_trailing_comma = false
41
+
42
+ [[rule]]
43
+ keys = [
44
+ "dependencies",
45
+ "dev-dependencies",
46
+ "build-dependencies",
47
+ "workspace.dependencies",
48
+ "patch.crates-io",
49
+ ]
50
+ formatting = { reorder_keys = true }
@@ -0,0 +1,19 @@
1
+ # [notifications]
2
+ # [notifications.webhook]
3
+ # url = "https://httpbin.org/post"
4
+ # token = "my_auth_token"
5
+
6
+ [severity]
7
+ level = "medium"
8
+
9
+ [rules]
10
+ skip-rules = ["accurics.kubernetes.IAM.107"]
11
+
12
+ [k8s-admission-control]
13
+ denied-categories = ["Network Ports Security"]
14
+ denied-severity = "high"
15
+ dashboard = true
16
+
17
+ # [policy]
18
+ # environment = "<environment_url>"
19
+ # access_token = "<access_token>"
@@ -0,0 +1,27 @@
1
+ tflint {
2
+ required_version = ">= 0.50"
3
+ }
4
+
5
+ config {
6
+ format = "compact"
7
+ plugin_dir = "~/.tflint.d/plugins"
8
+
9
+ call_module_type = "local"
10
+ force = false
11
+ disabled_by_default = false
12
+
13
+ ignore_module = {
14
+ "terraform-aws-modules/vpc/aws" = true
15
+ "terraform-aws-modules/security-group/aws" = true
16
+ }
17
+ }
18
+
19
+ plugin "aws" {
20
+ enabled = true
21
+ version = "0.4.0"
22
+ source = "github.com/terraform-linters/tflint-ruleset-aws"
23
+ }
24
+
25
+ rule "aws_instance_invalid_type" {
26
+ enabled = false
27
+ }
@@ -0,0 +1,39 @@
1
+ ---
2
+ yaml-files:
3
+ - "*.yaml"
4
+ - "*.yml"
5
+
6
+ rules:
7
+ braces:
8
+ forbid: non-empty
9
+ min-spaces-inside-empty: 0
10
+ max-spaces-inside-empty: 0
11
+ brackets: enable
12
+ colons: enable
13
+ commas: enable
14
+ comments:
15
+ level: warning
16
+ comments-indentation:
17
+ level: warning
18
+ document-end: disable
19
+ document-start: disable
20
+ empty-lines: enable
21
+ empty-values: disable
22
+ float-values:
23
+ forbid-inf: true
24
+ forbid-nan: true
25
+ forbid-scientific-notation: true
26
+ require-numeral-before-decimal: true
27
+ hyphens: enable
28
+ indentation: enable
29
+ key-duplicates: enable
30
+ key-ordering: disable
31
+ line-length: disable
32
+ new-line-at-end-of-file: disable
33
+ new-lines: enable
34
+ octal-values: enable
35
+ quoted-strings: disable
36
+ trailing-spaces: enable
37
+ truthy:
38
+ level: error
39
+ check-keys: false
@@ -0,0 +1,12 @@
1
+ rules:
2
+ template-injection:
3
+ ignore:
4
+ - ci-reusable.yml
5
+ - ci.yml
6
+ dangerous-triggers:
7
+ ignore:
8
+ - greetings.yml:3:1
9
+ use-trusted-publishing:
10
+ ignore:
11
+ # ignore line 12, column 10 on pypi.yml
12
+ # - pypi.yml:12:10
package/bin/lint.ts DELETED
@@ -1,42 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import {
4
- exitWithError,
5
- exitWithSuccess,
6
- getConfig,
7
- handleProcess,
8
- writeFatal,
9
- writeSuccess,
10
- } from "@storm-software/config-tools";
11
- import { createProgram } from "../src/cli";
12
-
13
- Error.stackTraceLimit = Infinity;
14
-
15
- void (async () => {
16
- const config = await getConfig();
17
- try {
18
- handleProcess(config);
19
-
20
- const program = await createProgram(config);
21
- program.exitOverride();
22
-
23
- await program.parseAsync(process.argv);
24
-
25
- writeSuccess("🎉 Code linting and fixing completed successfully!", config);
26
- exitWithSuccess(config);
27
- } catch (error) {
28
- writeFatal(
29
- `A fatal error occurred while running the Storm Lint tool:
30
- ${error?.message ? error.message : JSON.stringify(error)}${
31
- error?.stack
32
- ? `
33
- Stack Trace: ${error.stack}`
34
- : ""
35
- }`,
36
- config,
37
- );
38
-
39
- exitWithError(config);
40
- process.exit(1);
41
- }
42
- })();
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes