Unused configuration variables in conf/app.ini #520

Closed
opened 2025-11-02 03:26:33 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @strk on GitHub (Mar 16, 2017).

I found some variables set in conf/app.ini but never used/parsed.
So far:

[repository.editor]                                                             
LINE_WRAP_EXTENSIONS
[repository]                                                                    
PREFERRED_LICENSES
[markdown]
FILE_EXTENSIONS

I bet there are more.
Would be nice to get rid of them if not even documented, or make them work otherwise...

Originally created by @strk on GitHub (Mar 16, 2017). I found some variables set in conf/app.ini but never used/parsed. So far: ``` [repository.editor] LINE_WRAP_EXTENSIONS [repository] PREFERRED_LICENSES [markdown] FILE_EXTENSIONS ``` I bet there are more. Would be nice to get rid of them if not even documented, or make them work otherwise...
GiteaMirror added the issue/not-a-bug label 2025-11-02 03:26:33 -06:00
Author
Owner

@strk commented on GitHub (Mar 16, 2017):

@Unknwon mentioned these variables are actually parsed via MapTo, which converts them to struct members with names like LineWrapExtensions, PreferredLicenses, FileExtensions

So I'm closing this as invalid.

@strk commented on GitHub (Mar 16, 2017): @Unknwon mentioned these variables are actually parsed via MapTo, which converts them to struct members with names like `LineWrapExtensions`, `PreferredLicenses`, `FileExtensions` So I'm closing this as invalid.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#520