-
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mega-linter-runner appears to use a different config for rubocop #302
Comments
I have had mega-linter-runner catch quite a few things with cspell and one of the markdown linters for sure. I am not sure if any other linters are affected by this issue. |
mmmm my computer is not very nice about running Docker locally... (windows with almost full disk) I'll see what I can do :$ |
Please could you run |
### Processing [RUBY] files
- Using [rubocop v0.82.0] https://rubocop.org/
- Mega-Linter key: [RUBY_RUBOCOP]
- Rules config: [/.ruby-lint.yml]
[rubocop] test.rb - SUCCESS - 0 error(s)
✅ Linted [RUBY] files with [rubocop] successfully - (2.36s)
Skipped post of Github Status for RUBY with rubocop
[Text Reporter] Generated TEXT report: /tmp/lint/report/linters_logs/SUCCESS-RUBY_RUBOCOP.log
Linter result: 0 CSpell: Files checked: 8, Issues found: 0 in 0 files
Popen(['git', 'diff', '--abbrev=40', '--full-index', '-M', '--raw', '-z', '--no-color'], cwd=/tmp/lint, universal_newlines=False, shell=None, istream=None)
Linter version command: ['cspell', '--version']
Linter version result: 0 4.1.3 |
Ok, so to summarize, the problem is that locally, rubocop uses default Mega-Linter .ruby-lint.yml, whereas in other cases (GH Action) it succeeds to use the remote https://raw.githubusercontent.com/joe-sharp/linter-configs/main/.ruby-lint.yml ? |
Actually no. Sorry if this wasn't clear. It appears even a local config is ignored here. In the full output I provided I left off the remote config because this particular repository is the one I use for remote configs. I have been trying to reduce the possible variables involved in this issue. |
Found this in the debug output:
So it looks like it found the right file to run rubocop against. and it looks like it is running the correct command:
Me manually running the same command: ~/Documents/repos/linter-configs 🔮❯❯❯ rubocop --force-exclusion -c .ruby-lint.yml test.rb
Inspecting 1 file
C
Offenses:
test.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
p 'hello world!'
^ |
First, do we agree that cobfig file name should be .rubocop.yml and not .ruby-config.yml ? And what is wrong with the command line you identified ? It ignores the config file ? (Sorry i'm a little bit lost ^^) |
Yes, we definitely agree that the rubocop config file should be Additionally, although it appears to no longer be maintained, there actually is a Ruby Lint and its config file is
I don't think I found anything wrong. I was just trying to rule out all the obvious things. I can hopefully dig into this more tomorrow and maybe find something useful. Any troubleshooting tips would be highly appreciated. Worst case we could potentially find a time to work on it together via screen-share. Thanks again for your time! |
I just started a new job as CTO which is veryyyy time consuming, so if you'd like to become an active contritor to mega-linter, you'll have my full support, I can show you the architecture this weekend if you want :) |
That sounds time consuming indeed, félicitations on your new role! I would very much be interested in contributing to Mega-Linter, we can certainly set something up for this weekend, thank you very much! 😄 |
I worked all week-end... they don't have CI yet, so much to do... ^^ |
No worries at all, I had a chance to dig a little further, but unfortunately don't have many more answers. I even logged into the docker image while it was running and manually ran rubocop in there. It actually flagged the issue just like it should. I think my next step is to see if it could be an inheritance problem with the config. Are there any flags that could be sent to rubocop that aren't included in the output? I don't think I noticed anything but I don't know that I have exhausted all my verbosity options yet. (I may be able to get rubocop to tell me more for example.) |
Found this in my debugging today. I am not sure how this is happening, but it seems the most likely cause. [rubocop] result: 0 configuration from /tmp/lint/.ruby-lint.yml
Default configuration from /usr/lib/ruby/gems/2.7.0/gems/rubocop-0.82.0/config/default.yml
Inspecting 0 files
0 files inspected, no offenses detected
Finished in 0.11177593899628846 seconds I'll look around for that issue. Side question, do you know a way to prevent the container from exiting after Mega-Linter is done? I haven't had luck getting a shell prompt afterwards. |
I don't know if I am more or less confused by this issue at this point. I still cannot figure out any reason why it decides to inspect 0 files. I did try changing to use the proper config name and this time also included a POST_COMMAND running the same command as rubocop. (Unless the debug log is lying about what command it ran. 🤷🏼♂️ ) POST_COMMANDS=[{'command': 'rubocop --force-exclusion -d -c /tmp/lint/.rubocop.yml /tmp/lint/test.rb', 'cwd': 'workspace'}]
RUBY_RUBOCOP_ARGUMENTS=-d
RUBY_RUBOCOP_CONFIG_FILE=.rubocop.yml
RUBY_RUBOCOP_RULES_PATH=/tmp/lint
...
[Filters] {'name': 'RUBY_RUBOCOP', 'filter_regex_include': None, 'filter_regex_exclude': None, 'files_sub_directory': None, 'lint_all_files': False, 'lint_all_other_linters_files': False, 'file_extensions': ['.rb'], 'file_names_regex': [], 'file_names_not_ends_with': [], 'file_contains_regex': []}
RUBY_RUBOCOP linter files after applying linter filters:
- /tmp/lint/test.rb
...
[rubocop] command: ['rubocop', '--force-exclusion', '-d', '-c', '/tmp/lint/.rubocop.yml', '/tmp/lint/test.rb']
[rubocop] CWD: /
[rubocop] result: 0 configuration from /tmp/lint/.rubocop.yml
Default configuration from /usr/lib/ruby/gems/2.7.0/gems/rubocop-0.82.0/config/default.yml
Inspecting 0 files
0 files inspected, no offenses detected
Finished in 0.11704031995031983 seconds
### Processing [RUBY] files
- Using [rubocop v0.82.0] https://rubocop.org/
- Mega-Linter key: [RUBY_RUBOCOP]
- Rules config: [/.rubocop.yml]
[rubocop] test.rb - SUCCESS - 0 error(s)
✅ Linted [RUBY] files with [rubocop] successfully - (1.52s)
Skipped post of Github Status for RUBY with rubocop
...
[Post] run: [rubocop --force-exclusion -d -c /tmp/lint/.rubocop.yml /tmp/lint/test.rb] in cwd [/tmp/lint]
[Post] [configuration from /tmp/lint/.rubocop.yml
Default configuration from /usr/lib/ruby/gems/2.7.0/gems/rubocop-0.82.0/config/default.yml
Inspecting 1 file
Scanning /tmp/lint/test.rb
C
Offenses:
test.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
p 'hello world!'
^
1 file inspected, 1 offense detected
Finished in 0.1909610760048963 seconds
]
... |
WAIT, I think I may have found the culprit!: [Post] run: [rubocop --force-exclusion -d -c /tmp/lint/.rubocop.yml /tmp/lint/test.rb] in cwd [/]
[Post] [configuration from /tmp/lint/.rubocop.yml
Default configuration from /usr/lib/ruby/gems/2.7.0/gems/rubocop-0.82.0/config/default.yml
Inspecting 0 files
0 files inspected, no offenses detected
Finished in 0.07821669999975711 seconds
] configuration from /tmp/lint/.rubocop.yml I noticed that the current working directory was root during rubocop so I set my POST_COMMAND to the same and it skips the file. I will keep digging to see if I can find out why Rubocop fails on this... |
This may have been fixed on Rubocop 0.83.0: But it also might still have this behavior due to the default config: Exclude:
- 'node_modules/**/*'
- 'tmp/**/*'
... EDIT: I was able to confirm the exclude in the default config causes the issue along with the working directory used by PRE_COMMANDS:
- command: sed -i "s/- 'tmp\/\*\*\/\*'//g" $(rubocop -d --force-default-config -v | grep Default | awk '{print $4}')
cwd: "root" If you upgrade rubocop I would be happy to try this again but it may be best to use a different working directory rather than '/tmp/lint'. Side note, I tried to make the PRE-COMMANDS run a |
Great investigation :) I'd like to avoid to hardcode it in python as much as possible, could u:
|
Thanks! 😅 I definitely agree on the strategy, I will start working on a fix hopefully some time today, but for sure this week! |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
Sorry this has gone stale, I have a PR started barely but we got hit with some crazy weather that put me offline mostly for a week and got very behind at work. Hoping to be caught up next week. |
Do the best you can, no problem :) |
Got A PR started that is linked above. Looks like I broke some things that I need to look into after work but I made a fair bit of progress already. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
Hello here @nvuillam @joe-sharp I've witnessed the exact same issue using rubocop today: all my files are skipped when running locally ( I've noticed that manually running the same Has there been any progress on a possible resolution / workaround? |
@Yann-J I removed --force-exclusion, please could you check again with docker image megalinter/megalinter:test-nvuillam-rubocop and confirm it works ok with updated descriptor config ? :) |
Yes @nvuillam , I confirm this works in my CI now! |
@Yann-J thanks for your feedback :) Merged in main, so available in megalinter/megalinter:beta in 30mn, then in the next official MegaLinter release :) |
* PHP version switch (#1083) * fixe issue #1060 * fix hadolint error DL3059 * [automation] Auto-update linters version, help and documentation (#1088) * [automation] Auto-update linters version, help and documentation * Increase trivy timeout * [automation] Auto-update linters version, help and documentation (#1091) * Release MegaLinter v5.3.0 * [automation] Auto-update linters version, help and documentation (#1097) * Fix CHANGELOG * [automation] Auto-update linters version, help and documentation (#1098) * [automation] Auto-update linters version, help and documentation (#1100) * [automation] Auto-update linters version, help and documentation (#1101) * [automation] Auto-update linters version, help and documentation (#1104) * [automation] Auto-update linters version, help and documentation (#1107) * [automation] Auto-update linters version, help and documentation (#1109) * [automation] Auto-update linters version, help and documentation (#1113) * [automation] Auto-update linters version, help and documentation (#1114) * [automation] Auto-update linters version, help and documentation (#1116) * [automation] Auto-update linters version, help and documentation (#1117) * [automation] Auto-update linters version, help and documentation (#1118) * [automation] Auto-update linters version, help and documentation (#1121) * Release MegaLinter v5.4.0 * [automation] Auto-update linters version, help and documentation (#1122) * [automation] Auto-update linters version, help and documentation (#1123) * [automation] Auto-update linters version, help and documentation (#1124) * [automation] Auto-update linters version, help and documentation (#1129) * [clj-kondo] update docs and version to 2021.12.19 (#1126) Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * fix "MegaLinter vs Super-Linter" link in README (#1130) Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1131) * [automation] Auto-update linters version, help and documentation (#1135) * [automation] Auto-update linters version, help and documentation (#1138) * [automation] Auto-update linters version, help and documentation (#1141) * [automation] Auto-update linters version, help and documentation (#1142) * Release MegaLinter v5.5.0 * Increase node.js --max-old-space-size to 8192 (#1149) * Increase node.js --max-old-space-size to 8192 * Build * [automation] Auto-update linters version, help and documentation (#1144) * trivy * [automation] Auto-update linters version, help and documentation (#1151) * [automation] Auto-update linters version, help and documentation * cspell * [automation] Auto-update linters version, help and documentation (#1155) * [automation] Auto-update linters version, help and documentation (#1156) * [automation] Auto-update linters version, help and documentation * trivy * [automation] Auto-update linters version, help and documentation (#1159) * [automation] Auto-update linters version, help and documentation (#1161) * Upgrade clj-kondo (#1165) * [automation] Auto-update linters version, help and documentation (#1164) * [automation] Auto-update linters version, help and documentation (#1167) * [automation] Auto-update linters version, help and documentation (#1170) * Retrieve licenses for documentation + fix config file + env issue (#1168) * [automation] Auto-update linters version, help and documentation * Disable Github Status reporter * Breaking change: GITHUB_STATUS_REPORTER disabled by default * Breaking change: set PRINT_ALL_FILES default to false * Deploy V6 image (#1035) * QuickFix CI job * New flavor Security (#1036) * Java PMD v0 * Java Pmd v0.01 * Working Java + pmd :) * changelog + doc * Genedate doc + manage offline mode * changelog * Bring back referring linters * Fix build * Automate update of changelog when new release (v0) * Do not create commit & tag with npm version * Move markdown formatting * .md * PMD install commands * More pmd descriptor infos + build * Fix megalinter errors * Fix PMD install commands + build * [MegaLinter] Apply linters fixes * Hardcode some licenses * [MegaLinter] Apply linters fixes * Add gitleaks * Build with gitleaks * Gitleaks fixes * changelog * New descriptor: repository TODO: deprecate git and credentials * New descriptor "repository" * Add Goodcheck Goodcheck updates * Fix PMD * Fix PMD * [MegaLinter] Apply linters fixes * Fix pmd installation * Typo * wget --quiet * Add trivy * Build v6-alpha flavors * Remove git & credentials descriptors + upgrade python base image * Upgrade python * New flavor Security v0 * Fix ansible-lint install * Deploy v6-alpha documentation * Fix test class quick build * Disable java pmd * Downgrade python version * SARIF v0 * Update descriptor JSON schema + retries for sgerrand url * Add SARIF output for checkov * Add SARIF output for eslint * [automation] Auto-update linters version, help and documentation (#1038) * Fix gitleaks * Build * Do not skip build if failed * Do not test SARIF when SARIF is not active on a linter * Update ansible install * Fix goodcheck tests * Fix markdown-table-formatter * Fix trivy command * Fix checkov test case + manage default sarif output file * use MegaLinter beta for now * Update CI for new default report folder + Manage {{REPORT_FOLDER}} in CLI variables * Exit code 1 for trivy * Fix replace_vars definition * Do not run test mega-linter-runner when docker build failed * Fix replace_vars * Downgrade v8r version * Fix arm test case * build * Fix again arm test case * Fix makedirs for report folder * Rename default report folder into megalinter-reports * Fix gitleaks * Try again gitleaks * Fix last errors * Fix internal lint errors Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * v6-alpha for github action * Adapt CI for v6-alpha. (#1062) * Fix own MegaLinter errors (#1063) * Fix own MegaLinter errors * Do not use secretlint on report folder * Fix gitleaks own config * Use regexes in gitleaks toml config file * grmblmblm * try with paths * Regex to gather gitleaks errors * Make gitleaks non blocking * Update gitleaks descriptor * Debug gitleaks (#1068) * Debug gitleaks * Remove LinkedIn ID gitleaks check * Ignore .gitleaks.toml files * Update security flavor + toml gitleaks update to use regexes * Try again... * Fix gitleaks config (use regexes in paths) * Update default .gitleaks.toml files * Clean dev variables * Build * Retrofit latest v5 updates into v6 (#1070) * [automation] Auto-update linters version, help and documentation (#1038) * Implement new linter PHPLint (#1037) * add new phplint linter (see #1031) * use composer global install for overture/phplint * update changelog * fix feature #1043 (#1044) * Add @babel/eslint-parser as dependency for eslint (#1045) * [automation] Auto-update linters version, help and documentation (#1046) * [automation] Auto-update linters version, help and documentation + @babel-core * Add @babel-core dependency * Use node.js LTS and not nodejs-current * Downgrade v8r version * Fix arm test case * Fix again arm test case * [automation] Auto-update linters version, help and documentation * Build * [automation] Auto-update linters version, help and documentation (#1050) * [automation] Auto-update linters version, help and documentation (#1052) * [automation] Auto-update linters version, help and documentation * Update doc for gitlab MegaLinter config * Bandit default config file (#1051) * remove default parameters * add default bandit configfile built with bandit-config-generator command * update changelog * update bandit doc page Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * Try again ktlint auto-upgrade (#976) * [automation] Auto-update linters version, help and documentation (#1055) * [automation] Auto-update linters version, help and documentation (#1056) * Docs & links (#1058) * Update stale config * Fix getting linter version of npm plugin. (#804) * [automation] Auto-update linters version, help and documentation (#1059) * Fix doc * [automation] Auto-update linters version, help and documentation (#1065) * [automation] Auto-update linters version, help and documentation (#1067) * build Co-authored-by: Laurent Laville <laurent.laville@gmail.com> * SARIF for gitleaks (#1069) * SARIF for gitleaks * Sarif python test class v0 * Lint fix + changelog * Generate security flavor * SARIF support for trivy (#1071) * [automation] Auto-update linters version, help and documentation (#1038) * Implement new linter PHPLint (#1037) * add new phplint linter (see #1031) * use composer global install for overture/phplint * update changelog * fix feature #1043 (#1044) * Add @babel/eslint-parser as dependency for eslint (#1045) * [automation] Auto-update linters version, help and documentation (#1046) * [automation] Auto-update linters version, help and documentation + @babel-core * Add @babel-core dependency * Use node.js LTS and not nodejs-current * Downgrade v8r version * Fix arm test case * Fix again arm test case * [automation] Auto-update linters version, help and documentation * Build * [automation] Auto-update linters version, help and documentation (#1050) * [automation] Auto-update linters version, help and documentation (#1052) * [automation] Auto-update linters version, help and documentation * Update doc for gitlab MegaLinter config * Bandit default config file (#1051) * remove default parameters * add default bandit configfile built with bandit-config-generator command * update changelog * update bandit doc page Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * Try again ktlint auto-upgrade (#976) * [automation] Auto-update linters version, help and documentation (#1055) * [automation] Auto-update linters version, help and documentation (#1056) * Docs & links (#1058) * Update stale config * Fix getting linter version of npm plugin. (#804) * [automation] Auto-update linters version, help and documentation (#1059) * Fix doc * [automation] Auto-update linters version, help and documentation (#1065) * [automation] Auto-update linters version, help and documentation (#1067) * SARIF for gitleaks * Sarif python test class v0 * Lint fix + changelog * SARIF support for trivy * Accelerate and fix internal tests * Fix SARIF files * Fix trivy sarif args * [automation] Auto-update linters version, help and documentation (#1072) * Fix SarifReporter * Better handling of SARIF error management * Fix SARIF default file name use quick build * Fix sarif reporter exception management * Variabilize default release * Improve runtime perfs when FLAVOR_SUGGESTIONS: false (#1073) * Improve runtime perfs when FLAVOR_SUGGESTIONS: false * [MegaLinter] Apply linters fixes * Fix how to get MEGALINTER_FLAVOR * Fix ignore flavor suggestion test class Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Build Co-authored-by: Laurent Laville <laurent.laville@gmail.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * V6/popularity - Display github stars in all linters documentation (#1075) * Add popularity * Update descriptors to add linter_repo when missing * FLAVOR_SUGGESTIONS:false to improve perfs * Build * Enhance documentation (#1078) * Popularity column in all tables * More badges in linters list doc * cspell * Fix sarif test case (#1079) * Fix sarif test case * Fix hardcoded reporter folder name in test case * Remove dockerfilelint (#1080) * Remove dockerfilelint * changelog * Upgrade to AWS cfn-lint (#1085) * Upgrade to AWS cfn-lint * Build * Add SARIF management for cfn-lint * Add cfn-lint example SARIF output file * SARIF management for Hadolint (#1089) * SARIF management for Hadolint * Update .gitleaks.toml to ignore .mypy_cache folder * Catch SARIF error * Upgrade hadolint to 2.8.0-alpine * SARIF for checkstyle (#1093) * SARIF for ktlint (#1095) * SARIF for all eslint uses (#1094) * SARIF management for go revive (#1092) * SARIF management for go revive * fix descriptor quick build * SARIF Management for PHP PSALM (#1096) * Build doc * More SARIF examples * V6/docker standalone linters (#1099) * Build unique linters dockerfiles * Dockerfiles for unique linters + Improve perfs * CI to build standalone images * Fix CI * Matrix jobs: do not fail other jobs if one fails * Manage docker build --squash * Add test cases to "only" docker images * No codecov call when not running all tests * Create output sarif folder when SARIF is from stdout * Remove useless python packages for ML runtime * Remove pytest-cov pytest-timeout from runtime image * Optimize Until dotenv linter * gcc in all dockerfiles + go for actionlint * Add libffi-dev in all Docker images * Add make * add bash * add musl-dev * Fix linters install * gnugpg for php * Automate node & ruby-dev installation if packages are used in install * Fix dotnet install * More preset variables on single-linter docker images * typo * typo2 * Add ruby-bundler for gem packages * Remove PHP_BUILTIN as it has been replaced by PHP_PHPLINT * Fix descriptors and test class * Improve CI perfs for only-linters build * More fixes * Fix kotlin install * Fix raku install * Fix R * Fix scala * Fix TSX * Fix Vb .NET * Build * Linters page * rollback raku * Fix terraform_fmt & rollback raku * Try fix rakudo * Fix duplicate ARG and FROM in dockerfile * Fix python lint err * Disable lint_all_other_linters_files=true if in SINGLE_LINTER mode * lint fix * Reduce docker layers * Reduce again the list of docker build steps * Do not keep text logs if not wanted + linter delete SARIF files * Fix CI * Fix SARIF test case * Disable deprecated test case * Terrascan SARIF management (#1103) * Terrascan SARIF management * tflint SARIF management * Fix terrascan args * cspell * MegaLinter server (#1106) * PHP version switch (#1083) * fixe issue #1060 * fix hadolint error DL3059 * [automation] Auto-update linters version, help and documentation (#1088) * [automation] Auto-update linters version, help and documentation * Increase trivy timeout * [automation] Auto-update linters version, help and documentation (#1091) * Release MegaLinter v5.3.0 * [automation] Auto-update linters version, help and documentation (#1097) * Fix CHANGELOG * [automation] Auto-update linters version, help and documentation (#1098) * [automation] Auto-update linters version, help and documentation (#1100) * [automation] Auto-update linters version, help and documentation (#1101) * [automation] Auto-update linters version, help and documentation (#1104) * KEEP_ALIVE_MEGALINTER v0 * openssh * Build standalone linters only for linters managing SARIF * Entrypoint * Entrypoint: exit when test cases called * Add openrc * Try another way https://github.com/danielguerra69/alpine-sshd * Startup lines at the end * Test simple case with password * rhaaaa * Remove ssh stuff as we loose env variables * Server v0 * Server v0 * Add workspace argument * Expose on port 80 * Manage running processes * try debug flask * debug mode for server * v0 ? * Fix server for report file name * SARIF in http response * [automation] Auto-update linters version, help and documentation (#1107) * [automation] Auto-update linters version, help and documentation (#1109) * [automation] Auto-update linters version, help and documentation (#1113) * Bring back ssh * Set env variables for all users * [automation] Auto-update linters version, help and documentation (#1114) * [automation] Auto-update linters version, help and documentation (#1116) * [automation] Auto-update linters version, help and documentation (#1117) * new SSH way with tmux * Build * Allow PWD auth for testing * [automation] Auto-update linters version, help and documentation (#1118) * [automation] Auto-update linters version, help and documentation (#1121) * Release MegaLinter v5.4.0 * [automation] Auto-update linters version, help and documentation (#1122) * [automation] Auto-update linters version, help and documentation (#1123) * [automation] Auto-update linters version, help and documentation (#1124) * [automation] Auto-update linters version, help and documentation (#1129) * [clj-kondo] update docs and version to 2021.12.19 (#1126) Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * fix "MegaLinter vs Super-Linter" link in README (#1130) Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * Move ssh management to entrypoint * QuickFix * try again * Stop docker container if entrypoint fails * Sh in container * alias for megalinger when running in server mode (#1133) makes running megalinter in server mode easier * aliases * Build * tmux_exec * Build ! * [automation] Auto-update linters version, help and documentation (#1131) * gha * motd * build * -input and -output v0 * Use argparse * Use parse_known_args * config.set * [automation] Auto-update linters version, help and documentation (#1135) * DOCKER_DEFAULT_WORKSPACE_DIR & absolue path for --input argument * introduce shell script to convenience running from ssh (#1137) * Create megalinter_tmux * Update build.py * Build Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * Use --input * Fix --input + CI * CI for Inbar (create branch named v6_inbar ) * [automation] Auto-update linters version, help and documentation (#1138) * [automation] Auto-update linters version, help and documentation (#1141) * [automation] Auto-update linters version, help and documentation (#1142) * Release MegaLinter v5.5.0 * V6 inbar (#1143) * capture std is optional capture std is optional * improve megalinter_tmux script add verbosity as an optional flag, improve some messages, add comments, fix script name in examples * Bash file as executable * Fix shellcheck issue https://github.com/koalaman/shellcheck/wiki/SC2124 * Python & Dockerfiles lint errors * cspell * Build * Ignore tmux_exec for bash controlling * pylint err * cspell Co-authored-by: Laurent Laville <laurent.laville@gmail.com> Co-authored-by: John Practicalli <250870+practicalli-john@users.noreply.github.com> Co-authored-by: Adam Ralph <adam@adamralph.com> Co-authored-by: Inbar <5904674+InbarRose@users.noreply.github.com> * V6 semgrep (#1147) * Add semgrep * Manage cli_config_default_value * Manage case when SARIF output is only the last sdout line * Add python test files for semgrep * semgrep --error * use regex to extract json * Use find / rfind instead of regex * fix * fix crash * reverse does not have a return value * Fix sarif_default_output_file process * Check SARIF consistency in test classes * Fix position to extract JSON from stdout * position again * Remove SARIF file from previous runs * Stupid typo + remove aggregate SARIF if pre-existing ^^ * changelog * Fix lint errors + descriptor json schema * Build doc * Automatically select security rulesets for semgrep (#1148) * Automatically select security rulesets for semgrep * Test classes for semgrep security rulesets * Do not overwrite test class if already existing * semgrep check failure * Any v6- and v6_ branch generates standalone linters * lint fixes * document additional megalinter semgrep config vars * build * SARIF enhancements (and trivy failed attempts) (#1150) * More general info in sarif * Fix trivy install for SARIF * Build * Force sarif template path + upgrade trivy version * fix wget call * try chmod on sarif template * typo * trivy * Add devskim (#1152) * devskim v0 * devskim bad example * Fix number of errors count * fix & Build doc * changelog * cspell * Fix CI * cspell * Fix trivy ? * fix trivy ? (2) * Try fix gitleaks (#1157) * Try fix gitleaks * trivy * Workaround until next version of trivy * build * Revert "Try fix gitleaks" This reverts commit e7c1be65c9dadc585cdea4c1302d75146d3acf8e. * Remove default gitleaks use + --no-git * --no-git back * SARIF for npm-groovy-lint (#1158) * SARIF for npm-groovy-lint * Fix GroovyLinter custom class * Factorize * Manage dynamic --no-git presence for gitleaks (#1162) * Manage dynamic --no-git presence for gitleaks * lint fix * Test upload SARIF to github * Retrieve licenses * Fix mixed config file + env variables config * Link to licenses * Update links to licenses * Fixes * fix lint err * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> Co-authored-by: Laurent Laville <laurent.laville@gmail.com> Co-authored-by: John Practicalli <250870+practicalli-john@users.noreply.github.com> Co-authored-by: Adam Ralph <adam@adamralph.com> Co-authored-by: Inbar <5904674+InbarRose@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1171) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1174) * Fix call to npm-groovy-lint (#1177) * Fix npm-groovy-lint call https://github.com/megalinter/megalinter/issues/1176 * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * lint fix * lint fix (2) * Make python linters play nice with each other (#1182) * Make Flake8 play nice with Black * Change black comment example * Make pylint play nice with Black * Make flake8 pass Co-authored-by: Sam Chorlton <> * Upgrade clj-kondo (#1181) * Bump cljkondo/clj-kondo from 2022.01.13-alpine to 2022.01.15-alpine Bumps cljkondo/clj-kondo from 2022.01.13-alpine to 2022.01.15-alpine. --- updated-dependencies: - dependency-name: cljkondo/clj-kondo dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * [automation] Auto-update linters version, help and documentation * upgrade clj-kondo Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix wrong status in reports when DISABLE_ERRORS is used (#1184) * Bump peter-evans/create-pull-request from 3.11.0 to 3.12.0 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3.11.0 to 3.12.0. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3.11.0...v3.12.0) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/setup-node from 2.4.1 to 2.5.1 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.4.1 to 2.5.1. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2.4.1...v2.5.1) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump shelljs from 0.8.4 to 0.8.5 in /mega-linter-runner Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5. - [Release notes](https://github.com/shelljs/shelljs/releases) - [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md) - [Commits](https://github.com/shelljs/shelljs/compare/v0.8.4...v0.8.5) --- updated-dependencies: - dependency-name: shelljs dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Fix wrong status in reports when DISABLE_ERRORS is used * [automation] Auto-update linters version, help and documentation * Fix wrong status in reports when DISABLE_ERRORS is used * Test cases fixes * fix test class * [MegaLinter] Apply linters fixes quick build * Fix test class quick build * Fix test class quick build * Update checkov & kics tests quick build Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * CHANGELOG * Release MegaLinter v5.6.0 * Fix v5 doc deployment (#1192) https://github.com/megalinter/megalinter/issues/1190 * Bump node-fetch from 2.6.6 to 2.6.7 in /mega-linter-runner (#1193) Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7. - [Release notes](https://github.com/node-fetch/node-fetch/releases) - [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md) - [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7) --- updated-dependencies: - dependency-name: node-fetch dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * QuickFix doc generation * QuickFix doc generation (2) * [automation] Auto-update linters version, help and documentation (#1194) * Gitlab comment reporter (#732) * Gitlab comment reporter * remove pip requests package downgrade * typo * lint fixes * Build * Build * Use CI_SERVER_URL * Use more constant variables * Retrofit upgrades from v5 * Alternative way to find merge request id * Update reporters * Debug traces * Fixes * fix log * Manage MEGALINTER_ACCESS_TOKEN quick build * Quick build push step quick build push * Update doc & var name quick build push * Remove development logs * Update doc * Update & build doc * Doc & build * CI job instead of CI Action * Lint fixes * [automation] Auto-update linters version, help and documentation (#1195) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * QuickFix Gitlab comments reporter quick build push Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Fix Gitlab comment reporter when MR not found (#1197) * QuickFix Gitlab Comments reporter for self-hosted instances * [automation] Auto-update linters version, help and documentation (#1198) * [automation] Auto-update linters version, help and documentation * QuickFix lint * [automation] Auto-update linters version, help and documentation (#1201) * [automation] Auto-update linters version, help and documentation * Fix sqlfluff bug * Add configuration file option for SQLFluff (#1200) * Add configuration file for SQLFluff * Correct config file name * Update megalinter/descriptors/sql.megalinter-descriptor.yml Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * Fix Github auth on Azure Pipelines (#1202) * Fix Github auth on Azure Pipelines Fix issue when using `VALIDATE_ALL_CODEBASE: false` on Azure Pipelines by defining auth header in CI env variable GIT_AUTHORIZATION_BEARER ([#1125](https://github.com/megalinter/megalinter/issues/1125)) * [MegaLinter] Apply linters fixes * Update doc for Azure Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Add compatibility for prettier (#1209) Co-authored-by: Sam Chorlton <> * [automation] Auto-update linters version, help and documentation (#1203) * [automation] Auto-update linters version, help and documentation * Remove downgrade of sqlfluff https://github.com/megalinter/megalinter/pull/1200 * Use .gitignore as .secretlintignore when necessary (#1210) * Use .gitignore as .secretlintignore when necessary * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Fix tflint initialization (#1204) * Fix tflint initialization Fix tflint initialization so it uses configuration file when defined ([#1134](https://github.com/megalinter/megalinter/issues/1134)) * changelog * Fix python lint errors * [automation] Auto-update linters version, help and documentation (#1211) * Undo rubocop downgrade (#1214) * Fix Gitlab comment reporter (#1215) * Fix Gitlab comment reporter * Update Gitlab documentation with gif tutorial * Lint fix * Improve linter perfs & logs (#1217) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * HTMLHint config to count errors + test method * Use list_of_files mode with htmlhint * changelog * ShellCheck: cli_lint_mode: list_of_files to improve perfs * shfmt ci_lint_mode: list_of_files + regex count quick build push * Update test case for markdown-link-check quick build push * test (TODO: remove after) * Fix lint error quick build push * cpplint: Display correct number of errors in logs quick build push * Count actionlint errors quick build push * Count errors perlcritic quick build push * Count chktex errors quick build push * Enhance test class error message quick build push * Let's not test TAP anymore * Update test case files quick build push * Fix perlcritic test case quick build push * Fix python test cases quick build push * Fix perlcritic regex count quick build push * Fix SF test cases quick build push * Fix shell test case quick build push * Bash exec doc * Fix doc Fixes https://github.com/megalinter/megalinter/issues/1212 * Fix salesforce config quick build push * Fix mypy test case quick build push * Update mypy ref url quick build push * Revert "test (TODO: remove after)" This reverts commit 2dfd39edd1666e85ed28373f36475df5c5c63ccf. * Build quick build * [MegaLinter] Apply linters fixes quick build Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Use apk to install shfmt * Downgrade snakemake * Downgrade snakemake (#1218) * Downgrade snakemake * Downgrade snakefmt * [automation] Auto-update linters version, help and documentation (#1219) * [automation] Auto-update linters version, help and documentation * Update GHA template * Change snakemake install method then Build * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1222) * Order changelog * Release MegaLinter v5.7.0 * Update .cspell default config (#1226) * Improve performances (#1227) * stylelint: list_of_files * standard: list_of_files * markdown-link-check: list_of_files * Upgrade link ref * [automation] Auto-update linters version, help and documentation (#1225) * [automation] Auto-update linters version, help and documentation (#1230) * Manage before_exit() & clean git repo (#1232) Fixes https://github.com/megalinter/megalinter/issues/1125 quick build push * [automation] Auto-update linters version, help and documentation (#1233) * [automation] Auto-update linters version, help and documentation (#1235) * [automation] Auto-update linters version, help and documentation (#1238) * Auto-upgrade pip + temporary disable snakemake + fix gitlab error message (#1236) * Auto-upgrade pip * Manage disable linter + disable snakefmt * Undowngrade snakemake + build * Fix upgrade pip & lint fix * Lint fix * [MegaLinter] Apply linters fixes * Fix build * [MegaLinter] Apply linters fixes * Fix gitlab token error labels * Disable snakemake test. Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1240) * Release MegaLinter v5.7.1 * Animated gif for assisted configuration * [automation] Auto-update linters version, help and documentation (#1241) * [automation] Auto-update linters version, help and documentation (#1242) * [automation] Auto-update linters version, help and documentation (#1243) * Fix GitlabCommentReporter raise unhandled exception if no merge request has been found (#1247) * [automation] Auto-update linters version, help and documentation (#1245) * Doc images (#1251) * Bump peter-evans/create-pull-request from 3.12.0 to 3.12.1 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3.12.0 to 3.12.1. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3.12.0...v3.12.1) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * cspell + sample ML users * animated gifs * Build. * changelog Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add publish artifact task in azure pipeline doc * [automation] Auto-update linters version, help and documentation (#1250) * [automation] Auto-update linters version, help and documentation * cspell * Manage Gitlab certificate (#1249) * Manage gitlab certificate * Build * Manage GITLAB_CUSTOM_CERTIFICATE quick build push * Fix python issue quick build push * Error msg doc * [MegaLinter] Apply linters fixes * Update config json schema quick build push Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Allow Eslint with config in package.json #1205 (#1206) * Allow Eslint with config in package.json #1205 * Allow to check prop existence in active_only_if_file_found * Lint fix Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1253) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Gitlab reporter doc * cspell * Avoid storing copies of files in layer for kubeval, shellcheck, and misspell (#1229) * Avoid storing copy in layer for kubeval, shellcheck, misspell The copies are removed in the layer by immediatly deleting the files in the same `RUN` command. The LICENSE files are kept. * Apply changes in descriptors to Dockerfiles * Improve call of ansible-lint (#1255) * Allow Eslint with config in package.json #1205 * Allow to check prop existence in active_only_if_file_found * Lint fix * Fix ansible-lint test cases quick build push * [MegaLinter] Apply linters fixes * Fix ansible test cases (2) * Fix ansible test cases (2) quick build push * Fix call to ansible-lint * Build * Install ansible-lint using pip * Update ansible-lint test cases * Count errors & update ansible-lint test cases * [MegaLinter] Apply linters fixes * Move .ansible-lint at the good location Co-authored-by: Vitalii Tverdokhlib <v@nitra.ai> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * changelog * [automation] Auto-update linters version, help and documentation (#1257) * Fix suggestion to use proper variable name (#1261) * Fix suggestion to use proper variable name * Update CHANGELOG.md * [automation] Auto-update linters version, help and documentation (#1260) * [automation] Auto-update linters version, help and documentation (#1263) * Update mkdocs.yml * [automation] Auto-update linters version, help and documentation (#1271) * [automation] Auto-update linters version, help and documentation (#1272) * [automation] Auto-update linters version, help and documentation * more users * Terrascan: cli_lint_mode = project (#1274) * Terrascan: cli_lint_mode = project * terrascan: config arg name & config file name * trivy * [automation] Auto-update linters version, help and documentation (#1273) * [automation] Auto-update linters version, help and documentation (#1278) * [automation] Auto-update linters version, help and documentation (#1280) * Release MegaLinter v5.8.0 * trivy * [automation] Auto-update linters version, help and documentation (#1284) * [automation] Auto-update linters version, help and documentation * trivy * Use latest npm version (#1276) * Use latest npm * Build * WORKDIR / * trivy * Generate JSON schema HTML doc when bash build.sh --doc is called (#1289) * Generate JSON schema HTML doc when bash build.sh --doc is called * changelog * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Upgrade clj-kondo to cljkondo/clj-kondo:2022.02.09-alpine (#1281) * more users * Upgrade clj-kondo to cljkondo/clj-kondo:2022.02.09-alpine * rubocop: remove `--force-exclusion` from auto-added parameters (#1290) Fixes https://github.com/megalinter/megalinter/issues/302 * New linter: kubeconform (#1285) * New linter: kubeconform * kubeconform: Fix launch cmd * kubeconform: fix spelling * kubeconform: fix error count * kubeconform: fix regex * kubeconfirm: adding bad files to test counts * Force rebuild * Rollback license update ! * Remove JSON schema HTML doc from build.py * Recommended extensions for MegaLinter contribution (#1291) * Bump actions/github-script from 5 to 6 Bumps [actions/github-script](https://github.com/actions/github-script) from 5 to 6. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Add recommended VsCode extensions for MegaLinter development Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1294) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * trivy Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1295) * [automation] Auto-update linters version, help and documentation * lint * Add shell script linters to ci_light flavor (#1299) * Add shell script linters to ci_light flavor Use-case: many of my Docker-related projects have glue shell scripts (e.g., `/entrypoint.sh`) that are added to images (e.g., `COPY entrypoint.sh /`) that are run when the image is run (e.g., `ENTRYPOINT ["/entrypoint.sh"]`) and I would like to have them scanned without having to pull down the full scanner. * Add sh linters to ci_light flavor + build Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1300) * [automation] Auto-update linters version, help and documentation (#1302) * [automation] Auto-update linters version, help and documentation (#1303) * Switch from jdk8 to jdk11 (#1309) * Terrascan init as pre-command (#1311) * [automation] Auto-update linters version, help and documentation * terrascan init as pre-command * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Reactivate snakefmt (#1312) * [automation] Auto-update linters version, help and documentation * [automation] Auto-update linters version, help and documentation (#1315) * [automation] Auto-update linters version, help and documentation (#1318) * [automation] Auto-update linters version, help and documentation (#1319) * [automation] Auto-update linters version, help and documentation (#1320) * [automation] Auto-update linters version, help and documentation (#1322) * [automation] Auto-update linters version, help and documentation (#1323) * [automation] Auto-update linters version, help and documentation (#1325) * [automation] Auto-update linters version, help and documentation (#1326) * [automation] Auto-update linters version, help and documentation * Users & fix * [automation] Auto-update linters version, help and documentation * [automation] Auto-update linters version, help and documentation (#1327) * [automation] Auto-update linters version, help and documentation (#1328) * [automation] Auto-update linters version, help and documentation (#1329) * Update SQLFluff default config with latest options (#1331) * Update SQLFluff default config for 0.11.0 * Sync with latest * [automation] Auto-update linters version, help and documentation (#1330) * [automation] Auto-update linters version, help and documentation (#1332) * [automation] Auto-update linters version, help and documentation (#1333) * [automation] Auto-update linters version, help and documentation * Fix ansible-lint test case * [automation] Auto-update linters version, help and documentation (#1335) * [automation] Auto-update linters version, help and documentation (#1336) * Upgrade hadolint (#1338) * Upgrade hadolint * hadolint config * [automation] Auto-update linters version, help and documentation (#1339) * Add article * Doc * doc * [automation] Auto-update linters version, help and documentation (#1342) * Release MegaLinter v5.10.0 * [automation] Auto-update linters version, help and documentation (#1343) * [automation] Auto-update linters version, help and documentation (#1344) * [automation] Auto-update linters version, help and documentation * cspell * [automation] Auto-update linters version, help and documentation (#1346) * [automation] Auto-update linters version, help and documentation (#1349) * [automation] Auto-update linters version, help and documentation * trivy * [automation] Auto-update linters version, help and documentation (#1351) * [automation] Auto-update linters version, help and documentation * Disable rstfmt * pylint * Github Comment Reporter: Use a html comment to mark the comment (#1356) This replaces the old method, which looked for the "see error details" link, but that link was not always present in comments. The comment records the current workflow and jobid, so multiple mega-linters can comment on the same PR without colliding. Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [MegaLinter] Apply linters fixes (#1357) quick build Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Display plugin url in MegaLinter output logs + quick fixes (#1358) * Display plugin url in MegaLinter output logs * [MegaLinter] Apply linters fixes * Add tflint-aws plugin installation to match new version of tflint * Fix glibc public key download * downgrade tflint * fix sgerrand url Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Improve the comment marker format (#1359) Instead of just joining the workflow name and jobid without spacing, encapsulate both in quotes and give them a `workflow=` and `jobid=` prefix to aid debugging. Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1362) * Doc: jenkins script to upload artifacts (#1363) * Doc: jenkins script to upload artifacts * changelog * [automation] Auto-update linters version, help and documentation (#1366) * Bump minimist from 1.2.5 to 1.2.6 in /mega-linter-runner Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. - [Release notes](https://github.com/substack/minimist/releases) - [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6) --- updated-dependencies: - dependency-name: minimist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * [automation] Auto-update linters version, help and documentation * fix mypy test case * [automation] Auto-update linters version, help and documentation Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Upgrade hadolint (#1370) * Bump hadolint/hadolint from v2.9.1-alpine to v2.9.3-alpine Bumps hadolint/hadolint from v2.9.1-alpine to v2.9.3-alpine. --- updated-dependencies: - dependency-name: hadolint/hadolint dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade hadolint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * markdown-links-check: allow 203 as valid return code (#1369) * [automation] Auto-update linters version, help and documentation (#1371) * [automation] Auto-update linters version, help and documentation (#1375) * User stats (#1377) * [automation] Auto-update linters version, help and documentation * Disable rstfmt * Order MegaLinter users * pylint * Updated github users * All users page generation * Articles section * build doc * More users * More users * cspell config * [automation] Auto-update linters version, help and documentation (#1381) * Update doc * [automation] Auto-update linters version, help and documentation (#1382) * [automation] Auto-update linters version, help and documentation (#1384) * Fix `no override and no default toolchain set` when lint rust with clippy via github-action (#1385) FIX #975 * [automation] Auto-update linters version, help and documentation (#1387) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1388) * Manage dependencies & upgrade clj-kondo & hadolint (#1396) * Bump actions/setup-python from 2 to 3.1.1 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.1.1. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v2...v3.1.1) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/upload-artifact from 2 to 3 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump cljkondo/clj-kondo from 2022.02.09-alpine to 2022.04.08-alpine Bumps cljkondo/clj-kondo from 2022.02.09-alpine to 2022.04.08-alpine. --- updated-dependencies: - dependency-name: cljkondo/clj-kondo dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/checkout from 2.4.0 to 3.0.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3.0.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/stale from 4 to 5 Bumps [actions/stale](https://github.com/actions/stale) from 4 to 5. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * [automation] Auto-update linters version, help and documentation * Upgrade clj-kondo and hadolint, + fix sqlfluff test case * Fix clj-kondo test case for new version Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1391) * [automation] Auto-update linters version, help and documentation (#1400) * create cspell report dirs if required (#1399) * fix(cspell): Create config dirs if missing If a cspell config is located in some directory we need to create the same tree under the `report` dir * docs(CHANGELOG): added fix note Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1401) * Release MegaLinter v5.11.0 * [automation] Auto-update linters version, help and documentation (#1405) * Manage FAIL_IF_UPDATED_SOURCES option (#1410) * Bump actions/setup-python from 3.1.1 to 3.1.2 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v3.1.1...v3.1.2) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Manage FAIL_IF_UPDATED_SOURCES option * [MegaLinter] Apply linters fixes * Bump actions/checkout from 3.0.0 to 3.0.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.0.0...v3.0.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fix git issue Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * QuickFix * Try fix Git CVE issue for own linting (#1415) * Try fix Git CVE issue * Try again fix git issue * Fix CI * Allow git generic safe directory As we are supposed to trust the machine and repo we use MegaLinter on * Dynamic add git safe.directory (#1417) * Dynamic add git safe.directory quick build * Test auto-update too * [automation] Auto-update linters version, help and documentation * Quickfix json schema FAIL_IF_UPDATED_SOURCES * Upgrade multiple dependencies (#1419) * Bump pascalgn/automerge-action from 0.14.3 to 0.15.2 Bumps [pascalgn/automerge-action](https://github.com/pascalgn/automerge-action) from 0.14.3 to 0.15.2. - [Release notes](https://github.com/pascalgn/automerge-action/releases) - [Commits](https://github.com/pascalgn/automerge-action/compare/v0.14.3...v0.15.2) --- updated-dependencies: - dependency-name: pascalgn/automerge-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump peter-evans/create-pull-request from 3 to 4.0.1 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4.0.1. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3...v4.0.1) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump terraform-linters/tflint from v0.34.1 to v0.35.0 Bumps terraform-linters/tflint from v0.34.1 to v0.35.0. --- updated-dependencies: - dependency-name: terraform-linters/tflint dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/setup-node from 2.5.1 to 3.1.1 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.5.1 to 3.1.1. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2.5.1...v3.1.1) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * upgrade tflint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1424) * [automation] Auto-update linters version, help and documentation (#1429) * [automation] Auto-update linters version, help and documentation * Update .trivyignore * [automation] Auto-update linters version, help and documentation (#1431) * [automation] Auto-update linters version, help and documentation (#1432) * Release MegaLinter v5.12.0 * Fixes * fixes * git safe.directory in ox called SH * test cases * Fix JS * Fixes Co-authored-by: Laurent Laville <laurent.laville@gmail.com> Co-authored-by: John Practicalli <250870+practicalli-john@users.noreply.github.com> Co-authored-by: Adam Ralph <adam@adamralph.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> Co-authored-by: Inbar <5904674+InbarRose@users.noreply.github.com> Co-authored-by: Sam Chorlton <10245822+schorlton@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Barry Pollard <barry_pollard@hotmail.com> Co-authored-by: IM <91187869+1vm0@users.noreply.github.com> Co-authored-by: Vitalii Tverdokhlib <v@nitra.ai> Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com> Co-authored-by: Benoît Bleuzé <benoit.bleuze@gmail.com> Co-authored-by: Yann Jouanique <yann.jouanique@oneacrefund.org> Co-authored-by: Wes Dean <wesley-dean@users.noreply.github.com> Co-authored-by: Martijn Pieters <github.com@zopatista.com> Co-authored-by: Martijn Pieters <mj@zopatista.com> Co-authored-by: David Bernard <davidB@users.noreply.github.com> Co-authored-by: Andrew Sheridan <38504307+andrewasheridan@users.noreply.github.com>
* Fix Gitlab comment reporter when MR not found (#1197) * QuickFix Gitlab Comments reporter for self-hosted instances * [automation] Auto-update linters version, help and documentation (#1198) * [automation] Auto-update linters version, help and documentation * QuickFix lint * [automation] Auto-update linters version, help and documentation (#1201) * [automation] Auto-update linters version, help and documentation * Fix sqlfluff bug * Add configuration file option for SQLFluff (#1200) * Add configuration file for SQLFluff * Correct config file name * Update megalinter/descriptors/sql.megalinter-descriptor.yml Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * Fix Github auth on Azure Pipelines (#1202) * Fix Github auth on Azure Pipelines Fix issue when using `VALIDATE_ALL_CODEBASE: false` on Azure Pipelines by defining auth header in CI env variable GIT_AUTHORIZATION_BEARER ([#1125](#1125)) * [MegaLinter] Apply linters fixes * Update doc for Azure Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Add compatibility for prettier (#1209) Co-authored-by: Sam Chorlton <> * [automation] Auto-update linters version, help and documentation (#1203) * [automation] Auto-update linters version, help and documentation * Remove downgrade of sqlfluff #1200 * Use .gitignore as .secretlintignore when necessary (#1210) * Use .gitignore as .secretlintignore when necessary * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Fix tflint initialization (#1204) * Fix tflint initialization Fix tflint initialization so it uses configuration file when defined ([#1134](#1134)) * changelog * Fix python lint errors * [automation] Auto-update linters version, help and documentation (#1211) * Undo rubocop downgrade (#1214) * Fix Gitlab comment reporter (#1215) * Fix Gitlab comment reporter * Update Gitlab documentation with gif tutorial * Lint fix * Improve linter perfs & logs (#1217) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * HTMLHint config to count errors + test method * Use list_of_files mode with htmlhint * changelog * ShellCheck: cli_lint_mode: list_of_files to improve perfs * shfmt ci_lint_mode: list_of_files + regex count quick build push * Update test case for markdown-link-check quick build push * test (TODO: remove after) * Fix lint error quick build push * cpplint: Display correct number of errors in logs quick build push * Count actionlint errors quick build push * Count errors perlcritic quick build push * Count chktex errors quick build push * Enhance test class error message quick build push * Let's not test TAP anymore * Update test case files quick build push * Fix perlcritic test case quick build push * Fix python test cases quick build push * Fix perlcritic regex count quick build push * Fix SF test cases quick build push * Fix shell test case quick build push * Bash exec doc * Fix doc Fixes #1212 * Fix salesforce config quick build push * Fix mypy test case quick build push * Update mypy ref url quick build push * Revert "test (TODO: remove after)" This reverts commit 2dfd39e. * Build quick build * [MegaLinter] Apply linters fixes quick build Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Use apk to install shfmt * Downgrade snakemake * Downgrade snakemake (#1218) * Downgrade snakemake * Downgrade snakefmt * [automation] Auto-update linters version, help and documentation (#1219) * [automation] Auto-update linters version, help and documentation * Update GHA template * Change snakemake install method then Build * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1222) * Order changelog * Release MegaLinter v5.7.0 * Update .cspell default config (#1226) * Improve performances (#1227) * stylelint: list_of_files * standard: list_of_files * markdown-link-check: list_of_files * Upgrade link ref * [automation] Auto-update linters version, help and documentation (#1225) * [automation] Auto-update linters version, help and documentation (#1230) * Manage before_exit() & clean git repo (#1232) Fixes #1125 quick build push * [automation] Auto-update linters version, help and documentation (#1233) * [automation] Auto-update linters version, help and documentation (#1235) * [automation] Auto-update linters version, help and documentation (#1238) * Auto-upgrade pip + temporary disable snakemake + fix gitlab error message (#1236) * Auto-upgrade pip * Manage disable linter + disable snakefmt * Undowngrade snakemake + build * Fix upgrade pip & lint fix * Lint fix * [MegaLinter] Apply linters fixes * Fix build * [MegaLinter] Apply linters fixes * Fix gitlab token error labels * Disable snakemake test. Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1240) * Release MegaLinter v5.7.1 * Animated gif for assisted configuration * [automation] Auto-update linters version, help and documentation (#1241) * [automation] Auto-update linters version, help and documentation (#1242) * [automation] Auto-update linters version, help and documentation (#1243) * Fix GitlabCommentReporter raise unhandled exception if no merge request has been found (#1247) * [automation] Auto-update linters version, help and documentation (#1245) * Doc images (#1251) * Bump peter-evans/create-pull-request from 3.12.0 to 3.12.1 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3.12.0 to 3.12.1. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](peter-evans/create-pull-request@v3.12.0...v3.12.1) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * cspell + sample ML users * animated gifs * Build. * changelog Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add publish artifact task in azure pipeline doc * [automation] Auto-update linters version, help and documentation (#1250) * [automation] Auto-update linters version, help and documentation * cspell * Manage Gitlab certificate (#1249) * Manage gitlab certificate * Build * Manage GITLAB_CUSTOM_CERTIFICATE quick build push * Fix python issue quick build push * Error msg doc * [MegaLinter] Apply linters fixes * Update config json schema quick build push Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Allow Eslint with config in package.json #1205 (#1206) * Allow Eslint with config in package.json #1205 * Allow to check prop existence in active_only_if_file_found * Lint fix Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1253) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Gitlab reporter doc * cspell * Avoid storing copies of files in layer for kubeval, shellcheck, and misspell (#1229) * Avoid storing copy in layer for kubeval, shellcheck, misspell The copies are removed in the layer by immediatly deleting the files in the same `RUN` command. The LICENSE files are kept. * Apply changes in descriptors to Dockerfiles * Improve call of ansible-lint (#1255) * Allow Eslint with config in package.json #1205 * Allow to check prop existence in active_only_if_file_found * Lint fix * Fix ansible-lint test cases quick build push * [MegaLinter] Apply linters fixes * Fix ansible test cases (2) * Fix ansible test cases (2) quick build push * Fix call to ansible-lint * Build * Install ansible-lint using pip * Update ansible-lint test cases * Count errors & update ansible-lint test cases * [MegaLinter] Apply linters fixes * Move .ansible-lint at the good location Co-authored-by: Vitalii Tverdokhlib <v@nitra.ai> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * changelog * [automation] Auto-update linters version, help and documentation (#1257) * Fix suggestion to use proper variable name (#1261) * Fix suggestion to use proper variable name * Update CHANGELOG.md * [automation] Auto-update linters version, help and documentation (#1260) * [automation] Auto-update linters version, help and documentation (#1263) * Update mkdocs.yml * [automation] Auto-update linters version, help and documentation (#1271) * [automation] Auto-update linters version, help and documentation (#1272) * [automation] Auto-update linters version, help and documentation * more users * Terrascan: cli_lint_mode = project (#1274) * Terrascan: cli_lint_mode = project * terrascan: config arg name & config file name * trivy * [automation] Auto-update linters version, help and documentation (#1273) * [automation] Auto-update linters version, help and documentation (#1278) * [automation] Auto-update linters version, help and documentation (#1280) * Release MegaLinter v5.8.0 * trivy * [automation] Auto-update linters version, help and documentation (#1284) * [automation] Auto-update linters version, help and documentation * trivy * Use latest npm version (#1276) * Use latest npm * Build * WORKDIR / * trivy * Generate JSON schema HTML doc when bash build.sh --doc is called (#1289) * Generate JSON schema HTML doc when bash build.sh --doc is called * changelog * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Upgrade clj-kondo to cljkondo/clj-kondo:2022.02.09-alpine (#1281) * more users * Upgrade clj-kondo to cljkondo/clj-kondo:2022.02.09-alpine * rubocop: remove `--force-exclusion` from auto-added parameters (#1290) Fixes #302 * New linter: kubeconform (#1285) * New linter: kubeconform * kubeconform: Fix launch cmd * kubeconform: fix spelling * kubeconform: fix error count * kubeconform: fix regex * kubeconfirm: adding bad files to test counts * Force rebuild * Rollback license update ! * Remove JSON schema HTML doc from build.py * Recommended extensions for MegaLinter contribution (#1291) * Bump actions/github-script from 5 to 6 Bumps [actions/github-script](https://github.com/actions/github-script) from 5 to 6. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](actions/github-script@v5...v6) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Add recommended VsCode extensions for MegaLinter development Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1294) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * trivy Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1295) * [automation] Auto-update linters version, help and documentation * lint * Add shell script linters to ci_light flavor (#1299) * Add shell script linters to ci_light flavor Use-case: many of my Docker-related projects have glue shell scripts (e.g., `/entrypoint.sh`) that are added to images (e.g., `COPY entrypoint.sh /`) that are run when the image is run (e.g., `ENTRYPOINT ["/entrypoint.sh"]`) and I would like to have them scanned without having to pull down the full scanner. * Add sh linters to ci_light flavor + build Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1300) * [automation] Auto-update linters version, help and documentation (#1302) * [automation] Auto-update linters version, help and documentation (#1303) * Switch from jdk8 to jdk11 (#1309) * Terrascan init as pre-command (#1311) * [automation] Auto-update linters version, help and documentation * terrascan init as pre-command * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Reactivate snakefmt (#1312) * [automation] Auto-update linters version, help and documentation * [automation] Auto-update linters version, help and documentation (#1315) * [automation] Auto-update linters version, help and documentation (#1318) * [automation] Auto-update linters version, help and documentation (#1319) * [automation] Auto-update linters version, help and documentation (#1320) * [automation] Auto-update linters version, help and documentation (#1322) * [automation] Auto-update linters version, help and documentation (#1323) * [automation] Auto-update linters version, help and documentation (#1325) * [automation] Auto-update linters version, help and documentation (#1326) * [automation] Auto-update linters version, help and documentation * Users & fix * [automation] Auto-update linters version, help and documentation * [automation] Auto-update linters version, help and documentation (#1327) * [automation] Auto-update linters version, help and documentation (#1328) * [automation] Auto-update linters version, help and documentation (#1329) * Update SQLFluff default config with latest options (#1331) * Update SQLFluff default config for 0.11.0 * Sync with latest * [automation] Auto-update linters version, help and documentation (#1330) * [automation] Auto-update linters version, help and documentation (#1332) * [automation] Auto-update linters version, help and documentation (#1333) * [automation] Auto-update linters version, help and documentation * Fix ansible-lint test case * [automation] Auto-update linters version, help and documentation (#1335) * [automation] Auto-update linters version, help and documentation (#1336) * Upgrade hadolint (#1338) * Upgrade hadolint * hadolint config * [automation] Auto-update linters version, help and documentation (#1339) * Add article * Doc * doc * [automation] Auto-update linters version, help and documentation (#1342) * Release MegaLinter v5.10.0 * [automation] Auto-update linters version, help and documentation (#1343) * [automation] Auto-update linters version, help and documentation (#1344) * [automation] Auto-update linters version, help and documentation * cspell * [automation] Auto-update linters version, help and documentation (#1346) * [automation] Auto-update linters version, help and documentation (#1349) * [automation] Auto-update linters version, help and documentation * trivy * [automation] Auto-update linters version, help and documentation (#1351) * [automation] Auto-update linters version, help and documentation * Disable rstfmt * pylint * Github Comment Reporter: Use a html comment to mark the comment (#1356) This replaces the old method, which looked for the "see error details" link, but that link was not always present in comments. The comment records the current workflow and jobid, so multiple mega-linters can comment on the same PR without colliding. Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [MegaLinter] Apply linters fixes (#1357) quick build Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Display plugin url in MegaLinter output logs + quick fixes (#1358) * Display plugin url in MegaLinter output logs * [MegaLinter] Apply linters fixes * Add tflint-aws plugin installation to match new version of tflint * Fix glibc public key download * downgrade tflint * fix sgerrand url Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Improve the comment marker format (#1359) Instead of just joining the workflow name and jobid without spacing, encapsulate both in quotes and give them a `workflow=` and `jobid=` prefix to aid debugging. Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1362) * Doc: jenkins script to upload artifacts (#1363) * Doc: jenkins script to upload artifacts * changelog * [automation] Auto-update linters version, help and documentation (#1366) * Bump minimist from 1.2.5 to 1.2.6 in /mega-linter-runner Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. - [Release notes](https://github.com/substack/minimist/releases) - [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6) --- updated-dependencies: - dependency-name: minimist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * [automation] Auto-update linters version, help and documentation * fix mypy test case * [automation] Auto-update linters version, help and documentation Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Upgrade hadolint (#1370) * Bump hadolint/hadolint from v2.9.1-alpine to v2.9.3-alpine Bumps hadolint/hadolint from v2.9.1-alpine to v2.9.3-alpine. --- updated-dependencies: - dependency-name: hadolint/hadolint dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade hadolint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * markdown-links-check: allow 203 as valid return code (#1369) * [automation] Auto-update linters version, help and documentation (#1371) * [automation] Auto-update linters version, help and documentation (#1375) * User stats (#1377) * [automation] Auto-update linters version, help and documentation * Disable rstfmt * Order MegaLinter users * pylint * Updated github users * All users page generation * Articles section * build doc * More users * More users * cspell config * [automation] Auto-update linters version, help and documentation (#1381) * Update doc * [automation] Auto-update linters version, help and documentation (#1382) * [automation] Auto-update linters version, help and documentation (#1384) * Fix `no override and no default toolchain set` when lint rust with clippy via github-action (#1385) FIX #975 * [automation] Auto-update linters version, help and documentation (#1387) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1388) * Manage dependencies & upgrade clj-kondo & hadolint (#1396) * Bump actions/setup-python from 2 to 3.1.1 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.1.1. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v2...v3.1.1) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/upload-artifact from 2 to 3 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump cljkondo/clj-kondo from 2022.02.09-alpine to 2022.04.08-alpine Bumps cljkondo/clj-kondo from 2022.02.09-alpine to 2022.04.08-alpine. --- updated-dependencies: - dependency-name: cljkondo/clj-kondo dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/checkout from 2.4.0 to 3.0.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v2.4.0...v3.0.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/stale from 4 to 5 Bumps [actions/stale](https://github.com/actions/stale) from 4 to 5. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](actions/stale@v4...v5) --- updated-dependencies: - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * [automation] Auto-update linters version, help and documentation * Upgrade clj-kondo and hadolint, + fix sqlfluff test case * Fix clj-kondo test case for new version Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1391) * [automation] Auto-update linters version, help and documentation (#1400) * create cspell report dirs if required (#1399) * fix(cspell): Create config dirs if missing If a cspell config is located in some directory we need to create the same tree under the `report` dir * docs(CHANGELOG): added fix note Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1401) * Release MegaLinter v5.11.0 * [automation] Auto-update linters version, help and documentation (#1405) * Manage FAIL_IF_UPDATED_SOURCES option (#1410) * Bump actions/setup-python from 3.1.1 to 3.1.2 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v3.1.1...v3.1.2) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Manage FAIL_IF_UPDATED_SOURCES option * [MegaLinter] Apply linters fixes * Bump actions/checkout from 3.0.0 to 3.0.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3.0.0...v3.0.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fix git issue Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * QuickFix * Try fix Git CVE issue for own linting (#1415) * Try fix Git CVE issue * Try again fix git issue * Fix CI * Allow git generic safe directory As we are supposed to trust the machine and repo we use MegaLinter on * Dynamic add git safe.directory (#1417) * Dynamic add git safe.directory quick build * Test auto-update too * [automation] Auto-update linters version, help and documentation * Quickfix json schema FAIL_IF_UPDATED_SOURCES * Upgrade multiple dependencies (#1419) * Bump pascalgn/automerge-action from 0.14.3 to 0.15.2 Bumps [pascalgn/automerge-action](https://github.com/pascalgn/automerge-action) from 0.14.3 to 0.15.2. - [Release notes](https://github.com/pascalgn/automerge-action/releases) - [Commits](pascalgn/automerge-action@v0.14.3...v0.15.2) --- updated-dependencies: - dependency-name: pascalgn/automerge-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump peter-evans/create-pull-request from 3 to 4.0.1 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4.0.1. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](peter-evans/create-pull-request@v3...v4.0.1) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump terraform-linters/tflint from v0.34.1 to v0.35.0 Bumps terraform-linters/tflint from v0.34.1 to v0.35.0. --- updated-dependencies: - dependency-name: terraform-linters/tflint dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Bump actions/setup-node from 2.5.1 to 3.1.1 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.5.1 to 3.1.1. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v2.5.1...v3.1.1) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * upgrade tflint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1424) * [automation] Auto-update linters version, help and documentation (#1429) * [automation] Auto-update linters version, help and documentation * Update .trivyignore * [automation] Auto-update linters version, help and documentation (#1431) * [automation] Auto-update linters version, help and documentation (#1432) * Release MegaLinter v5.12.0 * [automation] Auto-update linters version, help and documentation (#1434) * Add gherkin-lint in dotnet flavor (#1436) * [automation] Auto-update linters version, help and documentation (#1437) * [automation] Auto-update linters version, help and documentation (#1442) * Define pre-commit hooks. (#1438) * Make minor grammatical corrections to README. * Define pre-commit hooks. The pre-commit framework allows users to run MegaLinter locally as a Git pre-commit hook. While it does have built-in support for Node.js hooks, it doesn't support monorepos, because the package.json must be in the root directory. While it does have built-in support for Docker hooks, the user experience of overriding arguments to mega-linter-runner is nicer than that for the Docker image. Hence, hand-roll system hooks instead, and leverage npx to execute (and, if necessary, download) mega-linter-runner. * [automation] Auto-update linters version, help and documentation (#1443) * [automation] Auto-update linters version, help and documentation (#1444) * [automation] Auto-update linters version, help and documentation (#1448) * [automation] Auto-update linters version, help and documentation (#1449) * [automation] Auto-update linters version, help and documentation (#1450) * [automation] Auto-update linters version, help and documentation * Upgrade clj-kondo * [automation] Auto-update linters version, help and documentation (#1451) * [automation] Auto-update linters version, help and documentation (#1452) * [automation] Auto-update linters version, help and documentation (#1453) * [automation] Auto-update linters version, help and documentation (#1454) * [automation] Auto-update linters version, help and documentation (#1455) * Typo in doc (#1457) * [automation] Auto-update linters version, help and documentation (#1456) * [automation] Auto-update linters version, help and documentation (#1459) * [automation] Auto-update linters version, help and documentation (#1463) * [automation] Auto-update linters version, help and documentation * Update GraphQL installation commands * [automation] Auto-update linters version, help and documentation (#1464) * Update sqlfluff descriptor to enable error count (#1462) * Adding regex to sqlfluff descriptor to enable proper error count * Fixing broken escape character * Update sql.megalinter-descriptor.yml * Add a second bad test case to verify count regex Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1465) * [automation] Auto-update linters version, help and documentation (#1466) * Pin ansible-lint to 6.0.2 (#1471) * Fix typo in bash-exec description * Pin ansible-lint to 6.0.2 (#1470) ansible-lint 6.1.0 adds a dependency on jsonschema==4.5.1, which conflicts with cfn-lint's pre-existing dependency on jsonschema~=3.0. Also remove extras community and yamllint since they are no longer provided by ansible-lint. * [automation] Auto-update linters version, help and documentation (#1467) * Add nitpick plugin (#1476) * Add nitpick plugin * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Add users * Use go installer for editorconfig-checker (#1475) * Use go installer for editorconfig-checker * Fix install * remove @latest * go get * Use docker image * [automation] Auto-update linters version, help and documentation (#1477) * [automation] Auto-update linters version, help and documentation (#1478) * Release MegaLinter v5.13.0 * [automation] Auto-update linters version, help and documentation (#1481) * [automation] Auto-update linters version, help and documentation (#1483) * [automation] Auto-update linters version, help and documentation (#1486) * [automation] Auto-update linters version, help and documentation (#1487) * [automation] Auto-update linters version, help and documentation (#1488) * [automation] Auto-update linters version, help and documentation (#1490) * [automation] Auto-update linters version, help and documentation (#1491) * [automation] Auto-update linters version, help and documentation (#1492) * [automation] Auto-update linters version, help and documentation (#1495) * [automation] Auto-update linters version, help and documentation (#1496) * [automation] Auto-update linters version, help and documentation (#1498) * [automation] Auto-update linters version, help and documentation (#1501) * [automation] Auto-update linters version, help and documentation (#1503) * [automation] Auto-update linters version, help and documentation (#1504) * [automation] Auto-update linters version, help and documentation (#1505) * [automation] Auto-update linters version, help and documentation (#1509) * update toc (#1511) * [automation] Auto-update linters version, help and documentation (#1510) * [automation] Auto-update linters version, help and documentation * Update rstcheck help argument * [Docs] update urls about R lintr (#1512) * update urls about lintr * Build (updates must be performed only in YML descriptor, the rest is generated automatically) Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1518) * [automation] Auto-update linters version, help and documentation (#1519) * [automation] Auto-update linters version, help and documentation (#1520) * [automation] Auto-update linters version, help and documentation (#1521) * [automation] Auto-update linters version, help and documentation (#1522) * Local plugin support/documentation (#1508) * Local plugin support/documentation * Fixed linting error, added test * Added tests, refactored file access * Do not break README markdown indentation * jscpd * Fixed testing framework * linting Co-authored-by: Jack Heuberger <t-jheuberger@microsoft.com> Co-authored-by: nvuillam <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1523) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Release MegaLinter v5.14.0 * Build * Build doc * Linter version within docker variable STANDALONE_LINTER_VERSION * [automation] Auto-update linters version, help and documentation (#1524) * [automation] Auto-update linters version, help and documentation (#1528) * [automation] Auto-update linters version, help and documentation (#1530) * [automation] Auto-update linters version, help and documentation (#1532) * [automation] Auto-update linters version, help and documentation (#1533) * [automation] Auto-update linters version, help and documentation (#1536) * [automation] Auto-update linters version, help and documentation * Fix kotlin test cases * [automation] Auto-update linters version, help and documentation (#1537) * [automation] Auto-update linters version, help and documentation (#1543) * Ox branding (#1547) * Ox branding * resize * REsize * More updates about branding * archi slide * Update index * More variables in README to arrange ox website * Ready ? :) * Hide home * Fixes * cspell * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * QuickFix branding * QuickFix branding * Update logo size * Release MegaLinter v5.15.0 * Release MegaLinter v5.15.0 * [automation] Auto-update linters version, help and documentation (#1546) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1551) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes * Quick design update * QuickFix Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * [automation] Auto-update linters version, help and documentation (#1552) * [automation] Auto-update linters version, help and documentation (#1554) * [automation] Auto-update linters version, help and documentation * Update deploy-DEV.yml * Update .trivyignore * Allow naming of `megalinter` docker container (#1558) * added support for named docker container * Update .cspell.json Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * [automation] Auto-update linters version, help and documentation (#1559) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * Add last commit badges (#1565) * Add last commit badges * Add last commit badges * Remove print * Add last commit badges (#1566) * Add last commit badges * Add last commit badges * Remove print * Fix lint errors * WIP * Fix linter version error * [automation] Auto-update linters version, help and documentation (#1564) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> * fixed a bug that caused `--containername` to not work (#1561) Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com> * Release MegaLinter v5.16.0 * Build doc * ML fixes * Update CI config * mega-linter-runner installer and upgrader applicable to V6 * Parallelize test cases quick build * Disable gitleaks quick build * Remove parallel pytest + increase timeout * Fix linter test cases Co-authored-by: Barry Pollard <barry_pollard@hotmail.com> Co-authored-by: nvuillam <nvuillam@users.noreply.github.com> Co-authored-by: Sam Chorlton <10245822+schorlton@users.noreply.github.com> Co-authored-by: IM <91187869+1vm0@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vitalii Tverdokhlib <v@nitra.ai> Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com> Co-authored-by: Benoît Bleuzé <benoit.bleuze@gmail.com> Co-authored-by: Yann Jouanique <yann.jouanique@oneacrefund.org> Co-authored-by: Wes Dean <wesley-dean@users.noreply.github.com> Co-authored-by: Martijn Pieters <github.com@zopatista.com> Co-authored-by: Martijn Pieters <mj@zopatista.com> Co-authored-by: David Bernard <davidB@users.noreply.github.com> Co-authored-by: Andrew Sheridan <38504307+andrewasheridan@users.noreply.github.com> Co-authored-by: Kurt von Laven <Kurt-von-Laven@users.noreply.github.com> Co-authored-by: nv35 <76777923+nv35@users.noreply.github.com> Co-authored-by: Tom Stark <56162721+tdstark@users.noreply.github.com> Co-authored-by: eitsupi <50911393+eitsupi@users.noreply.github.com> Co-authored-by: jackheuberger <7830838+jackheuberger@users.noreply.github.com> Co-authored-by: Jack Heuberger <t-jheuberger@microsoft.com> Co-authored-by: Dmitri Trofimov <46350232+dmitri-trofimov@users.noreply.github.com> Co-authored-by: bdovaz <iam.n3uro@gmail.com> Co-authored-by: bdovaz <borja.dominguez@hotmail.com>
Describe the bug
mega-linter-runner claims a ruby file that goes against my configuration is OK. When I push up the bad change the Github Action seems to catch the issue with no problems.
To Reproduce
Steps to reproduce the behavior:
p 'hello world!'
mega-linter-runner
or in my case I usually domega-linter-runner -e 'SHOW_ELAPSED_TIME=true' -e 'LINTER_RULES_PATH=https://raw.githubusercontent.com/joe-sharp/linter-configs/main'
(I tried both)rubocop -c .ruby-lint.yml test.rb
Expected behavior
Locally the same rubocop rules should apply to mega-linter-runner as they do the Github Action (assuming the same config is provided.)
Screenshots
and with just a local config:
Additional context
Here is the draft PR I created to ensure my rules worked at all:
https://github.com/joe-sharp/linter-configs/pull/11/checks?check_run_id=1767368673
The text was updated successfully, but these errors were encountered: