Find lines of source code you have tagged with custom categories
Project description
taggregator
Find lines of source code you have tagged with custom categories, defined inside a config.json
file.
For example, to tag a piece of code which contains a bug, write a comment as below:
do_stuff()
# @BUG(HIGH) buggy_code() throws an unhandled exception!
buggy_code()
do_more_stuff()
You can then run tagg
in the project root directory and it will output the file name, line number and description to the console as below.
taggregator/taggregator/taggregator.py :57 # @BUG(HIGH) Throws OSError on some files if in use
taggregator/taggregator/taggregator.py :64 # @SPEED(MEDIUM) Regex search of processed line
taggregator/taggregator/__main__.py :34 # @TODO(LOW) Allow user to specify path for config file
Each line marked with a tag will be ordered and coloured by priority. By default, there are a number of tags and priorities in the config file installed.
Installation
$ pip3 install --upgrade tag-finder
Installation will also create a config file at ~/.taggregator/config.json
but the program will prioritise a config file stored in {current_directory}/.taggregator/config.json
if it exists.
Run
From project root
$ tagg
From a specified folder
$ tagg Assets/Scripts
Only return lines marked with "speed" and "refactor"
$ tagg -t "speed, refactor"
Create config file in current directory
$ tagg create
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for taggregator-0.0.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7cd88976b0adb7ce8b8fb4b6dd6bcb0e4b29dc9b87d08fc72ff33b2971e0e99 |
|
MD5 | 10c0e47212b489036387aece1919ee11 |
|
BLAKE2b-256 | 4e4fdfca2ded328f5be5b8bac2b98f67c000192e9cf80a8855d1288f455d9814 |