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

4.x #487

Merged
merged 18 commits into from
Jan 17, 2024
Merged

4.x #487

merged 18 commits into from
Jan 17, 2024

Conversation

priv-kweihmann
Copy link
Owner

Pull request checklist

Bugfix

  • A testcase was added to test the behavior

New feature

  • A testcase was added to test the behavior
  • New functions are documented with docstrings
  • No debug code is left
  • README.md was updated to reflect the changes (check even if n.a.)

so for a single group a single process is enough

Signed-off-by: Konrad Weihmann <[email protected]>
which holds all the configuration defined by
arguments, rule files and config files.

It makes all the global variables obsolete, which
aren't shared between processes, so all code
from rule_file and color have been removed

Signed-off-by: Konrad Weihmann <[email protected]>
as this is not a runtime requirement

Signed-off-by: Konrad Weihmann <[email protected]>
- refactor all rules
- add typing hints to all code
- update the example custom rule
- remove `--constantfile` option, as this is not
  supported by the parser anymore (long deprecated
  option)
- add new tests for missing bits of coverage

Signed-off-by: Konrad Weihmann <[email protected]>
- add an option called --release so one can specify a
  release of YP to run against - default the latest
- add a table that enables the new override syntax from kirkstone
  on and removes AUTHOR var from nanbield on
- new tweaks call auto applies those tweaks from the first version
  up to the one specified by CLI
- new tweaks class also add a new args var called _release_range
  that holds all the release names which are covered by the
  current config
- also add a way to alter constantmods in args to use dictionaries
  as inserted by tweaks class
- remove suggested var AUTHOR from tests, as in the default latest
  release this isn't applicable anymore

Closes #481

Signed-off-by: Konrad Weihmann <[email protected]>
like loading up/from a certain release, by adding the new
function `check_release_range` to Rule class.
That one can also be overridden to enable even more
release specific tweaks.

Adds also tests and documentation of this new feature

Signed-off-by: Konrad Weihmann <[email protected]>
Signed-off-by: Konrad Weihmann <[email protected]>
by collecting the found and applicable suppressions
and comparing them against what was set in the check code.

This comes with a special rule that is only used by main.

Closes #362

Signed-off-by: Konrad Weihmann <[email protected]>
when calling finding from the rule code.
So we could have different severities from the same rule code

Signed-off-by: Konrad Weihmann <[email protected]>
for variables that are not known from misspell checks,
but do not have a close match.
Make it an info level finding, so people won't be bothered too
much with it

Signed-off-by: Konrad Weihmann <[email protected]>
with mickledore and later releases from variables/known
as pointed out by the mickledore release notes

Signed-off-by: Konrad Weihmann <[email protected]>
but only for nanbield and later

Signed-off-by: Konrad Weihmann <[email protected]>
as moaned about by very latest flake8-bugbear

Signed-off-by: Konrad Weihmann <[email protected]>
to check on addpylib being used correctly

Signed-off-by: Konrad Weihmann <[email protected]>
Signed-off-by: Konrad Weihmann <[email protected]>
of inherit and inherit_defer statements

Closes #477

Signed-off-by: Konrad Weihmann <[email protected]>
as scarthgap is still a moving target

Signed-off-by: Konrad Weihmann <[email protected]>
@priv-kweihmann priv-kweihmann merged commit 51a476d into master Jan 17, 2024
5 checks passed
@priv-kweihmann priv-kweihmann deleted the 4.x branch January 17, 2024 14:54
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.

1 participant