danger / danger/kotlin

Split `Git.changedLines` by file

Open
#314 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
542
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Git.changedLines returns the total numbers of added/deleted lines for an entire diff and completely obscures the detail of which files the changes belong to. There should be a way to get the stats for a single file.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Git.changedLines implementation and inspect how it currently obtains aggregate diff statistics. Determine how file-level statistics should be exposed, then verify that callers can distinguish changes for a single file and that the existing aggregate behavior remains covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.