Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hackathon team48.7twh wokier trycatch #15

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.*
!.gitignore
!.gitignore
6 changes: 3 additions & 3 deletions tools/rules_config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The new profile becomes the default profile for the language.
- Got **'Admininister: Quality Profiles'** global permission on your account.
- Check `_config.sh` file :
- debug mode (`DEBUG` variable) : 0 to disable, 1 to enable
- simulation mode (`SIMULATION` variable) : 0 to disable, 1 to enable
- simulation mode (`SIMULATION` variable) : 0 to do real calls, 1 to simulate
- Sonar token (`SONAR_TOKEN` variable) : put here the new added token previously
- Sonar URL (`SONAR_URL` variable) : put here your custom Sonar URL ("http://localhost:9000" by default)
- name of tag to add (`TAG_ECODESIGN` variable) : the name of the new tag to add to a list of rules
Expand All @@ -32,7 +32,7 @@ The new profile becomes the default profile for the language.
- language keys list (string format separated with one comma) (`PROFILES_LANGUAGE_KEYS` variable) : specify here the list of all keys language that you want to add the new ecocode quality profile
- profiles set as default (`IS_PROFILE_ECODESIGN_DEFAULT` variable) : 1 if we want to set created profiles as default profile for each language, 0 if we don't want

## Local develop Environment
## Local develop Environment & prerequisites

Differents environment have been used:

Expand Down Expand Up @@ -87,7 +87,7 @@ Files :

- `install_profile.sh` : create new custom profile

## How does it work ?
## How to

- change configuration in `_config.sh` file : check requirements above
- launch `check_tags.sh` to control your rules and tags
Expand Down
6 changes: 4 additions & 2 deletions tools/rules_config/_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ SONAR_URL=http://localhost:$SONAR_PORT
# new tag to add to rules (tagging tools) or to use for rules added to new profiles created (install_profile tool)
TAG_ECODESIGN=ecocode


#####
# additional configuration for "install_profile.sh" tool
#####

# list of rule keys that will be updated with new tag
RULES_KEYS=java:S1696

# filepath to markdown doc containing rule keys that will be updated with new tag
FILEPATH_SONAR_RULES_REUSED='./SONAR_RULES_REUSED.md'

Expand All @@ -43,4 +45,4 @@ PROFILES_LANGUAGE_KEYS=php,py,java,cs

# if we want to set created profiles as default profile for each language
IS_PROFILE_ECODESIGN_DEFAULT=1
#IS_PROFILE_ECODESIGN_DEFAULT=0
#IS_PROFILE_ECODESIGN_DEFAULT=0