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

optimize generate_templist #1696

Merged
merged 2 commits into from
Aug 25, 2024
Merged

optimize generate_templist #1696

merged 2 commits into from
Aug 25, 2024

Conversation

liquidsec
Copy link
Collaborator

Optimizing ffuf generate_templist function

Copy link

codecov bot commented Aug 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93%. Comparing base (0e1c426) to head (0e33cd9).
Report is 6 commits behind head on dev.

Additional details and impacted files
@@          Coverage Diff          @@
##             dev   #1696   +/-   ##
=====================================
+ Coverage     93%     93%   +1%     
=====================================
  Files        341     341           
  Lines      26039   26044    +5     
=====================================
+ Hits       24010   24015    +5     
  Misses      2029    2029           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

prefix = prefix.strip().lower()

max_lines = self.config.get("lines")
banned_set = set(self.banned_characters)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since these are global to the module can we move them into setup()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0e33cd9 Should be cleaner.

I didn't move it to setup(), because ffuf_shortnames overrides the ffuf setup() - keeping them as a class attribute is currently the least redundant way to define them.

@liquidsec liquidsec merged commit 0a9caa5 into dev Aug 25, 2024
8 checks passed
@liquidsec liquidsec deleted the ffuf-optimize-generate-templist branch August 25, 2024 20:06
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

Successfully merging this pull request may close these issues.

2 participants