All Projects β†’ codica2 β†’ clean-code-tools

codica2 / clean-code-tools

Licence: other
How we configure linters for Ruby on Rails projects

Projects that are alternatives of or similar to clean-code-tools

syntastic-extras
Additional Syntastic syntax checkers and features (for Vim)
Stars: ✭ 31 (+93.75%)
Mutual labels:  linter
JavaScript-Styleguide
πŸ“ƒ The NullDev JavaScript Styleguide
Stars: ✭ 23 (+43.75%)
Mutual labels:  linter
therapist
Work out your commitment issues.
Stars: ✭ 29 (+81.25%)
Mutual labels:  linter
go-perfguard
CPU-guided performance analyzer for Go
Stars: ✭ 58 (+262.5%)
Mutual labels:  linter
sonar-css-plugin
SonarQube CSS / SCSS / Less Analyzer
Stars: ✭ 46 (+187.5%)
Mutual labels:  linter
lintje
Lintje is an opinionated linter for Git.
Stars: ✭ 25 (+56.25%)
Mutual labels:  linter
flycheck-joker
Clojure syntax checker (via Joker) for flycheck
Stars: ✭ 55 (+243.75%)
Mutual labels:  linter
goreporter
A Golang tool that does static analysis, unit testing, code review and generate code quality report.
Stars: ✭ 3,019 (+18768.75%)
Mutual labels:  linter
lint-html-with-css
Lint HTML with CSS. A collection of CSS snippets from the hashtag #lintHTMLwithCSS on twitter. These CSS snippets intend to warn developers about common mistakes made in HTML.
Stars: ✭ 35 (+118.75%)
Mutual labels:  linter
textlint-rule-stop-words
Textlint rule to find filler words, buzzwords and clichΓ©s
Stars: ✭ 21 (+31.25%)
Mutual labels:  linter
looppointer
An analyzer that checks for pointers to enclosing loop variables.
Stars: ✭ 30 (+87.5%)
Mutual labels:  linter
danger-eslint
A Danger plugin for linting javascript with eslint.
Stars: ✭ 13 (-18.75%)
Mutual labels:  linter
npm-groovy-lint
Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files using command line
Stars: ✭ 124 (+675%)
Mutual labels:  linter
ramllint
RAML Linter
Stars: ✭ 18 (+12.5%)
Mutual labels:  linter
kotary
Managing Kubernetes Quota with confidence
Stars: ✭ 85 (+431.25%)
Mutual labels:  overcommit
EditorConfig-Action
πŸ”ŽA GitHub Action to check, enforce & fix EditorConfig style violations
Stars: ✭ 40 (+150%)
Mutual labels:  linter
check-wheel-contents
Check your wheels have the right contents
Stars: ✭ 131 (+718.75%)
Mutual labels:  linter
elodin-old
Quality and Optimisation tools for CSS in JavaScript
Stars: ✭ 15 (-6.25%)
Mutual labels:  linter
ts-standard
Typescript style guide, linter, and formatter using StandardJS
Stars: ✭ 338 (+2012.5%)
Mutual labels:  linter
nestif
Detect deeply nested if statements in Go source code
Stars: ✭ 30 (+87.5%)
Mutual labels:  linter

Linters configuration

Why we use linters?

Lint is a tool that analyzes source code to flag programming errors, bugs, stylistic errors, and suspicious constructs. So we don't need to spend time for code syntax checking, linters can do it for us.

Linters libraries

Rubocop

Rubocop is a Ruby static code analyzer and formatter, based on the Ruby community style guide.

RuboCop is extremely flexible and most aspects of its behavior can be tweaked via various configuration options.

Installation

gem install rubocop

If you'd rather install RuboCop using bundler, don't require it in your Gemfile:

gem 'rubocop', require: false

Rubocop config example

Es Lint

ES-lint is a fully pluggable tool for identifying and reporting on patterns in JavaScript

Installation

If you want to include ESLint as part of your project's build system, we recommend installing it locally. You can do so using npm:

npm install eslint --save-dev

You should then set up a configuration file:

$ ./node_modules/.bin/eslint --init

After that, you can run ESLint on any file or directory like this:

./node_modules/.bin/eslint yourfile.js

SCSS-lint

SCSS-lint is a configurable tool for writing clean and consistent SCSS

Installation

Add to your Gemfile:

gem 'scss_lint'

After that, you can run SCSS-lint on any file or directory like this:

scss-lint app/assets/stylesheets/

or

scss-lint app/assets/stylesheets/**/*.css.scss

SCSS-lint config example

Slim-lint

Slim-lint is a configurable tool for analyzing Slim templates

Installation

Add to your Gemfile:

gem 'slim_lint'

Run slim-lint from the command line by passing in a directory (or multiple directories) to recursively scan:

slim-lint app/views/

Slim-lint config example

Overcommit

Overcommit is a fully configurable and extendable Git hook manager.

Installation

Overcommit is installed via RubyGems. It is strongly recommended that your environment supports running gem install without requiring sudo privileges. Using a Ruby version manager like rbenv or rvm can help here.

gem install overcommit

You can then run the overcommit command to install hooks into repositories.

mkdir important-project
cd important-project
git init
overcommit --install

Overcommit config example

License

Copyright Β© 2015-2019 Codica. It is released under the MIT License.

About Codica

Codica logo

We love open source software! See our other projects or hire us to design, develop, and grow your product.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].