check-linters-config
is a Bash script to compare local files against the files on the master branch of this repository. It will check that files exist and that they are identical to the ones here.
- Copy the
check-linters-conf.sh
file into someplace in the$PATH
of your machine, for example/usr/local/bin
:
sudo wget -O /usr/local/bin/check-linters-config https://raw.githubusercontent.com/microverseinc/linters-config/master/scripts/check-linters-conf.sh
- Make it executable:
sudo chmod +x /usr/local/bin/check-linters-config
Run the command check-linters-config
on the root of the repository you want to check. It takes as an argument the name of the directory you want to check against.
$ check-linters-config ruby
Files master/ruby/.rubocop.yml and .rubocop.yml are identical
If you notice differ in your terminal as the following
$ check-linters-config ruby
Files master/ruby/.rubocop.yml and .rubocop.yml differ
please do not forget to check the contents in the specific linter config files.
The possible directories/options included are: