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

badges / shields / 16386279195

15 Jul 2025 08:07PM UTC coverage: 97.949% (-0.04%) from 97.987%
16386279195

push

github

web-flow
chore(deps-dev): bump neostandard from 0.12.1 to 0.12.2 (#11199)

Bumps [neostandard](https://github.com/neostandard/neostandard) from 0.12.1 to 0.12.2.
- [Release notes](https://github.com/neostandard/neostandard/releases)
- [Changelog](https://github.com/neostandard/neostandard/blob/main/CHANGELOG.md)
- [Commits](https://github.com/neostandard/neostandard/compare/v0.12.1...v0.12.2)

---
updated-dependencies:
- dependency-name: neostandard
  dependency-version: 0.12.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

5913 of 6185 branches covered (95.6%)

49870 of 50914 relevant lines covered (97.95%)

131.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.0
/services/codeclimate/codeclimate-common.js
1
import Joi from 'joi'
3✔
2
import { NotFound } from '../index.js'
3✔
3

3✔
4
const isLetterGrade = Joi.equal('A', 'B', 'C', 'D', 'E', 'F').required()
3✔
5

3✔
6
const repoSchema = Joi.object({
3✔
7
  data: Joi.array()
3✔
8
    .items(
3✔
9
      Joi.object({
3✔
10
        id: Joi.string().required(),
3✔
11
        relationships: Joi.object({
3✔
12
          latest_default_branch_snapshot: Joi.object({
3✔
13
            data: Joi.object({
3✔
14
              id: Joi.string().required(),
3✔
15
            }).allow(null),
3✔
16
          }).required(),
3✔
17
          latest_default_branch_test_report: Joi.object({
3✔
18
            data: Joi.object({
3✔
19
              id: Joi.string().required(),
3✔
20
            }).allow(null),
3✔
21
          }).required(),
3✔
22
        }).required(),
3✔
23
      }),
3✔
24
    )
3✔
25
    .required(),
3✔
26
}).required()
3✔
27

3✔
28
async function fetchRepo(serviceInstance, { user, repo }) {
14✔
29
  const { data: repoInfos } = await serviceInstance._requestJson({
14✔
30
    schema: repoSchema,
14✔
31
    url: 'https://api.codeclimate.com/v1/repos',
14✔
32
    options: { searchParams: { github_slug: `${user}/${repo}` } },
14✔
33
  })
14✔
34
  if (repoInfos.length === 0) {
14!
35
    throw new NotFound({ prettyMessage: 'repo not found' })
×
36
  }
×
37
  return repoInfos
2✔
38
}
14✔
39

3✔
40
export { isLetterGrade, fetchRepo }
3✔
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