Skip to content

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lint-rules

First-party lint rule package for Wright. Rules are declarative YAML files in rules/, following the Wright lint rule contract (SPEC-309).

Rule Reports
expensive-loop-check a distance or isInLoS call inside a loop body
min-wait-loop a loop whose body waits 0.016 s or less
nested-binder-lambda an element-binding array call inside another binder's per-element argument

Use

The rules need Wright 0.41.0 or later. Older releases refuse the whole package.

Wright ships these rules by default, so no configuration is needed. To use a revision of this repository instead, pin it by full commit SHA in the project's lint configuration:

packages:
  - repo: wrightkit/lint-rules
    sha: <full commit SHA>

The pinned revision replaces Wright's default rules that have the same IDs. Today those defaults are native rules in Wright; from wrightkit/wright#1081 on, Wright embeds a recorded revision of this package instead. Project configuration sets each rule's enablement and severity.

Test

tests/run.sh

Requires Wright 0.41.0 or later as wright, plus jq and shasum, on PATH. Set WRIGHT to test another Wright executable. AGENTS.md defines the fixture format and how rules are admitted and changed.

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages