Skip to content

Commit

Permalink
fix: megalinter version format changed from 7.9.0 to v7.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fchastanet committed Mar 9, 2024
1 parent 0d1b37c commit b0f7c04
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ repos:
)
- repo: https://github.com/fchastanet/bash-tools-framework
rev: 2.1.0
rev: 2.3.1
hooks:
- id: fixShebangExecutionBit
- id: fixShebangExecutionBitGithubActions
Expand Down Expand Up @@ -128,7 +128,7 @@ repos:
stages: [manual]

- repo: https://github.com/fchastanet/bash-tools-framework
rev: 2.1.0
rev: 2.3.1
hooks:
- id: megalinterCheckVersion
- id: megalinterGithubAction
1 change: 1 addition & 0 deletions bin/megalinter
Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,7 @@ filesOnlyCallback() {
checkMegalinterVersionAndExit() {
local newVersion
Github::getLatestRelease "oxsecurity/megalinter" newVersion
newVersion="$(Version::parse <<<"${newVersion}")"
local currentVersion
currentVersion="$(Version::parse <<<"${optionMegalinterImage}")"
local status=0
Expand Down
4 changes: 2 additions & 2 deletions src/Filters/directive.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

readonly FILTER_DIRECTIVE_KEEP_ONLY_HEADERS="0"
FILTER_DIRECTIVE_KEEP_ONLY_HEADERS="0"
# shellcheck disable=SC2034
readonly FILTER_DIRECTIVE_REMOVE_HEADERS="1"
FILTER_DIRECTIVE_REMOVE_HEADERS="1"

# @description filter the directive only at the beginning of the file
# we do not want to filter eventual documentation in the
Expand Down
1 change: 1 addition & 0 deletions src/_binaries/options/command.megalinter.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ filesOnlyCallback() {
checkMegalinterVersionAndExit() {
local newVersion
Github::getLatestRelease "oxsecurity/megalinter" newVersion
newVersion="$(Version::parse <<<"${newVersion}")"
local currentVersion
currentVersion="$(Version::parse <<<"${optionMegalinterImage}")"
local status=0
Expand Down

0 comments on commit b0f7c04

Please sign in to comment.