All Projects β†’ duolingo β†’ splinter

duolingo / splinter

Licence: Apache-2.0 License
Simple pattern-based linter πŸ€

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to splinter

Sakura
SAKURA Editor (Japanese text editor for MS Windows)
Stars: ✭ 689 (+2122.58%)
Mutual labels:  regex, grep
Grepbugs
A regex based source code scanner.
Stars: ✭ 118 (+280.65%)
Mutual labels:  regex, grep
Ripgrep
ripgrep recursively searches directories for a regex pattern while respecting your gitignore
Stars: ✭ 28,564 (+92041.94%)
Mutual labels:  regex, grep
Ugrep
πŸ”NEW ugrep v3.1: ultra fast grep with interactive query UI and fuzzy search: search file systems, source code, text, binary files, archives (cpio/tar/pax/zip), compressed files (gz/Z/bz2/lzma/xz/lz4), documents and more. A faster, user-friendly and compatible grep replacement.
Stars: ✭ 626 (+1919.35%)
Mutual labels:  regex, grep
Dategrep
print lines matching a time range
Stars: ✭ 159 (+412.9%)
Mutual labels:  unix, grep
Rare
Fast, realtime regex-extraction, and aggregation into common formats such as histograms, numerical summaries, tables, and more!
Stars: ✭ 76 (+145.16%)
Mutual labels:  regex, grep
Command Line Text Processing
⚑ From finding text to search and replace, from sorting to beautifying text and more 🎨
Stars: ✭ 9,771 (+31419.35%)
Mutual labels:  regex, grep
Learn gnugrep ripgrep
Example based guide to mastering GNU grep and ripgrep
Stars: ✭ 204 (+558.06%)
Mutual labels:  regex, grep
Mog
A different take on the UNIX tool cat
Stars: ✭ 62 (+100%)
Mutual labels:  unix, regex
Grab
experimental and very fast implementation of a grep
Stars: ✭ 230 (+641.94%)
Mutual labels:  regex, grep
relint
General purpose RegEx based file linter.
Stars: ✭ 33 (+6.45%)
Mutual labels:  regex, linter
greptile
Fast grep implementation in python, with recursive search and replace
Stars: ✭ 17 (-45.16%)
Mutual labels:  regex, grep
DFIRRegex
A repo to centralize some of the regular expressions I've found useful over the course of my DFIR career.
Stars: ✭ 33 (+6.45%)
Mutual labels:  regex, grep
stylelint-processor-glamorous
πŸ’„ Lint glamorous and related css-in-js with stylelint
Stars: ✭ 18 (-41.94%)
Mutual labels:  linter
cfn-lint-action
GitHub Action for interacting with CloudFormation Linter
Stars: ✭ 41 (+32.26%)
Mutual labels:  linter
automutate
Applies waves of mutations provided by other tools, such as linters or codemods.
Stars: ✭ 13 (-58.06%)
Mutual labels:  linter
Regex
A pure Swift NFA implementation of a regular expression engine
Stars: ✭ 27 (-12.9%)
Mutual labels:  regex
selective
Statically find HTML anti patterns using CSS Selectors
Stars: ✭ 15 (-51.61%)
Mutual labels:  linter
extglob
Extended globs. Add (almost) the expressive power of regular expressions to glob patterns.
Stars: ✭ 25 (-19.35%)
Mutual labels:  regex
mouette
🐦 [WIP] Lint your MongoDB.
Stars: ✭ 12 (-61.29%)
Mutual labels:  linter

Splinter

Here's a dead simple,
pattern-based linter for code
in any language.

It's not that smart, but
it needs only Bash and runs
on any Unix.

Define your rules in
a file as a list of
message/regex pairs.

Usage

  1. Copy-paste splinter into your project and make it executable:

    chmod +x splinter
  2. Create a rule file named something like rules.txt:

    # This is a comment and will be ignored.
    # Each rule is defined as an error message followed
    # by the regex (POSIX ERE) that should trigger it.
    
    Remove trailing whitespace
    \s$
    
    Use `assert.strictEqual()` instead of `assert.equal()`
    assert\.equal
    
  3. Run Splinter:

    # The rule file is the only required argument. Optionally, provide
    # a list of files/directories to lint (default: current directory)
    ./splinter rules.txt index.js src
  4. See the output! The exit code will be 1 if violations are found - useful for CI.

    index.js:25:Remove trailing whitespace
    index.js:26:Remove trailing whitespace
    src/foobar.test.js:130:Use `assert.strictEqual()` instead of `assert.equal()`
    

Duolingo is hiring! Apply at https://www.duolingo.com/careers

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].