1 unstable release

0.0.0 Apr 10, 2023

#6 in #braces

Apache-2.0

135KB
3.5K SLoC

ShellCheck codes I've handled

  • APOSTROPHE_IN_SINGLE_QUOTES: 1011

  • AMP_SEMI: 1045

  • BRACKETED_IF: 1014

  • BS_TRAILING_SPACE: 1101

  • C_LIKE_COMMENT: 1127

  • COMMENTED_BS_LF: 1143

  • COMPARATOR_IN_MATH: 1106

  • COND_BRACKET_MISMATCH: 1033/1034

  • ELIF_LIKE: 1131

  • EMPTY_BLOCK: 1055

  • FORWARD_TICKED_CMD: 1077

  • HTML_ENTITY: 1109

  • IGNORING_BS: 1001

  • LITERAL_CR: 1017

  • LITERAL_CURLY: 1083

  • LITERAL_KEYWORD: 1010

  • MATH_IN_TEST: 1076

  • MISSING_SPACE: 1035, 1054, 1069, 1099, 1129, 1130

  • MISUSED_EQEQ: 1097

  • NESTED_ARR: 1116

  • OUTER_FLAG_OP: 1139

  • SPACE_AFTER_EQ: 1007

  • STARTING_CONTROL: 1133

  • SUS_CHAR_AFTER_QUOTE: 1079

  • SUS_POST_COND: 1140

  • TEST_GROUP: 1026

  • THEN_SEMI: 1051/1052

  • TRAILING_BIN_OP: 1108

  • UNBRACED_INDEX: 1087

  • UNBRACED_POSITIONAL: 1037

  • UNCLOSED_STRING: 1078

  • UNESCAPED_COND_GROUP: 1028

  • UNNECESSARY_COND_GROUP_ESCAPE: 1029

  • UNESCAPED_DOLLAR: 1135

  • UNESCAPED_SINGLE_QUOTE: 1003

  • UNESCAPED_TEST_LF: 1080

  • UNESCAPED_WHITESPACE: 1012

  • UNICHAR: 1018, 1100, 1110, 1111, 1112

  • UNSPACED_AMP: 1132

  • UNSPECIAL_ESCAPE: 1117

  • Expected fi: 1046/1047

  • Expected then: 1049/1050

  • Invalid paren before word segment: 1036

  • Keywords should be lower-cased: 1081

  • Leading $ in assignments: 1066

  • Missing argument in test unary expression: 1019

  • Missing closing } in brace groups: 1056

  • Missing space before \): 1021

    • This actually cannot happen with the current implementation.
  • Missing space before ]/]]: 1020

  • Missing 2nd argument in test binary expression: 1027

  • Unescaped ( in eval command: 1098

Dependencies

~2.2–3MB
~57K SLoC