Skip to content

Test for a simple lint checker for Fortran projects using GitHub actions

License

Notifications You must be signed in to change notification settings

NOAA-GFDL/simple_lint

Repository files navigation

Simple Lint GitHub Action

License: GPL v3

This project runs simple lint-like actions on files in a git repository. The current list of lint actions are:

  • check for trailing whitespace
  • check Fortran files for use of tab characters
  • check Fortran files for lines longer then a specified length

Example

# This workflow will check files in the repository for trailing whitespace and
# Fortran files that use tabs

name: Simple Lint

on: [push, pull_request]

jobs:
   lint:
      steps:
         - uses: actions/checkout@v2
         - name: Whitespace Lint
           id: wslint
           uses: NOAA-GFDL/simple_lint@v3
           with:
             failure: false
             ftn_line_len: 120
         - if: ! ${{ steps.wslint.outputs.lintSuccess }}
           run: exit 1