Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(NFC) .toxic.json - Update list of functions which yield toxic warnings #11302

Merged
merged 1 commit into from
Nov 21, 2017

Conversation

totten
Copy link
Member

@totten totten commented Nov 20, 2017

Overview

The file .toxic.json is supposed to list egregious functions -- any change
to these functions should produce extra comments/suggestsions.

The current list is a few years old, so I've run pdepend and updated the list.

Before

The list was generated a few years ago.

After

The list includes anything which matches one or more of these:

  • "Non Comment Lines of Code" (ncloc) greater than 300.
  • "NPath complexity" (npath) greater than 1 billion.

The file `.toxic.json` is supposed to list egregious functions -- any change
to these functions should produce extra comments/suggestsions.

The current list is a few years old, so I've run `pdepend` and updated the list.
The list includes anything which matches one or more of these:

 * "Non Comment Lines of Code" (`ncloc`) greater than 300.
 * "[NPath](https://modess.io/npath-complexity-cyclomatic-complexity-explained/) complexity" (`npath`) greater than 1 billion.
@eileenmcnaughton
Copy link
Contributor

let's give it a spin

@eileenmcnaughton eileenmcnaughton merged commit 5ec8e02 into civicrm:master Nov 21, 2017
@totten totten deleted the master-toxic-json branch November 21, 2017 06:53
sluc23 pushed a commit to ixiam/civicrm-core that referenced this pull request Jan 10, 2018
(NFC) .toxic.json - Update list of functions which yield toxic warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants