Use this to remove unused CMS in your ivy project
Project description
Ivy Used CMS Scanner
About
Large AxonIvy projects usually have huge number amount of CMSs, and overtime, after countless times
of adding, updating and removing the CMSs, there will be zoombie CMSs in your code base.
The idea of this tool is pretty simple:
In each project:
- List out all *.data and co.meta files
- Group the *.data files with their corresponding co.meta file
- Search the CMS in [*.java, *.drl, *.xhtml, *.mod] files using > - CMS's path (example: /fintech/soba/authentication/message/accessdenied)
- If no result found -> CMS is not being used
WARNING: If the CMS is not hard-coded, it will be deleted.
Installation
pip install rich
pip install ivy-cms-unused-scanner
Usage
Create a Python script
from cms_scanner import cms_scanner
from rich.prompt import Prompt
import os
if __name__ == '__main__':
path = Prompt.ask("Please enter the absolute path to your project")
console.print("Process [bold purple]" + path)
# move to the project folder
os.chdir(path)
cleaner = cms_cleaner()
cleaner.get_all_cms()
cleaner.get_unused_cms()
Run the script
python cms_scanner.py
Example output:
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ivy_cms_unused_scanner-0.0.5.tar.gz.
File metadata
- Download URL: ivy_cms_unused_scanner-0.0.5.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62d1229824c13bf6d548fc3476eb5ae7e8b9711ade1727fe444c5e8217231b7a
|
|
| MD5 |
b1d6fa44149b9d0ac9679d516bcc75de
|
|
| BLAKE2b-256 |
ed3f8a40632be088b926988cf17ec9de58f81aaf50101aec5914f10fb6a9e643
|
File details
Details for the file ivy_cms_unused_scanner-0.0.5-py3-none-any.whl.
File metadata
- Download URL: ivy_cms_unused_scanner-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1df22252763ae23f8f0af9872fb6e1cabd7e6b0c1761059419b470fbb15ea8a
|
|
| MD5 |
21891138f4f2282a50a387c7a784df16
|
|
| BLAKE2b-256 |
004a5493e0dbd4abb6ddbc033e8ffdcf0e396561c0d88ba88db8c6910dca68a3
|