Commit graph

708 commits

Author SHA1 Message Date
Lukas Gravley
5a04bd9875
Merge pull request #927 from github/fix-secondary-rules-file
Don't override the secondary rules file path if available, don't reuse dirty values from previous iterations when loading rules files
2020-11-02 08:58:06 -06:00
Lucas Gravley
3c911cfe99 make fatal 2020-11-02 07:46:58 -06:00
Gabo
95ca6f0006 Fix shellchekc for linter versions 2020-10-30 20:43:54 -05:00
Gabo
cc5556514f Fix shellcheck 2020-10-30 20:27:20 -05:00
Gabo
f826ac73c5 Validation should be inside container 2020-10-30 19:57:35 -05:00
Gabo
291489d6d9 Fix logging level for automation scripts 2020-10-30 19:09:54 -05:00
Gabo
e4b007cd40 Move validation to build time 2020-10-30 15:06:12 -05:00
Gabo
87036c3987 Better pswh module validation 2020-10-30 14:16:21 -05:00
Lukas Gravley
7f15e7a441
Merge branch 'master' into fix-secondary-rules-file 2020-10-30 10:25:58 -05:00
Marco Ferrari
e2f45db57d Initialize the LANGUAGE_LINTER_RULES value to avoid using leftovers from the previous iteration 2020-10-30 12:47:09 +01:00
Marco Ferrari
888bc7524e Don't override the secondary rules file path, if available 2020-10-30 12:15:16 +01:00
Gabo
997cfdcb02 Add notice warn and error log levels 2020-10-28 19:08:01 -05:00
Lucas Gravley
dbffb46526 adding tests 2020-10-28 10:22:55 -05:00
Lukas Gravley
18915fe6a9
Merge pull request #905 from IvanKuchin/IvanKuchin-bugfix#900
bugfix: #900
2020-10-27 13:47:22 -05:00
IvanKuchin
98a0a194ad
Update buildFileList.sh
fix syntax issue to pass bash linter
2020-10-24 14:46:30 -04:00
Marco Ferrari
5be174d8d9 Fix FILE_STATUS for Dockerfiles 2020-10-24 16:13:16 +02:00
IvanKuchin
ab3f02fe26
bugfix: #900 2020-10-23 12:16:14 -04:00
Ahmad Nassri
0396b9189b
fix: correct env variable name for JSX command (#890)
fixes #889
2020-10-23 09:17:25 +02:00
Gabo
ae8b16dac5 Fix tap test for dynamic tests 2020-10-19 20:46:14 -05:00
Gabo
3772bb9a03 Fix test case workspace_path in build file list 2020-10-19 16:15:04 -05:00
Lukas Gravley
4053087930
Merge pull request #882 from wrux/master
Fixed typo in missing linter rule fatal error.
2020-10-19 14:47:06 -05:00
Callum
abb0901e2e
Fixed typo in missing linter rules. 2020-10-19 21:16:33 +02:00
Gabo
874475eb70 Fix test case workspace_path 2020-10-19 14:05:38 -05:00
Marco Ferrari
fcce194d34 Merge TestCodebase and LintCodebase
Change-Id: I9a044fefe96e400b8e3320842b53fe97af2a7b40
2020-10-17 16:12:55 +02:00
Marco Ferrari
4452bff800 Fix rules files for JAVASCRIPT_ES and TYPESCRIPT_ES when testing 2020-10-15 16:45:18 +02:00
Marco Ferrari
5e25d5dcae Print linter commands 2020-10-15 16:45:18 +02:00
Marco Ferrari
2a4c89e92f Export LANGUAGE_LINTER_RULES 2020-10-15 16:45:18 +02:00
Marco Ferrari
fdb14fc19c Print environment variables before running linters 2020-10-15 16:45:18 +02:00
Marco Ferrari
df79a85546 Print environment variables before running linters 2020-10-15 16:45:18 +02:00
Marco Ferrari
4507a8e056 Add a debug instructions to check LANGUAGE_LINTER_RULES 2020-10-15 16:45:18 +02:00
Marco Ferrari
dfaeaf317d Simplify rules files loading, plus fixes 2020-10-15 16:45:18 +02:00
Lucas Gravley
d9b3473867 add warning: 2020-10-14 10:31:55 -05:00
Lukas Gravley
ed588b80c1
Merge pull request #846 from github/tekton
Adding tekton language support
2020-10-13 16:37:11 -05:00
Lucas Gravley
8be7c6df85 remove cache folder 2020-10-13 14:17:40 -05:00
Lucas Gravley
7a775854e7 cleaner 2020-10-13 13:46:46 -05:00
Lucas Gravley
c3a1403fa0 fix tekton to not trigger kuber 2020-10-13 12:54:14 -05:00
Lucas Gravley
d8b13b0fd8 now with files 2020-10-13 10:21:23 -05:00
Marco Ferrari
c201c0f6d1 Dynamically invoke linters 2020-10-13 09:08:03 +02:00
Lukas Gravley
e8091a4ee9
Merge pull request #827 from PascalBourdier/ignore-kustomize-file
ignore kustomize file with kubeval
2020-10-12 10:36:45 -05:00
Lukas Gravley
6bde44e755
Merge pull request #824 from mshimokura/ecrc_file
editorconfig-checker - Use .ecrc Files
2020-10-12 10:24:00 -05:00
Michael Shimokura
a5cada70f8 Revert "rename the variable to EDITORCONFIG_CHECKER_FILE_NAME for clarity"
This reverts commit 23a463867d.
2020-10-09 09:13:37 -04:00
Michael Shimokura
23a463867d rename the variable to EDITORCONFIG_CHECKER_FILE_NAME for clarity 2020-10-09 09:02:12 -04:00
Pascal Bourdier
32a5945dd8 embedding the negation in the existing if 2020-10-09 11:53:34 +02:00
Pascal Bourdier
d975791bb9 ignore kustomize file with kubeval
currently, kubeval doesn't support kustomize file

so kubeval returns a false-positive about a missing `metadata` key:
```
2020-10-09 06:19:19 [ERROR ]   Found errors in [kubeval] linter!
2020-10-09 06:19:19 [ERROR ]   [ERR  - .../kustomization.yml: Missing 'metadata' key]
2020-10-09 06:19:19 [ERROR ]   Linter CMD:[kubeval --strict .../kustomization.yml]
```
2020-10-09 09:02:09 +02:00
Michael Shimokura
cd4798ea04 only assign EDITORCONFIG_FILE_NAME if not already assigned 2020-10-08 16:17:29 -04:00
Michael Shimokura
1312a3a3e4 use the .ecrc file 2020-10-08 15:27:47 -04:00
Tim Jones
a8746a7159 Add support for Terragrunt files 2020-10-08 18:18:22 +02:00
Marco Ferrari
a2b3938ea2 Dynamically load linter rules 2020-10-07 19:02:36 +02:00
Marco Ferrari
68e15659b8 Centralize file list building logic in buildFileList.sh 2020-10-07 16:36:49 +02:00
Marco Ferrari
351496fe72 Populate FILE_ARRAY_DOCKERFILE_HADOLINT 2020-10-03 12:19:33 +02:00