Skip to content

Add a .gitattributes File to Increase NetLogo's Visibility #441

@danielvartan

Description

@danielvartan

Hi there,

I’m working to make NetLogo more visible on GitHub, and one way to do that is by ensuring NetLogo code is correctly recognized by the platform. I’ve been improving support for the .nls extension, but full coverage isn’t there yet (see this PR to learn more).

Many repositories in the NetLogo organization still contain code that isn’t properly detected.

A simple workaround is to add a .gitattributes file to the root of the repository. This tells GitHub which files are NetLogo code, ensuring the project is correctly identified and boosting NetLogo’s visibility in language statistics. Please include one here.

Here’s a minimal configuration:

*.nls linguist-detectable
*.nlogo linguist-detectable
*.nlogo3d linguist-detectable
*.nlogox linguist-detectable
*.nlogox3d linguist-detectable

*.nls linguist-language=NetLogo
*.nlogo linguist-language=NetLogo
*.nlogo3d linguist-language=NetLogo
*.nlogox linguist-language=NetLogo
*.nlogox3d linguist-language=NetLogo

A practical example can be seen here.

GitHub’s documentation on language detection and overrides is available here.

Thank you!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions