Comments (11)
Yes, there is no way to modify arguments passed to shellcheck. What arguments do you want to pass and can I ask the reason?
from actionlint.
I need to disable SC2046 as nested function generates command line parameters, and we need word splitting there.
from actionlint.
The best solution would be to disable it per command (something like https://github.com/koalaman/shellcheck/wiki/Ignore#ignoring-one-specific-instance-in-a-file), but having a global override would be good enough.
from actionlint.
I don't think SC2046 should be always suppressed. But as the document says, it has some rare case where it should be ignored.
I'll consider to override shellcheck arguments by options.
from actionlint.
@nijel Before considering the details of the feature, I want to confirm one thing.
Is -ignore
option sufficient for your use case?
actionlint -ignore 'SC2046:'
from actionlint.
We currently use actionlint via GitHub super-linter and that doesn't seem to support passing command line parameters, it can only use the configuration file.
from actionlint.
that doesn't seem to support passing command line parameters
That sounds a problem of super-linter. Can we improve super-linter side? I'll take a look at the repo later.
from actionlint.
All other linters use configuration files, what is really preferred way - the configuration sits in the repository and you can run linter without any parameters.
from actionlint.
OK, I understood the situation. I'll consider how to handle this.
from actionlint.
I have made PR at super-linter, which allows to pass additional command line options through an environment variable.
Let's see if this is merged.
from actionlint.
This is not an issue of actionlint and will be fixed github/super-linter#1667. Please comment there.
from actionlint.
Related Issues (20)
- Make Actionlint Directly Invokable as an Action Itself HOT 6
- Input difference between workflow_dispatch and workflow_call produces an error "is not defined in object type" HOT 1
- Actionlint does not report expressions that reference github "Default environment variables" via f.x `${{ env.CI }}` HOT 3
- Feature request: check that local actions exist HOT 3
- Wrapping Action-Lint in a Reusable Workflow with custom config in actionlint.yaml and actionlint-matcher.json? HOT 2
- [Bug]: `needs` and `steps` outputs context checking should be case sensitive HOT 3
- feature request: warn when using `if: ${{ ... }}` with anything else around it
- Feature Request: Support short permalinks for the online playground HOT 1
- Feature requests: Detect unsupported use of `timeout-minutes` in composite actions
- undefined variable "context" with actions/github-script HOT 1
- Syntax checker update needed HOT 1
- Feature Request `${{ ... }}` cannot be used in Workflow `Name` HOT 3
- Linting from stdin does not cover everything HOT 1
- `Action format in uses: ` should error on common branch names HOT 1
- Bug: object dereference must be type of object but got "string"
- Allow for different GHES versions HOT 2
- Incorrectly detecting error when using $GITHUB_OUTPUT HOT 5
- feature request: provide configuration from CLI (instead of config file) HOT 2
- Mistaken type checking error HOT 7
- input "fail-on-cache-miss" is not defined in action "actions/cache@v3" 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 actionlint.