• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

graphql / graphql-js / 1924
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: directives
DEFAULT BRANCH: master
Ran 14 Apr 2017 09:19PM UTC
Jobs 1
Files 151
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1924

push

travis-ci

leebyron
[RFC] Export all validation rules directly

It's become relatively standard to create a whitelist or blacklist of validation rules, and reaching into the package per rule can get messy. This exports all the rules at the higher levels of submodule and module as well to make this easier.

For explaination of whitelist of blacklist:

```js
// Whitelist
import { specifiedRules, ScalarLeafs } from 'graphql';

// A ruleset which only runs one rule.
const whitelistRules = [ ScalarLeafs ];
```

```js
// Blacklist
import { specifiedRules, ScalarLeafs } from 'graphql';

// A ruleset which only runs all but one rule.
const blacklistRules = specifiedRules.filter(rule => rule !== ScalarLeafs);

// Note: the wrong way to do a blacklist would be to import and specify all
// but one rule. That's a whitelist and would fail to pick up any added
// validation rules that may be amended to spec in the future.
```

2960 of 3268 branches covered (90.58%)

8374 of 8546 relevant lines covered (97.99%)

1322.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1924.1 14 Apr 2017 09:19PM UTC 0
97.99
Travis Job 1924.1
Source Files on build 1924
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Travis Build #1924
  • 8e3c9c18 on github
  • Prev Build on export-rules (#1922)
  • Next Build on export-rules (#1926)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc