adrienverge / yamllint

A linter for YAML files.
GNU General Public License v3.0
2.9k stars 278 forks source link

`truthy` rule false positive #671

Closed Pandapip1 closed 6 months ago

Pandapip1 commented 6 months ago

Having a key named on causes the truthy rule to fail.

Example:

name: Continuous Integration

on:  # Error occurs here
  push:
    branches:
      - main
Pandapip1 commented 6 months ago

Any reason why this was immediately closed?

andrewimeson commented 6 months ago

This issue has been duplicately reported a bunch of times.

Pandapip1 commented 6 months ago

This issue has been duplicately reported a bunch of times.

FWIW I did a search for open issues and couldn't find it. Sorry for the inconvenience!