-
Notifications
You must be signed in to change notification settings - Fork 7
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
pre-commit #129
pre-commit #129
Conversation
020a54c
to
8d875dd
Compare
80e7b4a
to
ad6b4fb
Compare
13589e1
to
351e05e
Compare
@DaniilKl @macpijan I added the |
I'm getting the following error
|
The rule file could not be loaded because it was in a hidden directory and Python couldn't find it. |
@macpijan I got my custom rule to work. It turns out that some of the existing recipes comply to the original oelint rule - They indent to the
We need to decide what we want: Always a 4 space indent or indenting up to |
Which rule is that? This one as linked in the logs here: #129 (comment) Can it be autofixed by the tool? I have been using so far the 4 spaces, but there may be some reason why the upstream linter tool uses the other approach. It was enough for 3mins search to find this: https://docs.yoctoproject.org/dev/contributor-guide/recipe-style-guide.html#variable-formatting This should close the discussion and our preference does not matter much. We want to keep the style as in the upstream recipes, to have easier time of upstreaming them and keep the good practices as suggested by the project. |
Unfortunately, a lot of the rules, including the indent, do not have an autofix and need to be changed manually |
meta-dts-distro/recipes-tests/converged-security-suite/bg-suite_2.7.0.bb
Outdated
Show resolved
Hide resolved
...s-distro/recipes-support/mei-amt-check/files/0001-Makefile-removed-setting-CC-variable.patch
Outdated
Show resolved
Hide resolved
meta-dts-distro/recipes-support/dasharo-ectool/dasharo-ectool_0.3.8.bb
Outdated
Show resolved
Hide resolved
@macpijan I managed to create an autofix for the indent check. I seems to work except for one case: When the first line of the variable alrerady has something other than
I haven't managed to get the metod to fix that. |
Sounds like a good start @PLangowski , nice work. |
f317164
to
91d10f8
Compare
One more: let's try to cleanup commits. |
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
The script was moved to the dts-scripts repo (https://github.com/Dasharo/dts-scripts/blob/main/include/dts-functions.sh) and is not used here anymore. Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
…-body` flag Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
I cleaned up the commits |
@PLangowski, ping me please when review will be needed and use |
@DaniilKl it is ready for review now. |
Good work overall @PLangowski I have very high hopes on overall quality increase because of these changes. |
No description provided.