LFX Mentorship Fall 2022
More support for subresources (Documentation Changes)
match.(any/all).resources.kinds
-
1. New pattern for specifying Supported formats:
Group/Version/Kind
❯ ./karmor recommend | |
INFO[0000] Found outdated version of policy-templates Current Version=v0.0.1 | |
INFO[0000] Downloading latest version [v0.1.9] | |
INFO[0002] policy-templates updated Updated Version=v0.1.9 | |
INFO[0002] pulling image image="accuknox/knoxautopolicy:stable" | |
stable: Pulling from accuknox/knoxautopolicy | |
Digest: sha256:f0faa8950563e09f8a6880774bf8e9b2a9c25e2d4d380d61c052dbb15be5d975 | |
Status: Image is up to date for accuknox/knoxautopolicy:stable | |
INFO[0007] dumped image to tar tar=/tmp/karmor249792473/YSqOziIe.tar | |
Distribution ubuntu |
[INFO] Error stacktraces are turned on. | |
[INFO] Scanning for projects... | |
[INFO] Inspecting build with total of 1 modules... | |
[INFO] Installing Nexus Staging features: | |
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin | |
[INFO] | |
[INFO] ------------------< com.puppycrawl.tools:checkstyle >------------------- | |
[INFO] Building checkstyle 10.7.1-SNAPSHOT | |
[INFO] --------------------------------[ jar ]--------------------------------- | |
[INFO] |
[INFO] Error stacktraces are turned on. | |
[INFO] Scanning for projects... | |
[INFO] Inspecting build with total of 1 modules... | |
[INFO] Installing Nexus Staging features: | |
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin | |
[INFO] | |
[INFO] ------------------< com.puppycrawl.tools:checkstyle >------------------- | |
[INFO] Building checkstyle 10.7.1-SNAPSHOT | |
[INFO] --------------------------------[ jar ]--------------------------------- | |
[INFO] |
match.(any/all).resources.kinds
-Supported formats:
Group/Version/Kind
flowchart TB
subgraph ide1 [policy/validate.go]
A["validateKinds(..), Background scanning not allowed for subresources"]
end
java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'slices matching 'com.puppycrawl.tools.checkstyle.(**)' should be free of cycles' was violated (15 times): | |
Cycle detected: Slice api -> | |
Slice checks.naming -> | |
Slice api | |
1. Dependencies of Slice api | |
- Field <com.puppycrawl.tools.checkstyle.api.AutomaticBean$RelaxedAccessModifierArrayConverter.EMPTY_MODIFIER_ARRAY> depends on component type <com.puppycrawl.tools.checkstyle.checks.naming.AccessModifierOption> in (AutomaticBean.java:0) | |
- Method <com.puppycrawl.tools.checkstyle.api.AutomaticBean.registerCustomTypes(org.apache.commons.beanutils.ConvertUtilsBean)> depends on component type <com.puppycrawl.tools.checkstyle.checks.naming.AccessModifierOption> in (AutomaticBean.java:168) | |
- Method <com.puppycrawl.tools.checkstyle.api.AutomaticBean$RelaxedAccessModifierArrayConverter.convert(java.lang.Class, java.lang.Object)> calls method <com.puppycrawl.tools.checkstyle.checks.naming.AccessModifier |
In short, the logical branch names should match between the build configuration and the versioned settings root.
Your versioned settings root and the root attached to the [PR configuration](https://teamcity.jetbrains.com/admin/editBuildTypeVcsRoots.html?init=1&id=buildType:Checkstyle_IdeaInspectionsPullRequest&_gl=1*mduotk*_ga*MTYzMTM1MzI2MS4xNjU5Nzc1MzUw*_ga_9J976DJZ68*MTY2MDk3NzYwNS4x
PIT is a state of the art mutation testing system, providing gold standard test coverage for Java and the jvm. It's fast, scalable and integrates with modern test and build tooling. Visit https://pitest.org/ for more information.
mvn -e --no-transfer-progress -P"$PITEST_PROFILE" clean test-compile org.pitest:pitest-maven:mutationCoverage