All Projects → tetafro → godot

tetafro / godot

Licence: MIT License
Linter that checks if comments end in a period

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to godot

lancer
Turn your python code into a hideous mess. Ever heard of Black? This is the opposite.
Stars: ✭ 179 (+539.29%)
Mutual labels:  linter
dockerfile-utils
A library and command line interface for formatting and linting Dockerfiles.
Stars: ✭ 17 (-39.29%)
Mutual labels:  linter
flake8-broken-line
🚨 Flake8 plugin to forbid backslashes (\) for line breaks
Stars: ✭ 85 (+203.57%)
Mutual labels:  linter
dedupimport
Deduplicate named/unnamed imports that have the same import path in Go files
Stars: ✭ 20 (-28.57%)
Mutual labels:  linter
openapi-lint-vscode
OpenAPI 2.0/3.0.x intellisense, validator, linter, converter and resolver extension for Visual Studio Code
Stars: ✭ 47 (+67.86%)
Mutual labels:  linter
lint-prepush
Lint committed files on pre-push 🔬
Stars: ✭ 18 (-35.71%)
Mutual labels:  linter
wrapcheck
A Go linter to check that errors from external packages are wrapped
Stars: ✭ 141 (+403.57%)
Mutual labels:  linter
static-code-analysis-plugin
A plugin to simplify Static Code Analysis on Gradle. Not restricted to, but specially useful, in Android projects, by making sure all analysis can access the SDK classes.
Stars: ✭ 36 (+28.57%)
Mutual labels:  linter
standard-loader
webpack loader for linting your code with https://github.com/feross/standard
Stars: ✭ 66 (+135.71%)
Mutual labels:  linter
codeclimate-eslint
Code Climate Engine for ESLint
Stars: ✭ 86 (+207.14%)
Mutual labels:  linter
AutoBindings
Set of annotations that aims to make your Android development experience easier along with lint checks.
Stars: ✭ 15 (-46.43%)
Mutual labels:  linter
sonar-gherkin-plugin
SonarQube Cucumber Gherkin Analyzer
Stars: ✭ 33 (+17.86%)
Mutual labels:  linter
scalafix-maven-plugin
Enables automatic refactoring and linting of Maven projects written in Scala using Scalafix.
Stars: ✭ 15 (-46.43%)
Mutual labels:  linter
vscode-fortran-support
Fortran language support for Visual Studio Code
Stars: ✭ 49 (+75%)
Mutual labels:  linter
salt-lint
A command-line utility that checks for best practices in SaltStack.
Stars: ✭ 111 (+296.43%)
Mutual labels:  linter
laravel-prose-linter
Syntax-aware proofreading for your Laravel application.
Stars: ✭ 91 (+225%)
Mutual labels:  linter
go-namecheck
Source code analyzer that helps you to maintain variable/field naming conventions inside your project.
Stars: ✭ 37 (+32.14%)
Mutual labels:  linter
pahout
A pair programming partner for writing better PHP. Pahout means PHP mahout 🐘
Stars: ✭ 43 (+53.57%)
Mutual labels:  linter
cpplint
Static code checker for C++
Stars: ✭ 1,014 (+3521.43%)
Mutual labels:  linter
fsharp-linting-for-vs
Visual Studio Linter for F#
Stars: ✭ 33 (+17.86%)
Mutual labels:  linter

godot

License Github CI Go Report Codecov

Linter that checks if all top-level comments contain a period at the end of the last sentence if needed.

CodeReviewComments quote:

Comments should begin with the name of the thing being described and end in a period

Install

NOTE: Godot is available as a part of GolangCI Lint (disabled by default).

Build from source

go get -u github.com/tetafro/godot/cmd/godot

or download binary from releases page.

Config

You can specify options using config file. Use default name .godot.yaml, or set it using -c filename.yaml argument. If no config provided the following defaults are used:

# Which comments to check:
#   declarations - for top level declaration comments (default);
#   toplevel     - for top level comments;
#   all          - for all comments.
scope: declarations

# List of regexps for excluding particular comment lines from check.
exclude:

# Check periods at the end of sentences.
period: true

# Check that first letter of each sentence is capital.
capital: false

Run

godot ./myproject

Autofix flags are also available

godot -f ./myproject # fix issues and print the result
godot -w ./myproject # fix issues and replace the original file

See all flags with godot -h.

Example

Code

package math

// Sum sums two integers
func Sum(a, b int) int {
    return a + b // result
}

Output

Comment should end in a period: math/math.go:3:1
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].