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

Refactor sloc scanner to be a class #124

Open
wants to merge 48 commits into
base: main
Choose a base branch
from

Conversation

turbaszek
Copy link
Member

@turbaszek turbaszek commented Dec 17, 2020

This PR:

  • refactors git sloc scanner as a class
  • adds loguru for logging purposes
  • keeps backward compatibility with other scanners

Screenshot 2020-12-18 at 19 46 22

turbaszek and others added 30 commits October 12, 2020 14:10
This PR introduces some structure to setup.py by encapsulating
some parts of the logic into functions and creating the main
function.
* Introduce github actions for CI

* fixup! Introduce github actions for CI
This commit refactors the code base to create an installable
kibble application.

Co-authored-by: Michał Słowikowski <[email protected]>
Add Black to pre-commit and format whole codebase
* Use KibbleConfigParser in setup script

* fixup! Use KibbleConfigParser in setup script
To check that kibble works we can at least build the docker image,
run kibble --help and validate python requirements.
* removed few unused variables from code

* bugzilla – removed unused variables from code

* git-census – removed unused variable

* buildbot – removed unused variable

* pipermail – removed unused variable

* ponymail – removed unused variable

* discourse – removed unused variable

* github-issues – removed unused variable

* jenkins – removed unused variable

* jira – removed unused variable

* github-stats – removed unused variable

* ponymail – removed unused variable

* git-evolution – removed unused variable
Before this commit I got this error when running Kibble locally:
This was because https://github.com/apache/kibble/pull/83 replaced kibble.yaml with kibble.ini
This PR reads the config from `kibble.ini`.
This also adds a network to docker-compose file without which I was getting host not found error.
Replace old link with new link
`master` branch was renamed with `main`. This should reflect in doc.
Since https://kibble.apache.org/ is available we should use that instead of http
`Kible` -> `Kibble`
`milis` -> `milliseconds`
`offlined` -> `offline`
`annalyze` -> `analyze`
`Verrifying` -> `Verifying`
`betwen` -> `between`
`fechthing` -> `fetching`
kaxil and others added 16 commits December 13, 2020 03:08
Upgrade black pre-commit from `19.3b0` to `20.8b1`
- Comparison with None
- Redundant Parenthesis
- Remove unused variable
- Fix mutable default arguments
- Augmented assignment expressions
…che#111)

There was no such variable `ESVersion` -- possibly a typo as `self.ESversion` is defined on line 147
This PR adds Github Action job to run tests on CI & fix a failing test
The paths were incorrect, I think they are from before when they were in a separate repo
This PR replaces cameleCase with snake_case, removes some unused
variables and adds some that in some cases may result in run time error.
This PR moved watson, azure, picoapi and git configuration to
kibble.ini config file. It fixes also reading ES configuration.
In this way all Kibble configuration is in single place.
This will help us refactor and standarize all scanners.
Additionally this class create a good place to have common
method which are deuplicated in many places.
@turbaszek
Copy link
Member Author

I still got to refactor the logic of running scanner to use the new approach but happy to hear opinions about this approach. @kaxil @michalslowikowski00 @Humbedooh

@github-actions github-actions bot added area:cli CLI related issues area:dev labels Dec 18, 2020
@turbaszek turbaszek marked this pull request as ready for review December 18, 2020 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:cli CLI related issues area:dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants