Optum / sourcehawk

Sourcehawk is an extensible compliance as code tool which allows development teams to run compliance scans on their source code.
https://optum.github.io/sourcehawk
GNU General Public License v3.0
0 stars 1 forks source link

Explore TOML for Configuration Format #48

Open brianwyka opened 3 years ago

brianwyka commented 3 years ago

Example Config

File name: sourcehawk.toml

config-locations = [
    "https://raw.githubusercontent.com/optum/sourcehawk-parent/.sourcehawk/config.toml"
]

[[file-protocols]]
repository-path = "lombok.config"
severity = "ERROR"

[[file-protocols.enforcers]]
enforcer = "STRING_PROPERTY_EQUALS"
name = "config.stopBubbling"
value = true

[[file-protocols.enforcers]]
enforcer = "string-property-equals"
name = "lombok.addLombokGeneratedAnnotation"
value = true

Links

brianwyka commented 3 years ago

@ctoestreich, thoughts?