src-d / lookout-gometalint-analyzer

GNU Affero General Public License v3.0
1 stars 5 forks source link

Set max line length for lll linter from configuration #5

Closed bzz closed 6 years ago

bzz commented 6 years ago

So if in local .lookout.yaml (or global server configuration) include

analyzers:
  - name: gometalint-analyzer
     linters:
       - name: lll
         maxLen: 120

lll linter should report only lines more the 120 chars. Simplest way to do so is by passing this as --line-length=N CLI args to lll.

This would allow to remove some friction, while using it.

smacker commented 6 years ago

config will be:

analyzers:
  - name: gometalint-analyzer
    settings:
      linters:
       - name: lll
         maxLen: 120

because the configuration must be inside settings in lookout