uartois / sonar-golang

Sonarqube plugin for the golang language.
GNU Lesser General Public License v3.0
245 stars 32 forks source link

Custom source code check #28

Closed Cosby86 closed 7 years ago

Cosby86 commented 7 years ago

Hello all any idea on how to perform custom checks on the code? For example I would check for fmt.Println in the code or looking for any variable with first capital letter in a private method.

Thank you

thibaultfalque commented 7 years ago

Hi, Thanks you for your question. The plugin use gometalinter for generate report. If you want just add new rules from this tools you can add rules in different properties file (look this PR #13). If you want add rules not from gometalinter the only solution is to modify gometalinter for create new rules.

@danielleberre Have you any others suggestions ?