-
Notifications
You must be signed in to change notification settings - Fork 28
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
turbaszek
wants to merge
48
commits into
apache:main
Choose a base branch
from
PolideaInternal:refactor-sloc-scanner
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`
`python:3.8` -- 331.8 MB `python:3.8-slim` -- 41.67 MB https://hub.docker.com/_/python?tab=tags&page=1&ordering=last_updated&name=3.8
This is recommended deviantony/docker-elk#243 (comment) and in official ES docs: https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-docker.html
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
Install cloc (https://github.com/AlDanial/cloc). `cloc` is a Prerequisite as mentioned in https://apache-kibble.readthedocs.io/en/latest/setup.html#installing-the-server Without it the count in the git scanner fails.
This PR adds Github Action job to run tests on CI & fix a failing test
Co-authored-by: Kaxil Naik <[email protected]>
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
force-pushed
the
refactor-sloc-scanner
branch
from
December 17, 2020 00:17
831656b
to
29fdd66
Compare
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 |
turbaszek
force-pushed
the
refactor-sloc-scanner
branch
from
December 17, 2020 00:19
29fdd66
to
dee60e4
Compare
kaxil
approved these changes
Dec 18, 2020
turbaszek
force-pushed
the
main
branch
2 times, most recently
from
January 16, 2021 11:26
2abfcc8
to
113819c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR: