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

jscs-dev / node-jscs / 3874
97%

Build:
DEFAULT BRANCH: master
Ran 16 Jan 2016 03:34PM UTC
Jobs 4
Files 181
Run time 5min
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
3874

Pull #2071

travis-ci

pabigot
requireCamelCaseOrUpperCaseIdentifiers: add exception options

Some coding guidelines might want optional parameters to start with
`opt_` while still checking conformance of the remainder of the name, or
have specific identifiers like `var_args` that are exceptions.

Other projects may want to use this rule but require that values that
hold measurements carry a suffix specifying the units of measurement;
e.g. `ambientTemperature_dCel` or `centerFrequency_kHz`.  The
interpretation of units can be misleading when conjoined with the
identifier without a separating underscore.

This commit adds options `allExcept`, `allowedPrefixes`, and
`allowedSuffixes`.  All three recognize an array of strings, RegExps, or
ESTree RegExpLiteral objects that identify strings or string sequences.
Identifiers that match strings/patterns in `allExcept` are excluded from
validation by the rule.  Identifiers that start (end) with a match from
`allowedPrefixes` (`allowedSuffixes`) are checked after the match is
removed from the identifier.

Fixes #1900
Fixes #2029
Pull Request #2071: requireCamelCaseOrUpperCaseIdentifiers: add exception options

88 of 88 new or added lines in 1 file covered. (100.0%)

4966 of 4999 relevant lines covered (99.34%)

226.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3874.1 16 Jan 2016 03:40PM UTC 0
99.34
Travis Job 3874.1
2 3874.2 16 Jan 2016 03:36PM UTC 0
99.34
Travis Job 3874.2
3 3874.3 16 Jan 2016 03:34PM UTC 0
99.34
Travis Job 3874.3
4 3874.4 16 Jan 2016 03:36PM UTC 0
99.34
Travis Job 3874.4
Source Files on build 3874
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3874
  • Pull Request #2071
  • PR Base - master (#3869)
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

© 2026 Coveralls, Inc