Scripts patterns
Conventions for using sh, bash, bat, python scripts
- License 许可
- Apache-2.0
- 最近更新
- 2026-07-20
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- Scripts patterns
- description
- Conventions for using sh, bash, bat, python scripts
02 资源文件 4
- 资产文件assets/README.md309 B
- 参考文档references/README.md384 B
- 脚本scripts/analyze_indexes.py4.7 KB
- 脚本scripts/README.md339 B
03 SKILL.md 正文
1. sdk installation scripts should be updated to use the latest sdk version using sdk-man
In the past, the sdk{version}.sh scripts were often used to install and use appropriate SDK versions for the projects.
Without updates, some of these scripts may not work as expected or may not install the latest SDK versions.
These scripts are usually found at the root of the project
To update, please follow these guidelines
- If multiples are found for different versions of the same sdk, plese keep the latest version and remove the others
- If they are Java SDK installation scripts please follow guidelines in 1.1
1.1 SDK-MAN for Java SDK updates
- Please create a sdk.sh file to install the latest LTS java version.
- Please check if the version needed is CRAC or GraalVM. An update means using the same type.
- Choose the latest version by choosing in this order
- OpenSDK
- AdaptSDK
- LibreSDK
- Oracle
- Once the sdk.sh file is created, please remove all other sdk{version}.sh files
04 同仓库更多 Skills
spring
Conventions for dependency injection and mocking in Spring Boot in this project. Use this whenever writing, reviewing, or refactoring integration test classes (anything annotated @SpringBootTest, or under src/test that talks to a real Spring context), especially when deciding how to wire dependencies or mock collaborators. Also consult this before adding @Autowired, @MockBean, @MockitoBean, or field injection in any test class.
spring-integration-test-wiring
Conventions for dependency injection and mocking in Spring Boot integration tests in this project. Use this whenever writing, reviewing, or refactoring integration test classes (anything annotated @SpringBootTest, or under src/test that talks to a real Spring context), especially when deciding how to wire dependencies or mock collaborators. Also consult this before adding @Autowired, @MockBean, @MockitoBean, or field injection in any test class.
Readme standards
Conventions to use in Readme files
parallelization
Conventions for using parallelization in all tests using Jupiter
Maven standards
Conventions to use in Maven files, mostly the `pom.xml` files
kotlin patterns
Conventions for using Kotlin