Skip to content

Commit 1ed8853

Browse files
authored
Enhance MegaLinter config + Check for changes CI job error management (#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 <nicolas.vuillamy@cloudity.com>
1 parent e232716 commit 1ed8853

File tree

6 files changed

+47
-4
lines changed

6 files changed

+47
-4
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,14 @@ jobs:
4040
npm run dev:pre-commit
4141
git --no-pager diff
4242
[[ 0 -eq $(git status --porcelain | wc -l) ]]
43+
44+
# Upload Mega-Linter artifacts
45+
- name: Archive production artifacts
46+
if: failure()
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: Expected sources
50+
path: |
51+
docs/
52+
groovy/
53+
lib/

.github/workflows/mega-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
# Upload Mega-Linter artifacts
5757
- name: Archive production artifacts
58-
if: ${{ success() }} || ${{ failure() }}
58+
if: success() || failure()
5959
uses: actions/upload-artifact@v3
6060
with:
6161
name: Mega-Linter reports

.mega-linter.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ FILTER_REGEX_EXCLUDE: (lib/example|\.github|\.vscode|pull_request_template|docs/
66
DISABLE:
77
- COPYPASTE
88
- CSS
9+
JAVASCRIPT_DEFAULT_STYLE: prettier
910
DISABLE_LINTERS:
1011
- JAVASCRIPT_STANDARD
11-
- REPOSITORY_TRIVY
12-
- SPELL_PROSELINT
1312
DISABLE_ERRORS_LINTERS:
1413
- REPOSITORY_SEMGREP
1514
FLAVOR_SUGGESTIONS: false
1615
JAVASCRIPT_ES_FILE_NAME: "LINTER_DEFAULT"
17-
PRINT_ALL_FILES: false
1816
GITHUB_STATUS_REPORTER: false
1917
PRE_COMMANDS:
2018
- continue_if_failed: false

.trivyignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DS002
2+
DS026

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
## UNRELEASED
44

5+
- Add your updates here :)
6+
7+
## [14.0.0] 2023-12-16
8+
9+
- Fix data race on stdout capture which was corrupting the responses for overlapping requests by using a capturing plugin.
10+
- Fix data race on threads read and write which could result in missed cancellations and re-enable cancellation processing.
11+
- Ensure that threads are always removed in the case of write response exception.
12+
- Switch to jackson to enable efficient JSON encoding and decoding including raw embedding of CodeNarc result to avoid unnecessary processing.
13+
- Split out HTTP filters to their own files.
14+
- Use typed variables instead of def per linter recommendation.
15+
- Add early test for missing base directory to avoid running linter unnecessarily.
16+
- Fix parse failures for files which contain classes that only non-zero argument constructors.
17+
- Add gzip compression to reduce size of network traffic to improve performance
18+
- CI: Enhance MegaLinter config
19+
- CI: Upload expected sources as artifact if Check for changes job fails
20+
521
## [13.0.2] 2023-12-07
622

723
- Remove useless console.log in sources.

docs/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
## UNRELEASED
44

5+
- Add your updates here :)
6+
7+
## [14.0.0] 2023-12-16
8+
9+
- Fix data race on stdout capture which was corrupting the responses for overlapping requests by using a capturing plugin.
10+
- Fix data race on threads read and write which could result in missed cancellations and re-enable cancellation processing.
11+
- Ensure that threads are always removed in the case of write response exception.
12+
- Switch to jackson to enable efficient JSON encoding and decoding including raw embedding of CodeNarc result to avoid unnecessary processing.
13+
- Split out HTTP filters to their own files.
14+
- Use typed variables instead of def per linter recommendation.
15+
- Add early test for missing base directory to avoid running linter unnecessarily.
16+
- Fix parse failures for files which contain classes that only non-zero argument constructors.
17+
- Add gzip compression to reduce size of network traffic to improve performance
18+
- CI: Enhance MegaLinter config
19+
- CI: Upload expected sources as artifact if Check for changes job fails
20+
521
## [13.0.2] 2023-12-07
622

723
- Remove useless console.log in sources.

0 commit comments

Comments
 (0)