-
Notifications
You must be signed in to change notification settings - Fork 31
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
Support custom/no file endings #2
Comments
Thanks for reporting and sorry for the delayed response. Unfortunately this feature would be in conflict with our usage of git sparse checkout which allows us to reduce repo disk usage and support more repos at the same time. A similar trade-off would also be for supporting custom file endings. But if you could provide additional/common bash script file endings we would most likely include them as default. |
@cordis-dev
The problem is that in our project we use the shell/bash scripts as programs executable like any other binary from command line as alias respectively from Perhaps it would be considerable if one could add specific files from the repo handled as specific language type. This allows full flexibility while to user needs to do manual steps for each file that does not fit the default file ending rules. Not sure if the Git client provides the feature to achieve this in a clean and efficient way. |
@MichaIng
We understand your choice to NOT use file extensions for your scripts. Google's Shell Style Guide also "strongly prefers" not to use extensions for executables https://google.github.io/styleguide/shell.xml#File_Extensions.
CodeFactor currently uses file extensions to map files to the respective languages for automated code analysis. Per your suggestion, we have introduced an Epic to CodeFactor's road-map that would support your use-case. There are significant considerations necessary to maintain CodeFactor's UX as frictionless as possible for our user base. We will prioritize implementation based on further needs of our community. p.s. We love the https://github.com/MichaIng/DietPi project that you are curating! |
@kaskas |
Same here, i have to create a specific branch and rename all project files to get it work. |
Deployed initial implementation for detecting Bash language files based on first line:
|
@cordis-dev thanks a lot, very appreciate 🖤 |
@cordis-dev |
We have a pure bash script project, but the main scripts have no file ending. Those are not checked by CodeFactor and I didn't find any way to add custom file endings for certain languages at all.
Would be great if there was a possibility to do the above. In case of shell scripts, the shebang could be used to identify the language/shell.
The text was updated successfully, but these errors were encountered: