FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Change include path for lines of code counting by aeisenberg · Pull Request #500 · github/codeql-action · GitHub

Change include path for lines of code counting - #500

Merged
aeisenberg merged 1 commit into
mainfrom
aeisenberg/paths-include
May 13, 2021
Merged

aeisenberg merged 1 commit into
mainfrom
aeisenberg/paths-include

Conversation

Copy link
Copy Markdown
Contributor

Previously, we were always using ** in the include path. the
effect of this was to always count lines in the entire
repository unless explicitly added to the paths-ignore. This
was incorrect behaviour. Now we only using ** if the include
path is otherwise empty.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.

adityasharad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks reasonable, look out for conflicts with the other LOC PR.

Comment thread src/count-loc.test.ts
Comment on lines +71 to +72
// note that "**" is always included. The includes are for extra
// directories outside the normal structure.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Outdated comment?

Comment thread src/count-loc.test.ts Outdated

t.deepEqual(results, {
js: 15,
js: 12,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Might conflict with your other PR.

Previously, we were always using `**` in the include path. the
effect of this was to always count lines in the entire
repository unless explicitly added to the paths-ignore. This
was incorrect behaviour. Now we only using `**` if the include
path is otherwise empty.
aeisenberg force-pushed the aeisenberg/paths-include branch from 96b869f to 8e61fc2 Compare May 13, 2021 19:05
aeisenberg merged commit 6a0bd27 into main May 13, 2021
aeisenberg deleted the aeisenberg/paths-include branch May 13, 2021 19:25
github-actions Bot mentioned this pull request May 17, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL