# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/.
# # This is a simple script to generate some summary lines-of-code metrics. # Use it like this: # # $> python locsummary.py [./path/to/code/directory] # # It shells out to tokei [1] to do the actual counting, which you must have # installed with the `json` feature. It then massages the tokei output to # give us a rough guesstimate at: # # * How much code is shared code, that can be used on multiple platforms. # * How much of it is android-specific code. # * How much of it is ios-specific code. # # Since we aim to reduce total-cost-of-ownership of our storage and sync # infrastructure by re-using code across platforms, we should hope that # a high percentage of the code we've written is shared rather than # platform-specific! The analysis is far from an exact science, but it # provides a nice gut-check for our code re-use story. # # [1] https://github.com/XAMPPRocky/tokei #
# For each type of file in our repo, is it: # * shared code across platforms? # * specific to android? # * specific to ios? # * some sort of meta file that we shouldn't count at all?
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.