Skip to content

Commit

Permalink
Enhance MegaLinter config + Check for changes CI job error management (
Browse files Browse the repository at this point in the history
…#340)

* Enhance MegaLinter config

* changelog & build

* trivyignore

* CI: Upload expected sources as artifact if Check for changes job fails

* fix

---------

Co-authored-by: Nicolas Vuillamy <[email protected]>
  • Loading branch information
nvuillam and nvuillam authored Dec 16, 2023
1 parent e232716 commit 1ed8853
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,14 @@ jobs:
npm run dev:pre-commit
git --no-pager diff
[[ 0 -eq $(git status --porcelain | wc -l) ]]
# Upload Mega-Linter artifacts
- name: Archive production artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: Expected sources
path: |
docs/
groovy/
lib/
2 changes: 1 addition & 1 deletion .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

# Upload Mega-Linter artifacts
- name: Archive production artifacts
if: ${{ success() }} || ${{ failure() }}
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: Mega-Linter reports
Expand Down
4 changes: 1 addition & 3 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ FILTER_REGEX_EXCLUDE: (lib/example|\.github|\.vscode|pull_request_template|docs/
DISABLE:
- COPYPASTE
- CSS
JAVASCRIPT_DEFAULT_STYLE: prettier
DISABLE_LINTERS:
- JAVASCRIPT_STANDARD
- REPOSITORY_TRIVY
- SPELL_PROSELINT
DISABLE_ERRORS_LINTERS:
- REPOSITORY_SEMGREP
FLAVOR_SUGGESTIONS: false
JAVASCRIPT_ES_FILE_NAME: "LINTER_DEFAULT"
PRINT_ALL_FILES: false
GITHUB_STATUS_REPORTER: false
PRE_COMMANDS:
- continue_if_failed: false
Expand Down
2 changes: 2 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DS002
DS026
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

## UNRELEASED

- Add your updates here :)

## [14.0.0] 2023-12-16

- Fix data race on stdout capture which was corrupting the responses for overlapping requests by using a capturing plugin.
- Fix data race on threads read and write which could result in missed cancellations and re-enable cancellation processing.
- Ensure that threads are always removed in the case of write response exception.
- Switch to jackson to enable efficient JSON encoding and decoding including raw embedding of CodeNarc result to avoid unnecessary processing.
- Split out HTTP filters to their own files.
- Use typed variables instead of def per linter recommendation.
- Add early test for missing base directory to avoid running linter unnecessarily.
- Fix parse failures for files which contain classes that only non-zero argument constructors.
- Add gzip compression to reduce size of network traffic to improve performance
- CI: Enhance MegaLinter config
- CI: Upload expected sources as artifact if Check for changes job fails

## [13.0.2] 2023-12-07

- Remove useless console.log in sources.
Expand Down
16 changes: 16 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

## UNRELEASED

- Add your updates here :)

## [14.0.0] 2023-12-16

- Fix data race on stdout capture which was corrupting the responses for overlapping requests by using a capturing plugin.
- Fix data race on threads read and write which could result in missed cancellations and re-enable cancellation processing.
- Ensure that threads are always removed in the case of write response exception.
- Switch to jackson to enable efficient JSON encoding and decoding including raw embedding of CodeNarc result to avoid unnecessary processing.
- Split out HTTP filters to their own files.
- Use typed variables instead of def per linter recommendation.
- Add early test for missing base directory to avoid running linter unnecessarily.
- Fix parse failures for files which contain classes that only non-zero argument constructors.
- Add gzip compression to reduce size of network traffic to improve performance
- CI: Enhance MegaLinter config
- CI: Upload expected sources as artifact if Check for changes job fails

## [13.0.2] 2023-12-07

- Remove useless console.log in sources.
Expand Down

0 comments on commit 1ed8853

Please sign in to comment.