# metropolis-core

> Metropolis - a codebase visualization tool

Latest version **0.0.12** (published 2016-05-18) · BSD-3-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install metropolis-core
pnpm add metropolis-core
yarn add metropolis-core
bun add metropolis-core
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.12 |
| Published | 2016-05-18 |
| First published | 2016-05-12 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 15 |
| Author | Jonathan McCracken, Richard Hurst, Greg Cook |
| Maintainers | jmccracken |
| Keywords | codebase, visualization, static, code, analysis |

## Links

- npm: https://www.npmjs.com/package/metropolis-core
- Repository: https://github.com/dahood/metropolis
- Homepage: https://github.com/dahood/metropolis#readme
- Issues: https://github.com/dahood/metropolis/issues
- npm.io page: https://npm.io/package/metropolis-core

## Dependencies (2)

- [sloc](https://npm.io/package/sloc.md) ~0.1.10
- [eslint](https://npm.io/package/eslint.md) ~2.9.0

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 0.0.12 (latest) — 2016-05-18
- 0.0.11 — 2016-05-18
- 0.0.10 — 2016-05-18
- 0.0.9 — 2016-05-18
- 0.0.8 — 2016-05-17
- 0.0.7 — 2016-05-17
- 0.0.6 — 2016-05-13
- 0.0.5 — 2016-05-13
- 0.0.4 — 2016-05-12
- 0.0.3 — 2016-05-12
- 0.0.2 — 2016-05-12
- 0.0.1 — 2016-05-12

## README

# Deprecated

**Please use npm package [metropolis](https://www.npmjs.com/package/metropolis)**

# What is Metropolis?

Metropolis is a code visualization aid to help in review and analysis.

## How to Install

1. Install NodeJS on [Windows](https://nodejs.org/dist/v6.1.0/node-v6.1.0-x64.msi)
2. Run `Set-ExecutionPolicy remotesigned` in your powershell console
1. `npm install -g metropolis-core` 

Currently, Metropolis only support Windows sorry no [WPF on Mono yet](http://www.mono-project.com/docs/gui/wpf/). 

We plan on supporting the command line interface using Mono at some point in the near future.

## How it Works

Metropolis maps every code unit (for C# or Java this is a class, for Javascript this is a file) into a city building. The default is to create taller building based on lines of code and the color of that building based on how healthy the code is. All the green and short buildings are good. The tall red ones need to be reviewed by the techinical team to ensure that code quality is maintained or improved.

For more information on code health please read Erik Doernenburg's awesome article on [How Toxic is Your Code?](http://erik.doernenburg.com/2008/11/how-toxic-is-your-code/). It explains toxicity scales and how they are calculated for Java.
Toxicity is essentially a [Richter Scale](https://en.wikipedia.org/wiki/Richter_magnitude_scale) of code health. If your code has an average toxicity of higher than 0.500 (e.g. C#, Java, Javascript/ECMA) then it's likely a good idea to refocus on code quality to improve the maintainability and extensibility of the code.

### Example - Hibernate
<p align="center"><img alt="Cityscape of Hibernate" src="https://raw.githubusercontent.com/dahood/metropolis/master/example-metropolis.png"/></p>

Hibernate is an object relational mapping tool used to speed up development of applications. Hibernate has over 330,000 lines of code and an average toxicity of 1.335. You can see some areas are very good, but given the size and complexity of this project there are areas of concern highlighted in red. Using Metropolis's code inspector you can view these classes to review this code.

## Getting Started

[Beginner's Guide](https://github.com/dahood/metropolis/wiki/Beginner's-Guide) is a good place to start as is the [Code Analysis Primer](https://github.com/dahood/metropolis/wiki/Code-Analysis-Primer).

## License

Metropolis is licensed under BSD (see LICENSE).

Metropolis depends on the following open source software:

* CSVHelper (Dual licensing under MS-PL and Apache 2.0) - http://joshclose.github.io/CsvHelper/
* Newtonsoft.JSON (The MIT). - https://github.com/JamesNK/Newtonsoft.Json
* Galatic Powershell & Event Log (MIT) - https://raw.githubusercontent.com/GalacticAPI/Galactic/master/LICENSE
* ESLint (JQuery Foundation) - https://github.com/eslint/eslint
* Checkstyle (GNU LGPL 2.1) - https://github.com/checkstyle/checkstyle
* D3 (BSD) - https://github.com/mbostock/d3
* radar-chart-d3 (Apache 2.0) - https://github.com/alangrafu/radar-chart-d3

---
_Source: https://npm.io/package/metropolis-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
