Commit graph

656 commits

Author SHA1 Message Date
Lukas Gravley
e11786a54c
Adding Flag for Possum (#1149)
* adding a bad feature

* fix hadolint
2021-01-19 11:03:14 -06:00
Lukas Gravley
193de39afd
Adding support for Prettier (#1118)
* adding it

* fix spaces

* vars were backwards

* remove prettier from function test
2021-01-04 11:07:57 -06:00
Marco Ferrari
156024e231
Simplify linter and worker by generalizing ansible-lint (#1035)
Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
2020-12-04 16:04:09 -06:00
Cesar Rodriguez
0f9370c453
Fixes Terrascan to perform checks for all supported Terraform cloud providers (#1015)
* updates to Terrascan v1.2.0

* updates command to explicitly scan terraform for all supported providers

* add no cache

* specify Pipfile

* verbose

* remove system

* remove cache

* put it back

* put it back

* clear

* adding cython

* more libs

* add system

Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
Co-authored-by: SVN Migrator <someone@somewhere.com>
2020-11-20 11:44:57 -06:00
Marco Ferrari
241f9f2cad
Harden testing (#982) 2020-11-20 09:12:31 -06:00
Lukas Gravley
cf19607c3c
Gherkin (#1011)
* adding gherkin

* adding to array

* fix space

* Update Dockerfile

* adding rules

* adding rules

Co-authored-by: SVN Migrator <someone@somewhere.com>
2020-11-19 09:54:20 -06:00
Lukas Gravley
fd154e1d13
give more memory (#992) 2020-11-12 11:45:04 -06:00
Lukas Gravley
7943ce1f54
break out: (#990)
* break out:

* fix it

* fix source

* add them exports

* more path

* more path
2020-11-12 11:27:34 -06:00
Marco Ferrari
b7e5dfce01 Fix shfmt errors 2020-11-06 23:10:09 +01:00
Marco Ferrari
c0441b2844 Use the already-defined linter names array to print linter versions 2020-11-04 10:26:05 +01:00
Lucas Gravley
2c9f8b1aa2 fixing logic 2020-11-03 10:06:33 -06:00
Marco Ferrari
3911130038 Fail on errors while getting linter versions 2020-11-02 21:54:26 +01:00
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
Gabo
e4b007cd40 Move validation to build time 2020-10-30 15:06:12 -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
Ahmad Nassri
0396b9189b
fix: correct env variable name for JSX command (#890)
fixes #889
2020-10-23 09:17:25 +02:00
Callum
abb0901e2e
Fixed typo in missing linter rules. 2020-10-19 21:16:33 +02:00
Marco Ferrari
fcce194d34 Merge TestCodebase and LintCodebase
Change-Id: I9a044fefe96e400b8e3320842b53fe97af2a7b40
2020-10-17 16:12:55 +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
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
d210896355 Set FILE_ARRAY_EDITORCONFIG 2020-10-03 00:33:01 +02:00
Marco Ferrari
e1b1c7d223 Dynamically initialize FILE_ARRAY variables 2020-10-02 23:02:47 +02:00
Marco Ferrari
973bfdea8e Initialize all log-related ASAP 2020-09-29 22:46:24 +02:00
Marco Ferrari
9371fab670 Remove unneeded variables and eval the rest 2020-09-29 22:33:11 +02:00
Lukas Gravley
18c32b7dca
Merge pull request #766 from mshimokura/editorconfig_lintall
Lint all changed files with editorconfig-checker
2020-09-28 08:38:51 -05:00
Lukas Gravley
167af0854e
Merge pull request #767 from kpj/master
Fix various Snakemake related issues
2020-09-28 08:36:48 -05:00
Marco Ferrari
31fd755fd7 Remove unneeded READ_ONLY_CHANGE_FLAG 2020-09-25 23:41:47 +02:00
kpj
9e7c84fbbb Fix various Snakemake related variable names 2020-09-24 16:06:12 +02:00
kpj
40f995365b Fix Snakefile regex 2020-09-24 15:55:47 +02:00
kpj
71ede6ccca Add missing 'GetLinterRules' calls 2020-09-24 15:54:24 +02:00
Michael Shimokura
12543b369b Lint all files with editorconfig-checker
Since .editorconfig configuration files _could_ apply to any file, we
should pass in the RAW_FILE_ARRAY to it. This ensures that files of all
types are linted by editorconfig-checker.
2020-09-24 09:02:24 -04:00
Lukas Gravley
84c79a186b
Merge branch 'master' into master 2020-09-22 08:56:09 -05:00
Marco Ferrari
f24f52be11 Lint with Kubeval and fixes 2020-09-22 01:49:01 +02:00
Lukas Gravley
f290145dfa
Update linter.sh 2020-09-21 13:51:46 -05:00
Lukas Gravley
06cb2ebb6f
Update linter.sh 2020-09-21 13:50:58 -05:00
Marco Ferrari
6168112f61 Fix ERROR_ON_MISSING_EXEC_BIT initialization 2020-09-21 14:43:44 +02:00
kpj
6f6004275f In anticipation of snakefmt 0.1.6, start using --check and --compact-diff 2020-09-18 16:32:01 +02:00
Marco Ferrari
5cefb9209f Make bash-exec errors or warnings configurable 2020-09-15 22:40:12 +02:00
NicolasVuillamy
e470df5431 Fix file filters: Reorder arguments to LintCodeBase function 2020-09-15 08:15:53 +02:00
kpj
5b51c2bd92 Use '--compact-diff' instead of '--diff' for snakefmt 2020-09-14 09:36:33 +02:00
Joseph Marino
2698bdfbc3
Fixed a typo in code comments
Replaced the term "CSS" with "HTML" in code comments for the
HTML_LINTER_RULES variable.
2020-09-11 15:16:55 -04:00
kpj
11f437df4c Fix usage of FILE_ARRAY_SNAKEMAKE 2020-09-11 13:51:15 +02:00
kpj
e1b2fd6085 Fix bug in Snakemake file regex 2020-09-11 13:49:05 +02:00
kpj
ec0577ae5b Add Snakemake to language array 2020-09-11 13:31:57 +02:00
NicolasVuillamy
27afc50d60 Set GROOVY Linter failure level to warning 2020-09-10 11:07:05 +02:00
NicolasVuillamy
c86e90b3d0 Solve conflicts + format 2020-09-09 20:22:32 +02:00
NicolasVuillamy
f072bc5c8d Merge remote-tracking branch 'github/master' 2020-09-09 20:18:21 +02:00
Marco Ferrari
83666ffaba Fix getting filename for hidden files 2020-09-08 19:20:49 +02:00
Lucas Gravley
a6c9656015 fixing vars 2020-09-08 09:47:57 -05:00
kpj
6f6e6e9d03 [Snakemake] Remove wrong function argument 2020-09-08 11:26:48 +02:00
kpj
581f07a32b [Snakemake] Fix 'LINTER_NAME' 2020-09-08 10:19:56 +02:00
kpj
8ac1c99a2e [Snakemake] Support both formatting using 'snakefmt' and linting using 'snakemake --lint' 2020-09-08 09:38:48 +02:00
kpj
ad262196ba [Snakemake] Also lint 'Snakefile' (without '.smk' suffix) 2020-09-08 09:11:54 +02:00
kpj
53f551c8b0 [Snakemake] Add '--config' parameter to 'snakefmt' calls 2020-09-07 17:26:58 +02:00
kpj
1e453be7fa [Snakemake] Update codebase 2020-09-07 16:49:07 +02:00
NicolasVuillamy
04c93b4ff5 Add management of FILTER_REGEX_INCLUDE and FILTER_REGEX_EXCLUDE options 2020-09-05 12:25:44 +02:00
Lukas Gravley
c58bab2627
Merge pull request #677 from v1v/feature/version
Print version, date and revision
2020-09-04 10:35:38 -05:00
Lucas Gravley
b29eb851d3 make pretty 2020-09-04 10:14:47 -05:00
Lukas Gravley
a3fcb3ea7c
Merge pull request #675 from dmerrick/honoring-disable-errors
Making MULTI_STATUS honor DISABLE_ERRORS setting
2020-09-04 09:15:06 -05:00
Lukas Gravley
eb36fb7d7c
Merge branch 'master' into master 2020-09-04 08:53:34 -05:00
NicolasVuillamy
21d75fb89e Groovy traps .nf extension (nextflow) + upgrade npm-groovy-lint 2020-09-04 11:54:31 +02:00
Victor Martinez
d3c992bec7
Print version, date and revision 2020-09-04 09:09:20 +01:00
Dana Merrick
c64c5c8d60 Cleaner solution 2020-09-03 19:37:10 -04:00
Dana Merrick
dd84550d46 Honoring DISABLE_ERRORS 2020-09-03 19:23:24 -04:00
Lucas Gravley
c4bbf03935 fixing debug 2020-09-03 10:12:29 -05:00
Lucas Gravley
d78e707cba no source needed 2020-09-03 09:57:20 -05:00
Lucas Gravley
8a51e59be7 even easier 2020-09-03 09:20:00 -05:00
Lucas Gravley
72fd3e3b87 super simple 2020-09-03 09:12:49 -05:00
Lucas Gravley
f5e39e5aad fix typo and add check 2020-09-02 09:26:01 -05:00
Josselin
f34b084586 Add support for black config file 2020-09-02 11:28:57 +02:00
Marco Ferrari
de4b8a4fa0 Add shfmt and fixes back 2020-09-01 00:06:15 +02:00
Marco Ferrari
30763f2575 Streamline shell file list building 2020-08-31 23:47:48 +02:00
Lucas Gravley
98c2eec42a small clean 2020-08-31 14:34:14 -05:00
Marco Ferrari
f5331bdcd3 Skip shfmt if no .editorconfig file is present 2020-08-31 19:30:50 +02:00
Marco Ferrari
f90c3a289b Check if report output folder exists before listing 2020-08-31 19:22:50 +02:00
Marco Ferrari
b3a980e06f Fix bash-exec and terrascan versions 2020-08-31 19:22:49 +02:00
Marco Ferrari
0d849cd5e0 Lint shell files with shfmt 2020-08-31 19:22:49 +02:00
Lucas Gravley
a32d0c1314 here 2020-08-28 14:08:08 -05:00
Lucas Gravley
b7781ba295 forgot quote 2020-08-28 11:54:31 -05:00
Lucas Gravley
9be83e0166 merge master 2020-08-28 11:46:11 -05:00
Lucas Gravley
345a6626e7 put it back 2020-08-28 11:42:14 -05:00
Lukas Gravley
10f44786ce
Merge pull request #641 from github/isExec
adding bash-exec
2020-08-28 10:37:43 -05:00
Lucas Gravley
40fddbad79 get name even 2020-08-28 10:12:02 -05:00
Lucas Gravley
0404c39203 adding exec 2020-08-28 09:56:53 -05:00
Lucas Gravley
d9f35b2af7 more cleanupo 2020-08-27 14:26:05 -05:00
Lucas Gravley
4bf0aee923 Make it happy 2020-08-27 14:12:24 -05:00
Lucas Gravley
94e03d50ac better loop 2020-08-27 14:01:43 -05:00
Lucas Gravley
9cae4c7f6d better 2020-08-27 09:00:54 -05:00
Cesar Rodriguez
815f8236dd Updates scan command for Terrascan 2020-08-26 22:53:00 -04:00
Cesar Rodriguez
e060679ea8 Updates terrascan command 2020-08-26 22:53:00 -04:00
Eddy Nakamura
9c44d2d503 changing command - 2 2020-08-26 11:58:28 -03:00
Eddy Nakamura
b83e4c99ed updating command 2020-08-26 11:42:05 -03:00
Lucas Gravley
454fa09b81 Fixed it? 2020-08-26 08:50:53 -05:00
Lucas Gravley
9b129f4873 fixed it again 2020-08-25 14:21:22 -05:00
Lukas Gravley
c2e207f643
Merge branch 'master' into feature/csharp-lint 2020-08-25 13:09:51 -05:00
Lukas Gravley
fb70f94bd3
Merge branch 'master' into hadolintLinter 2020-08-25 10:06:43 -05:00
Lucas Gravley
ee3200654a adding hadolint configuration 2020-08-25 09:55:30 -05:00
Lucas Gravley
cb41ae47fa adding feature 2020-08-25 09:05:23 -05:00
Eddy Nakamura
79dccdf62b updating command 2020-08-24 21:58:25 -03:00
Eddy Nakamura
efe1f95c87 updating linter script 2020-08-24 21:46:55 -03:00
Eddy Nakamura
accf805de4 adding files to buildFileList and linter 2020-08-24 21:43:50 -03:00
Eddy Nakamura
24ce47014d Adding C# lint 2020-08-24 21:40:02 -03:00
Lucas Gravley
e7ff2d0e66 fixed it 2020-08-24 14:22:39 -05:00
Lucas Gravley
a1f76a8e2b fix version 2020-08-24 14:17:44 -05:00
Lucas Gravley
254db11e08 better... faster... stronger... 2020-08-24 14:12:37 -05:00
Lucas Gravley
3fda83377a add quotes 2020-08-24 13:56:09 -05:00
Lucas Gravley
815ff9d520 Adding more 2020-08-20 13:03:40 -05:00
Lucas Gravley
17a4bd2271 adding some dope code 2020-08-20 12:58:11 -05:00
Lucas Gravley
1f2c569c21 adding black 2020-08-20 09:44:11 -05:00
Lucas Gravley
b13ac9a14f quotes 2020-08-19 14:18:49 -05:00
Lucas Gravley
54abac63b3 fix logic hole 2020-08-19 14:14:41 -05:00
Lukas Gravley
5970f28f6b
Merge pull request #588 from assignUser/chktex
Add LaTeX support
2020-08-19 13:12:11 -05:00
assignUser
8224e9e6e5 fix exit code 2020-08-19 17:51:07 +00:00
assignUser
dcd81f09d0 fix global config warning 2020-08-19 14:28:41 +00:00
assignUser
bad32e6f53 adress review 2020-08-19 14:16:59 +00:00
assignUser
b42ba5c72a quiet chktex 2020-08-19 01:11:34 +00:00
assignUser
e8db83e2dd
Update linter.sh 2020-08-19 01:03:12 +02:00
assignUser
e1bc1df9e7 add latex support 2020-08-18 22:54:32 +00:00
Lukas Gravley
308c1fd5aa
Merge pull request #569 from assignUser/master
Add lintr support to super-lint
2020-08-18 16:08:35 -05:00
assignUser
cc903ad583 Adjust doc about exclusions 2020-08-18 16:11:26 +00:00
Lucas Gravley
f5752cfd45 adding the right var 2020-08-18 10:09:18 -05:00
Lucas Gravley
1f55b422da fix folder for persistance 2020-08-18 09:51:38 -05:00
assignUser
6372885cd0 relative exclusions work, adressed comments 2020-08-17 16:27:31 +00:00
assignUser
727f982bf9 typo 2020-08-17 13:38:00 +00:00
assignUser
4f4784fd41 fix displayed lintr command 2020-08-17 13:30:39 +00:00
assignUser
f9b81243db add quotes 2020-08-17 12:14:15 +00:00
assignUser
0f47f68445 add .lintr detection 2020-08-17 12:01:25 +00:00