Add validator check for hidden directories
As per Franklin Feingold: this would be extending the validator to raise an error for hidden directories in the data structure
related: https://github.com/bids-standard/bids-validator/issues/627
NOTE: moved this ticket from the OpenNeuro repo (https://github.com/OpenNeuroOrg/openneuro/issues/1412) to the Bids validator repo.
I think that also hidden files are currently not checked for, see https://neurostars.org/t/behavior-metadata-without-tsv-event-data-related-to-a-neuroimaging-data/6768/9?u=sappelhoff
I could now have my bids directory with a .myrandom_garbage.stuff file in there and the validator would permit that.
I think this would need to be a configuration option. In general, hidden files/directories are okay, and disabling them by default would cause severe annoyance.
From an OpenNeuro perspective, we just filter out hidden files/directories, so they also don't matter there. So it's not entirely clear to me who the target audience is, but it's been requested several times, so I'll leave this open.