Can I scan with SonarQube only with a single code or a bundle of code?

Can I scan with SonarQube only with a single code or a bundle of code?
I would like to know the number and cause of warning and error after scanning the single code like sonarlint.

Hey there.

I’m sorry – I don’t understand. What do you mean by “single code”?

‘single code’ means a single file or bundle of code.
I want to use SonarQube only to analyze single code files.
I want to analyze single code files(uploaded by multiple people) on the self deployed server to see if there are any warnings and errors.

I’m going to use it to find the number of warnings and errors in the coding test code file that many people have solved.