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

Closed
EGOR-art-cell opened this issue Aug 28, 2024 · 0 comments · Fixed by #5860
Closed

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

EGOR-art-cell opened this issue Aug 28, 2024 · 0 comments · Fixed by #5860
Assignees
Labels
enhancement Ideas for improvements of existing features and rules.

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
@SimplyDanny SimplyDanny self-assigned this Nov 17, 2024
@SimplyDanny SimplyDanny added enhancement Ideas for improvements of existing features and rules. and removed question Question or doubts that needs discussion and clarification. Can become a bug or proposal. labels Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Ideas for improvements of existing features and rules.
Projects
None yet
2 participants