Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to see 255 exit code in isolation #873

Closed
wants to merge 5 commits into from
Closed

Conversation

pbrisbin
Copy link
Member

No description provided.

---

# By default, everything is an error
- error: {name: ""}

Choose a reason for hiding this comment

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

Restyled by prettier-yaml

Suggested change
- error: {name: ""}
- error: { name: "" }

Comment on lines +129 to +152
- {name: [Data.Set], as: Set}
- {name: [Data.Map], as: Map}
- {name: [Data.HashSet], as: HashSet}
- {name: [Data.HashMap.Strict], as: HashMap}
- {name: [Data.Text], as: T}
- {name: [Data.Text.Encoding], as: T}
- {name: [Data.Text.IO], as: T}
- {name: [Data.Text.Lazy], as: TL}
- {name: [Data.Text.Lazy.Encoding], as: TL}
- {name: [Data.Text.IO.Lazy], as: TL}
- {name: [Data.ByteString], as: BS}
- {name: [Data.ByteString.Lazy], as: BSL}
- {name: [Data.ByteString.Char8], as: BS8}
- {name: [Data.ByteString.Lazy.Char8], as: BSL8}
- {name: [Data.List.NonEmpty], as: NE}
- {name: [Data.Sequence], as: Seq}
- {name: Database.Esqueleto.Legacy, within: []}
- {name: Freckle.CurriculaApi, as: CurriculaApi}
- name:
- Freckle.App.OpenTelemetry
- OpenTelemetry.Context
- OpenTelemetry.Context.ThreadLocal
- OpenTelemetry.Trace
as: Trace

Choose a reason for hiding this comment

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

Restyled by prettier-yaml

Suggested change
- {name: [Data.Set], as: Set}
- {name: [Data.Map], as: Map}
- {name: [Data.HashSet], as: HashSet}
- {name: [Data.HashMap.Strict], as: HashMap}
- {name: [Data.Text], as: T}
- {name: [Data.Text.Encoding], as: T}
- {name: [Data.Text.IO], as: T}
- {name: [Data.Text.Lazy], as: TL}
- {name: [Data.Text.Lazy.Encoding], as: TL}
- {name: [Data.Text.IO.Lazy], as: TL}
- {name: [Data.ByteString], as: BS}
- {name: [Data.ByteString.Lazy], as: BSL}
- {name: [Data.ByteString.Char8], as: BS8}
- {name: [Data.ByteString.Lazy.Char8], as: BSL8}
- {name: [Data.List.NonEmpty], as: NE}
- {name: [Data.Sequence], as: Seq}
- {name: Database.Esqueleto.Legacy, within: []}
- {name: Freckle.CurriculaApi, as: CurriculaApi}
- name:
- Freckle.App.OpenTelemetry
- OpenTelemetry.Context
- OpenTelemetry.Context.ThreadLocal
- OpenTelemetry.Trace
as: Trace
- { name: [Data.Set], as: Set }
- { name: [Data.Map], as: Map }
- { name: [Data.HashSet], as: HashSet }
- { name: [Data.HashMap.Strict], as: HashMap }
- { name: [Data.Text], as: T }
- { name: [Data.Text.Encoding], as: T }
- { name: [Data.Text.IO], as: T }
- { name: [Data.Text.Lazy], as: TL }
- { name: [Data.Text.Lazy.Encoding], as: TL }
- { name: [Data.Text.IO.Lazy], as: TL }
- { name: [Data.ByteString], as: BS }
- { name: [Data.ByteString.Lazy], as: BSL }
- { name: [Data.ByteString.Char8], as: BS8 }
- { name: [Data.ByteString.Lazy.Char8], as: BSL8 }
- { name: [Data.List.NonEmpty], as: NE }
- { name: [Data.Sequence], as: Seq }
- { name: Database.Esqueleto.Legacy, within: [] }
- { name: Freckle.CurriculaApi, as: CurriculaApi }
- name:
- Freckle.App.OpenTelemetry
- OpenTelemetry.Context
- OpenTelemetry.Context.ThreadLocal
- OpenTelemetry.Trace
as: Trace

Comment on lines +49 to +54
- error: {lhs: mapM, rhs: traverse}
- error: {lhs: mapM_, rhs: traverse_}
- error: {lhs: forM, rhs: for}
- error: {lhs: forM_, rhs: for_}
- error: {lhs: return, rhs: pure}
- error: {lhs: "only (entityKey x)", rhs: "onlyKey x"}

Choose a reason for hiding this comment

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

Restyled by prettier-yaml

Suggested change
- error: {lhs: mapM, rhs: traverse}
- error: {lhs: mapM_, rhs: traverse_}
- error: {lhs: forM, rhs: for}
- error: {lhs: forM_, rhs: for_}
- error: {lhs: return, rhs: pure}
- error: {lhs: "only (entityKey x)", rhs: "onlyKey x"}
- error: { lhs: mapM, rhs: traverse }
- error: { lhs: mapM_, rhs: traverse_ }
- error: { lhs: forM, rhs: for }
- error: { lhs: forM_, rhs: for_ }
- error: { lhs: return, rhs: pure }
- error: { lhs: "only (entityKey x)", rhs: "onlyKey x" }

# for ad hoc ways to suppress hlint.

---

Choose a reason for hiding this comment

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

Restyled by prettier-yaml

Suggested change

Comment on lines +101 to +126
- -XBangPatterns
- -XDataKinds
- -XDeriveAnyClass
- -XDeriveFoldable
- -XDeriveFunctor
- -XDeriveGeneric
- -XDeriveLift
- -XDeriveTraversable
- -XDerivingStrategies
- -XFlexibleContexts
- -XFlexibleInstances
- -XGADTs
- -XGeneralizedNewtypeDeriving
- -XLambdaCase
- -XMultiParamTypeClasses
- -XNoImplicitPrelude
- -XNoMonomorphismRestriction
- -XOverloadedRecordDot
- -XOverloadedStrings
- -XQuasiQuotes
- -XRankNTypes
- -XRecordWildCards
- -XScopedTypeVariables
- -XStandaloneDeriving
- -XTypeApplications
- -XTypeFamilies

Choose a reason for hiding this comment

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

Restyled by prettier-yaml

Suggested change
- -XBangPatterns
- -XDataKinds
- -XDeriveAnyClass
- -XDeriveFoldable
- -XDeriveFunctor
- -XDeriveGeneric
- -XDeriveLift
- -XDeriveTraversable
- -XDerivingStrategies
- -XFlexibleContexts
- -XFlexibleInstances
- -XGADTs
- -XGeneralizedNewtypeDeriving
- -XLambdaCase
- -XMultiParamTypeClasses
- -XNoImplicitPrelude
- -XNoMonomorphismRestriction
- -XOverloadedRecordDot
- -XOverloadedStrings
- -XQuasiQuotes
- -XRankNTypes
- -XRecordWildCards
- -XScopedTypeVariables
- -XStandaloneDeriving
- -XTypeApplications
- -XTypeFamilies
- -XBangPatterns
- -XDataKinds
- -XDeriveAnyClass
- -XDeriveFoldable
- -XDeriveFunctor
- -XDeriveGeneric
- -XDeriveLift
- -XDeriveTraversable
- -XDerivingStrategies
- -XFlexibleContexts
- -XFlexibleInstances
- -XGADTs
- -XGeneralizedNewtypeDeriving
- -XLambdaCase
- -XMultiParamTypeClasses
- -XNoImplicitPrelude
- -XNoMonomorphismRestriction
- -XOverloadedRecordDot
- -XOverloadedStrings
- -XQuasiQuotes
- -XRankNTypes
- -XRecordWildCards
- -XScopedTypeVariables
- -XStandaloneDeriving
- -XTypeApplications
- -XTypeFamilies

Comment on lines +93 to +97
- ignore: {within: "FreckleCurriculaApi.**.*"}
- ignore: {within: "RenaissanceGUR.**.*"}
- ignore: {within: "PerformanceAnalysisService.**.*"}
- ignore: {within: "BenchmarkService.**.*"}
- ignore: {within: "RecurlyApi.**.*"}

Choose a reason for hiding this comment

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

Restyled by prettier-yaml

Suggested change
- ignore: {within: "FreckleCurriculaApi.**.*"}
- ignore: {within: "RenaissanceGUR.**.*"}
- ignore: {within: "PerformanceAnalysisService.**.*"}
- ignore: {within: "BenchmarkService.**.*"}
- ignore: {within: "RecurlyApi.**.*"}
- ignore: { within: "FreckleCurriculaApi.**.*" }
- ignore: { within: "RenaissanceGUR.**.*" }
- ignore: { within: "PerformanceAnalysisService.**.*" }
- ignore: { within: "BenchmarkService.**.*" }
- ignore: { within: "RecurlyApi.**.*" }

Comment on lines +32 to +46
- ignore: {name: "Use module export list"}
- ignore: {name: "Redundant bracket due to operator fixities"}
- ignore: {name: "Use explicit module export list"}
- ignore: {name: "Redundant do"}
- ignore: {name: "Eta reduce"}
- ignore: {name: "Use list comprehension"}
- ignore: {name: "Reduce duplication"}
- ignore: {name: "Use fmap"} # we use classy prelude so this would be in error
- ignore: {name: "Avoid restricted function", within: Application}
- ignore: {name: "Use ."} # commonly broken or less readable
- ignore: {name: "Use &&"} # we like "and" at 3+ elements
- ignore: {name: "Use ||"} # we like "or" at 3+ elements
- ignore: {name: "Use join"} # this often leads to cryptic code when do notation is easier to read
- ignore: {name: "Redundant ^."} # confused by esqueleto's (^.)
- ignore: {name: "Fuse on/on"} # confused by esqueleto's on

Choose a reason for hiding this comment

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

Restyled by prettier-yaml

Suggested change
- ignore: {name: "Use module export list"}
- ignore: {name: "Redundant bracket due to operator fixities"}
- ignore: {name: "Use explicit module export list"}
- ignore: {name: "Redundant do"}
- ignore: {name: "Eta reduce"}
- ignore: {name: "Use list comprehension"}
- ignore: {name: "Reduce duplication"}
- ignore: {name: "Use fmap"} # we use classy prelude so this would be in error
- ignore: {name: "Avoid restricted function", within: Application}
- ignore: {name: "Use ."} # commonly broken or less readable
- ignore: {name: "Use &&"} # we like "and" at 3+ elements
- ignore: {name: "Use ||"} # we like "or" at 3+ elements
- ignore: {name: "Use join"} # this often leads to cryptic code when do notation is easier to read
- ignore: {name: "Redundant ^."} # confused by esqueleto's (^.)
- ignore: {name: "Fuse on/on"} # confused by esqueleto's on
- ignore: { name: "Use module export list" }
- ignore: { name: "Redundant bracket due to operator fixities" }
- ignore: { name: "Use explicit module export list" }
- ignore: { name: "Redundant do" }
- ignore: { name: "Eta reduce" }
- ignore: { name: "Use list comprehension" }
- ignore: { name: "Reduce duplication" }
- ignore: { name: "Use fmap" } # we use classy prelude so this would be in error
- ignore: { name: "Avoid restricted function", within: Application }
- ignore: { name: "Use ." } # commonly broken or less readable
- ignore: { name: "Use &&" } # we like "and" at 3+ elements
- ignore: { name: "Use ||" } # we like "or" at 3+ elements
- ignore: { name: "Use join" } # this often leads to cryptic code when do notation is easier to read
- ignore: { name: "Redundant ^." } # confused by esqueleto's (^.)
- ignore: { name: "Fuse on/on" } # confused by esqueleto's on

@pbrisbin
Copy link
Member Author

OK, this is enough to show, IMO, that when refactor runs out of memory it exits 255 if it was invoked via HLint, rather than the usual 137.

@pbrisbin pbrisbin closed this Jan 21, 2025
@pbrisbin pbrisbin deleted the pb/hlint-refactor-repro branch January 21, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants