An open API service indexing awesome lists of open source software.

https://github.com/dhershman1/argulint

Tired of your linter not making you feel like the terrible developer you really are? Welcome.
https://github.com/dhershman1/argulint

cli command-line fun funny insult linter parody

Last synced: 7 months ago
JSON representation

Tired of your linter not making you feel like the terrible developer you really are? Welcome.

Awesome Lists containing this project

README

          

# Argulint
Tired of your linter not making you feel like the terrible developer you really are? Welcome.

[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)

[Click here to read about contributing](https://github.com/dhershman1/argulint/blob/master/.github/CONTRIBUTING.md)

Argulint is a little linter wrapper that runs the [`standardjs`](https://standardjs.com/) lint process but adds a fun twist to it.

The only goal is to have a little fun with your linting.

## Features

- A simple CLI tool, it's just running [`standardjs`](https://standardjs.com/) under the hood
- Which means it still works with standard options in the `package.json` as well as the `--fix` argument in the CLI
- Re formats the output with _some_ extra organization
- Insults your mistakes for fun

## How To

Intall:

`npm i -D argulint`

Once installed you would use argulint just like you can use the `standardjs` linter via the CLI. It supports the `--fix` flag as well as using the standard options built into your `package.json` file.

Usage example:

`argulint src/place/*.js`

Or with the flag:

`argulint --fix src/place/*.js`

**Note: There is no API this is strictly used within the CLI**

## Generation

Messages are generated in the following format:

```
{insult}
{linting error} {lines} {ending}
```

Where:

- `insult` is the actual picked insult
- `linting error` is the actual error that was found
- `lines` is the line(s) and column(s) of the error in this format: `line:column`
- `ending` is the chosen ending from our endings list

## Example

Example output looks something like this:

```
==============Totals==============
# of Errors: 6 - Alright you're done get out.
# Fixable: 5 - Put me in coach!
==================================

File: /path/to/argulint/tests/index.js
==============Stats==============
# of Errors: 6 - Uh oh!
# Fixable: 5 - I got this.
==================================
You garbage mammal!
Extra semicolon. on line 1:10 I think we're done here
You boner jockey!
Extra semicolon. on line 2:10 Thanks, I hate it
You're a capitalist pig!
Extra semicolon. on line 3:10 [Forced laughing]
Remind me to always bet against you.
Extra semicolon. on line 4:10 This is why I have trust issues
I think you are a general offense and everyone should beat you.
'g' is assigned a value but never used. between line 5:7 and 5:8 ctrl + a + del
Lying, crying, spying, prying ultra-pig!
Extra semicolon. on line 5:13 Thanks, I hate it
```