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

Feature request: Hide commits from wily report where file cannot be found #235

Open
nagyj2 opened this issue Jan 22, 2025 · 1 comment
Open

Comments

@nagyj2
Copy link

nagyj2 commented Jan 22, 2025

Can a config option be added to exclude revisions from a wily report for files which are not edited in that particular revision? I recently reformatted my file structure and as a result I have many files with the following wily report printout:

╒════════════╤════════════╤════════════╤══════════════╤════════════╤══════════════╤════════════╕
│ Revision   │ Author     │ Date       │ Cyclomatic   │ Unique     │ Maintainab   │ Lines of   │
│            │            │            │ Complexity   │ Operands   │ ility        │ Code       │
│            │            │            │              │            │ Index        │            │
╞════════════╪════════════╪════════════╪══════════════╪════════════╪══════════════╪════════════╡
│ 833a59b    │ Jason Nagy │ 2025-01-21 │ 36 (0)       │ 1 (0)      │ 59.3921      │ 139 (0)    │
│            │            │            │              │            │ (0)          │            │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ fb07ad4    │ Jason Nagy │ 2025-01-21 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ ab3ea5d    │ Jason Nagy │ 2025-01-21 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ 58d87eb    │ Jason Nagy │ 2025-01-20 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ 1fdfc9e    │ Jason Nagy │ 2025-01-20 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ 9a2059a    │ Jason Nagy │ 2025-01-20 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ 01c7368    │ Jason Nagy │ 2025-01-19 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ 9eb93ca    │ Jason Nagy │ 2025-01-19 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ dec3937    │ Jason Nagy │ 2025-01-19 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ b54ad2e    │ Jason Nagy │ 2025-01-19 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ 8bb144e    │ Jason Nagy │ 2025-01-19 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ 67a2add    │ Jason Nagy │ 2025-01-19 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ 352329c    │ Jason Nagy │ 2025-01-19 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ 118336f    │ Jason Nagy │ 2025-01-19 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
├────────────┼────────────┼────────────┼──────────────┼────────────┼──────────────┼────────────┤
│ 38e76c7    │ Jason Nagy │ 2025-01-18 │ Not found    │ Not found  │ Not found    │ Not found  │
│            │            │            │ 'src/game.   │ 'src/game. │ 'src/game.   │ 'src/game. │
│            │            │            │ py'          │ py'        │ py'          │ py'        │
╘════════════╧════════════╧════════════╧══════════════╧════════════╧══════════════╧════════════╛

Instead of having the 'Not found' messages for several revisions, I'd like to just have them hidden. If I go on to make a new commit and don't edit the src/game.py file, I assume that another 'Not found' entry will be added. These entries make the report much harder to read.

@devdanzin
Copy link
Collaborator

Hi, sorry for the late reply.

If you're using v. 1.25.0, you can use the --changes option to only display revisions that contain changes, added by #188.

Please let me know whether that solves your use case and if adding it as a config option would be better for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants