Check that all file names comply with convention (include SCSS files)

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

We just found a need for checking names of SCSS file to be consistent with our convention(s)—especially for merge requests from new contributors.

It looks like the existing linters don't provide such an option:

  • Rubocop only checks *.rb
  • ESLint only checks *.js
  • scss_lint cannot check file names (and a custom linter would be hacky)

In my opinion, these are the options:

  1. write a linter for only that purpose (shell script / rake task / npm script)
  2. use danger (gitlab-ce#20700)
  3. use an existing tool (e.g. https://github.com/usabilla/fnlint)
  4. don't lint but manually check file names
Edited Jun 15, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading