Comments (1)
Can you point to examples where negative status codes are found? It's unclear to me how common that approach is, and whether or not it's considered bad style.
Perhaps I shouldn't overload the exit code to report the number of matches here https://github.com/danielstjules/jsinspect/blob/master/bin/jsinspect#L113
Instead, a better practice might be:
0 - success (no matches)
1 - any general error
3 - failing to load paths
4 - failing to run jsinspect
5 - failing due to matches being found
2 is skipped since it appears to be reserved
from jsinspect.
Related Issues (20)
- Possibility to specify custom reporter via CLI and by .jsinspectrc HOT 3
- Blowing up on large react projects HOT 7
- How to save a file๏ผ HOT 1
- Feature request: parsing script tags in HTML
- can't set boolean flags from config file HOT 1
- detect-copy-paste fork HOT 1
- instances > X OR threshold > Y HOT 1
- Usage in Javascript-like languages? HOT 4
- Ability to define files to report
- npx example for package.json scripts
- Cannot parse files using the babel proposal optional chaining
- Typo in documentation example
- Feature Request: Ignore Existing Duplication HOT 1
- Has any plan to support TypeScript? HOT 3
- Unexpected token <> HOT 1
- Consider different font colour for showing matching code blocks HOT 1
- FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
- [feature request] support suffix other than .js or .jsx HOT 2
- Single line match reported when there is no match
- Is this project still maintained? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsinspect.