adrienverge / yamllint

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

`truthy` rule false positive #671

Closed Pandapip1 closed 2 months ago

Pandapip1 commented 2 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 2 months ago

Any reason why this was immediately closed?

andrewimeson commented 2 months ago

This issue has been duplicately reported a bunch of times.

Pandapip1 commented 2 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!