Skip to content

Tool to validate the name of a file that is used in Articola Tools organization's repositories

License

Notifications You must be signed in to change notification settings

Articola-Tools/file-path-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Articola Tools' file path validator

image size

This repo contains Dockerfile with preconfigured file paths validator written in Go. The validator allows validating a file, and all folders in the provided path are stick to the same naming convention. Currently, validator supports two naming conventions - snake_case and PascalCase.

This linter is used in Articola Tools organization's repositories to validate new files in PRs.

Usage

Use ghcr.io/articola-tools/file-path-validator Docker image with two flags:

  • --naming-convention - snake_case or PascalCase
  • --path-to-validate - a file path to validate

Example command to use this linter:

docker run --rm ghcr.io/articola-tools/file-path-validator \
--naming-convention snake_case \
--path-to-validate "./repo/main.go"

About

Tool to validate the name of a file that is used in Articola Tools organization's repositories

Topics

Resources

License

Stars

Watchers

Forks