Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

style: remove literal carriage returns and lint all shell scripts #1148

Merged
merged 3 commits into from
Apr 25, 2019

Conversation

mboersma
Copy link
Member

@mboersma mboersma commented Apr 25, 2019

Reason for Change:

Updates scripts/validate-shell.sh to lint all shell scripts in the system, but exempts the current set of shellcheck complaints. This allows enforcement of only the rules we agree with across all the bash logic.

Also fixes SC1017 Literal carriage return. Run script through tr -d '\r' .

Issue Fixed:

Refs #953

Requirements:

Notes:
If this makes sense, I propose to trickle out such bash fixes one-by-one over time, until AKS Engine is at a point where we are only ignoring specific linter issues by agreement.

@codecov
Copy link

codecov bot commented Apr 25, 2019

Codecov Report

Merging #1148 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1148   +/-   ##
=======================================
  Coverage   74.43%   74.43%           
=======================================
  Files         131      131           
  Lines       18317    18317           
=======================================
  Hits        13634    13634           
  Misses       3902     3902           
  Partials      781      781

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mboersma
Copy link
Member Author

mboersma commented Apr 25, 2019

/override pr-e2e (k8s_1_12_release_e2e)

Edit: d'oh. Note: ^^ this doesn't seem to work, just wanted to try the bot command.

@jackfrancis
Copy link
Member

/lgtm

@acs-bot acs-bot added the lgtm label Apr 25, 2019
@acs-bot acs-bot merged commit ad7897e into Azure:master Apr 25, 2019
@acs-bot
Copy link

acs-bot commented Apr 25, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis, mboersma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jackfrancis,mboersma]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants