Comments (4)
Hi! This looks like an enhancement request, also considering that this particular implementation didn't change.
What changed is that we fixed a couple of bugs that prevented this error for being reported, and we improved the error message.
We don't probably need the whole history, but we would be fine with the number of commits that allow super-linter to correctly get changes in case VALIDATE_ALL_CODEBASE
is false
(the default).
You can try setting fetch depth to a number > 0 and see if that works.
In that case, we might update the documentation and the error message to reflect that.
from super-linter.
In other words, we need a number of commits that allows these two commands to run:
so super-linter can correctly get diffs.
This is something that super-linter cannot know in advance because the actions/checkout
happens before super-linter even runs.
What super-linter might do is to require a fetch depth >0 (i.e. require that a repository is not shallow), and check if the number of commits is enough to compute the diff. Although this is not clear yet.
from super-linter.
How did it work in the version 5? Oh! I just checked: https://github.com/super-linter/super-linter/blob/v5.7.2/lib/functions/buildFileList.sh#L99
from super-linter.
That way could potentially alter the state of the local repository, which is something that we don't want to do.
from super-linter.
Related Issues (20)
- Remove color code from super-linter stdout and logfile when not needed HOT 11
- JSCPD Failures on Minor Update v6.3.1 --> v6.4.0 HOT 2
- Prevent Failures from New Linters in Minor Releases HOT 7
- Unable to remove .ruff_cache folder HOT 3
- Support Android linter HOT 1
- Behavior not supported, please either only include (VALIDATE=true) or exclude (VALIDATE=false) linters, but not both HOT 7
- Failed to deploy to production
- Superlinter workflow fail to download module error. HOT 11
- Support configuring the GitHub server URL HOT 5
- JSCPR yielding errors on files in excluded directory HOT 3
- Make the output of each linter available to users for further processing HOT 2
- v6 failing for missing default branch HOT 9
- Thank you super-linter contributors (2024-04-01..2024-04-30) HOT 1
- Missing Scope in GITHUB_ACTIONS Checks HOT 1
- Update Golang linter configuration to avoid the deprecated `linters.govet.check-shadowing` option HOT 1
- Accept an option to dump log output to github Job Summaries HOT 5
- Check: CKV2_GHA_1: "Ensure top-level permissions are not set to write-all" HOT 1
- `docs/disabling-linters.md` removed in `v6` — is this expected? HOT 3
- Configure a non-root user HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from super-linter.