Skip to content

bettercallazamat/linters-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linters-config

How to use this repo? 🤔

Each directory listed below contains config files specific to one programming language and README file with detailed instructions:

Follow those instructions in order to set up linters or validators in your repo.

In order to get to know more about linters and Stickler read the recap below.

Linters

A linter is a tool that analyzes your source code to flag programming errors, bugs, stylistic errors, and suspicious constructs(source: Wikipedia).

There are a few reasons for using linters:

  1. Catching syntax errors is more efficient. There is no need to debug simple mistakes like typos - the linter does it for you.
  2. The entire codebase looks like written by one person.
  3. Programmers can focus on solving problems, instead of cleaning up the code.

You can find linters for most of the programming languages, e.g. Rubocop for Ruby or ESLint for JavaScript.

Also, there are many ways you can integrate a linter in your workflow:

  • text editor plugin
  • git hook
  • Github app.

Stickler

Stickler is an app, that can be integrated into any Github repo. It uses multiple linters that can be configured according to the programmer’s needs.

🐛 What to do if Stickler does not work? Check Troubleshooting below.

With Stickler enabled you can see:

  • Linting result in your PR screenshot
  • Checks tab in your PR screenshot
  • Comments under any problematic line of code screenshot

See more: https://stickler-ci.com/

Troubleshooting

If Stickler does not work in your repo, you can always use linters in your local environment.

In that case check detailed instructions for each linter:

Validation

Do not make any changes in config files - they represent style guidelines that you share with your team - which is a group of all Microverse students.

TSEs will validate that you are using the same configuration files provided here. You can check if your linter configuration is correct using the check-linters-config script.

Contributing

Everybody is welcome to suggest changes in linters config files.

In order to do it, fork this repository, create a new branch and open a Pull Request from your branch. A detailed description of this process: A Step by Step Guide to Making Your First GitHub Contribution by Roshan Jossey

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 80.5%
  • Shell 19.5%