Giter VIP home page Giter VIP logo

linter-library's Introduction

Photon Linter Library

Let's start off.

  • Do you just like flashy lights?
    • You don't need this.
  • Do you not make your own vehicles?
    • You don't need this.

What is this?

The photon linter library is a small collection of linters for Photon Sirens, Auto Components, Vehicles and such.

This means it finds dodgy stuff and tells you.

How does it work?

The code itself is written in lua (and built for version 5.1). Running the linter is simple.

lua componentlint.lua <file1> [<file2>, [<file3>, [...]]]

Pretty easy, right? You can also do sirenlint.lua for sirens.

This spits out a bunch of stuff.

Test Dome_Light_Amber::Name started
Test Dome_Light_Amber::Name succeeded, performed 2 assertions.
Test Dome_Light_Amber::Model started
Test Dome_Light_Amber::Model succeeded, performed 4 assertions.
Test Dome_Light_Amber::Skin started
Test Dome_Light_Amber::Skin succeeded, performed 1 assertion.
Test Dome_Light_Amber::Bodygroups started
Test Dome_Light_Amber::Bodygroups succeeded, performed 1 assertion.
...
Test Whelen_Vertex::Name started
Test Whelen_Vertex::Name succeeded, performed 2 assertions.
Test Whelen_Vertex::Model started
Test Whelen_Vertex::Model succeeded, performed 4 assertions.
Test Whelen_Vertex::Skin started
Test Whelen_Vertex::Skin succeeded, performed 1 assertion.
Test Whelen_Vertex::Bodygroups started
Test Whelen_Vertex::Bodygroups succeeded, performed 1 assertion.
Stats:
    Files Failed: 0
    Components Checked: 112
    Tests Ran: 448
    Tests Succeeded: 448
    Tests Failed: 0
    Assertions: 842

The important thing. "tests failed". If that's more than 0, it spits out what failed. That normally shows something needs fixing.

linter-library's People

Contributors

joshpiper avatar

Watchers

 avatar  avatar  avatar

linter-library's Issues

Lint PI

Lint default and custom PI.

Lint icons

Lint icons to ensure they work properly. Might need a library folder in Photon?

Lint vehicles

Lint default photon vehicles and vehicles added with EMVU.OverrideIndex

Lint sirens.

Add a linter for sirens to ensure proper formatting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.