Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use integer environment variables in .swiftlint.yml file #5774

Open
EGOR-art-cell opened this issue Aug 28, 2024 · 0 comments
Open

Use integer environment variables in .swiftlint.yml file #5774

EGOR-art-cell opened this issue Aug 28, 2024 · 0 comments
Labels
question Question or doubts that needs discussion and clarification. Can become a bug or proposal.

Comments

@EGOR-art-cell
Copy link

Is it possible to access environment variable as integer from .swiftlint.yml file?

Every variable i use is imported as string, so setting source directory or path is no problem with ${VARIABLE} syntax. However using variables as integer for example for file_length or type_body_length doesn't work as expected. YAML format itself doesn't provide type casting, so my question is: is there work around or any plans to support that kind of feature?

@SimplyDanny SimplyDanny added the question Question or doubts that needs discussion and clarification. Can become a bug or proposal. label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or doubts that needs discussion and clarification. Can become a bug or proposal.
Projects
None yet
Development

No branches or pull requests

2 participants