You can use tools like codeant.ai to automate AUTOSAR compliance.
Also you can refer to this simple guide for AUTOSAR to understand: https://www.codeant.ai/blogs/simple-guide-autosar-cpp14