Skip to content

Python project to test the python plugin of ecoCode. (Creedengo renaming OK)

License

Notifications You must be signed in to change notification settings

green-code-initiative/creedengo-python-test-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose of this project

To check locally all rules on Python language. To do this :

  • first launch local development environment (SonarQube)
  • launch sonar maven command to send sonar metrics to local SonarQube
  • on local SonarQube, check if each Python file contains (or not) the rule error defined for this class

Step 1 : prepare local environment

To launch local environment : please follow https://github.com/green-code-initiative/ecoCode/blob/main/INSTALL.md (especially SonarQube configuration part and get generated private token)

Step 2 : send Sonar metrics to local SonarQube

./tool_send_to_sonar.sh MY_SONAR_PORT MY_SONAR_TOKEN

or

mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar -Dsonar.login=MY_SONAR_TOKEN

Step 3 : check errors

on local SonarQube, check if each Python file contains (or not) the rule error defined for this class (for example : you can search for tag eco-design rule on a special file)

About

Python project to test the python plugin of ecoCode. (Creedengo renaming OK)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published