SonarQube will raise issues if it finds secrets stored in configuration files. So I suppose in a way, it would raise issues if it finds unencrypted values that match the secrets it wants to detect.
Otherwise, I think a rule that just raised issues on if values in the files are unencrypted would be quite noisy since not all configuration needs to be encrypted (just secrets).
actually the enviroment file it will be just one file and will be all encrypted not only a single value ( like using ansible-vault to encrypte the file)